Browse Source

feat(types): 修改TypeMessageData

LuoHaoxuan 3 năm trước cách đây
mục cha
commit
c8c393519b
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  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;