移除未使用的客服列表相关代码,优化消息管理逻辑,新增消息状态管理功能,提升代码结构和可读性。

This commit is contained in:
2025-10-23 12:55:57 +08:00
parent 81f225d9cb
commit 68a5350c19
5 changed files with 107 additions and 17 deletions

View File

@@ -0,0 +1,39 @@
export interface Message {
id: number;
wechatId: string;
nickname: string;
alias: string;
avatar: string;
region: string;
signature: string;
bindQQ: string;
bindEmail: string;
bindMobile: string;
createTime: string;
currentDeviceId: number;
isDeleted: boolean;
deleteTime: string;
groupId: number;
memo: string;
wechatVersion: string;
labels: string[];
lastUpdateTime: string;
isOnline?: boolean;
momentsMax: number;
momentsNum: number;
[key: string]: any;
}
//Store State
export interface MessageState {
//消息列表
messageList: Message[];
//当前选中的消息
currentMessage: Message | null;
//更新消息列表
updateMessageList: (messageList: Message[]) => void;
//更新消息状态
updateMessageStatus: (messageId: number, status: string) => void;
//更新当前选中的消息
updateCurrentMessage: (message: Message) => void;
}