Browse Source

chore: update

wxyyxc1992 5 years ago
parent
commit
d0dfd704ba
1 changed files with 15 additions and 0 deletions
  1. 15
    0
      packages/cts-api/src/messages.ts

+ 15
- 0
packages/cts-api/src/messages.ts View File

22
 
22
 
23
   authority?: number;
23
   authority?: number;
24
 }
24
 }
25
+
26
+export interface ChatMsp {
27
+  from: string;
28
+  type: 'room';
29
+  to: string;
30
+  msg: {
31
+    type: 'cmd' | 'text' | 'image';
32
+    command?: string;
33
+    action?: string;
34
+    message?: string;
35
+    msg_id?: string;
36
+  };
37
+  msg_id?: string;
38
+  ext?: Record<string, string>;
39
+}