浏览代码

chore: update

wxyyxc1992 5 年前
父节点
当前提交
61e3d8fb6e
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14
    0
      packages/cts-api/dist/types/messages.d.ts

+ 14
- 0
packages/cts-api/dist/types/messages.d.ts 查看文件

@@ -12,3 +12,17 @@ export interface ChatroomMsg {
12 12
     member: string;
13 13
     authority?: number;
14 14
 }
15
+export interface ChatMsp {
16
+    from: string;
17
+    type: 'room';
18
+    to: string;
19
+    msg: {
20
+        type: 'cmd' | 'text' | 'image';
21
+        command?: string;
22
+        action?: string;
23
+        message?: string;
24
+        msg_id?: string;
25
+    };
26
+    msg_id?: string;
27
+    ext?: Record<string, string>;
28
+}