Procházet zdrojové kódy

feat(types): 正在查看建设项目

vian před 4 roky
rodič
revize
d1ee03b167
2 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 4 2
      types/src/interface/message.ts
  2. 1 0
      types/src/interface/user.ts

+ 4 - 2
types/src/interface/message.ts

@@ -3,8 +3,10 @@ export enum SocketEvent {
   JOIN = 'join',
   LEAVE = 'leave',
   NOTIFY = 'notify',
-  // 正在查看项目
-  VIEW_PROJECT = 'viewProject',
+  // 正在查看项目有用户进入
+  VIEW_PROJECT_ENTER = 'viewProjectEnter',
+  // 正在查看项目有用户离开
+  VIEW_PROJECT_LEAVE = 'viewProjectLeave',
 }
 
 export enum SocketName {

+ 1 - 0
types/src/interface/user.ts

@@ -85,6 +85,7 @@ export interface IViewingProjectUser {
   projectID: string;
   userID: string;
   userName: string;
+  mobile: string;
   enterpriseID: string;
   enterpriseName: string;
 }