Ver código fonte

feat(types): 修改TypeMessageData

LuoHaoxuan 3 anos atrás
pai
commit
c8c393519b
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      types/src/interface/message.ts

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

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