瀏覽代碼

fix(rtc): update schema

rcmerci 1 年之前
父節點
當前提交
d42003fff9
共有 1 個文件被更改,包括 11 次插入1 次删除
  1. 11 1
      src/main/frontend/worker/rtc/const.cljs

+ 11 - 1
src/main/frontend/worker/rtc/const.cljs

@@ -171,6 +171,16 @@
       [:req-id :string]
       [:action :string]
       [:graph-uuid :uuid]
-      [:block-uuids [:sequential :uuid]]]]]))
+      [:block-uuids [:sequential :uuid]]]]
+    ["update-assets"
+     [:map
+      [:req-id :string]
+      [:action :string]
+      [:graph-uuid :uuid]
+      [:create {:optional true} [:sequential
+                                 [:map
+                                  [:asset-uuid :uuid]
+                                  [:asset-name :string]]]]
+      [:delete {:optional true} [:sequential :uuid]]]]]))
 (def data-to-ws-encoder (m/encoder data-to-ws-schema mt/string-transformer))
 (def data-to-ws-coercer (m/coercer data-to-ws-schema mt/string-transformer))