|
|
@@ -64,20 +64,6 @@ interface IProcess {
|
|
|
approvaledPrice: number;
|
|
|
}
|
|
|
type TypeMessageData = 'approval' | 'system';
|
|
|
-export interface IMessageData {
|
|
|
- businessID: string;
|
|
|
- userID: string;
|
|
|
- createTime: number;
|
|
|
- status: string;
|
|
|
- read: boolean;
|
|
|
- type: TypeMessageData;
|
|
|
- title: string;
|
|
|
- isShowProcess: boolean;
|
|
|
- userName: string;
|
|
|
- phone?: string;
|
|
|
- process?: IProcess;
|
|
|
- content?: string;
|
|
|
-}
|
|
|
|
|
|
export interface ISendMessageContent {
|
|
|
stepName: string;
|
|
|
@@ -87,11 +73,26 @@ export interface ISendMessageContent {
|
|
|
conclusion: string;
|
|
|
}
|
|
|
|
|
|
-export interface ISendMessageData {
|
|
|
+export interface ISimpleMessageData {
|
|
|
businessID: string;
|
|
|
title: string;
|
|
|
- content: string;
|
|
|
userID: string;
|
|
|
status: string;
|
|
|
- type: string;
|
|
|
+ type: TypeMessageData;
|
|
|
+ content?: ISendMessageContent;
|
|
|
+}
|
|
|
+
|
|
|
+export interface IMessageData extends ISimpleMessageData {
|
|
|
+ // businessID: string;
|
|
|
+ // userID: string;
|
|
|
+ createTime: number;
|
|
|
+ // status: string;
|
|
|
+ read: boolean;
|
|
|
+ // type: TypeMessageData;
|
|
|
+ // title: string;
|
|
|
+ isShowProcess: boolean;
|
|
|
+ userName: string;
|
|
|
+ phone?: string;
|
|
|
+ process?: IProcess;
|
|
|
+ // content?: string;
|
|
|
}
|