Quellcode durchsuchen

feat(types): IMessageData字段更换tag数据字段为type

wupeixin vor 4 Jahren
Ursprung
Commit
c56427a1d8
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      types/src/interface/message.ts

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

@@ -63,6 +63,7 @@ interface IProcess {
   approvalChangePrice: number;
   approvaledPrice: number;
 }
+type TypeMessageData = 'approval' | 'system'
 export interface IMessageData {
   ID: string;
   userID: string;
@@ -70,5 +71,5 @@ export interface IMessageData {
   status: string;
   process:IProcess;
   unRead: boolean;
-  tags: string[];
+  type: TypeMessageData;
 }