Browse Source

feat(types): 修改TypeMessageData

LuoHaoxuan 3 years ago
parent
commit
c8c393519b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      types/src/interface/message.ts

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

@@ -63,7 +63,11 @@ interface IProcess {
   approvalChangePrice: number;
   approvaledPrice: number;
 }
-export type TypeMessageData = 'approval' | 'system';
+
+export enum TypeMessageData {
+  APPROVAL = 'approval',
+  SYSTEM = 'system',
+}
 
 export interface IMessageContent {
   stepName: string;