Przeglądaj źródła

feat(types): 添加ISendMessageData

LuoHaoxuan 3 lat temu
rodzic
commit
1feb2cd650
1 zmienionych plików z 21 dodań i 4 usunięć
  1. 21 4
      types/src/interface/message.ts

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

@@ -59,11 +59,11 @@ export interface IMessage {
 // 平台信息
 interface IProcess {
   processID: string;
-  approvalOpinon ?:string;
+  approvalOpinon?: string;
   approvalChangePrice: number;
   approvaledPrice: number;
 }
-type TypeMessageData = 'approval' | 'system'
+type TypeMessageData = 'approval' | 'system';
 export interface IMessageData {
   businessID: string;
   userID: string;
@@ -75,6 +75,23 @@ export interface IMessageData {
   isShowProcess: boolean;
   userName: string;
   phone?: string;
-  process?:IProcess;
-  content?:string;
+  process?: IProcess;
+  content?: string;
+}
+
+export interface ISendMessageContent {
+  stepName: string;
+  approvalComments: string;
+  addition: string;
+  reduction: string;
+  conclusion: string;
+}
+
+export interface ISendMessageData {
+  businessID: string;
+  title: string;
+  content: ISendMessageContent;
+  userID: string;
+  status: string;
+  type: string;
 }