feat(ckchat): 添加搜索关键词状态及相关方法

在CkChatState接口中添加searchKeyword字段用于存储搜索关键词,并新增setSearchKeyword和clearSearchKeyword方法用于管理搜索状态
This commit is contained in:
超级老白兔
2025-09-02 16:32:25 +08:00
parent e35403eaf4
commit 70877c8c96

View File

@@ -33,6 +33,7 @@ export interface CkUserInfo {
export interface CkChatState {
userInfo: CkUserInfo | null;
isLoggedIn: boolean;
searchKeyword: string;
contractList: ContractData[];
chatSessions: any[];
kfUserList: KfUserListData[];
@@ -42,6 +43,8 @@ export interface CkChatState {
newContractList: ContactGroupByLabel[];
getContractList: () => ContractData[];
getNewContractList: () => ContactGroupByLabel[];
setSearchKeyword: (keyword: string) => void;
clearSearchKeyword: () => void;
asyncKfSelected: (data: number) => void;
asyncWeChatGroup: (data: weChatGroup[]) => void;
asyncCountLables: (data: ContactGroupByLabel[]) => void;