export interface WxLoginStatus { status: number } export interface syncDataBasic { accInfo: AccInfoTypes GroupsData // companyInfo } // AccInfoTypes: hook-账号信息 export interface AccInfoTypes { avatar_url: string // 1.x-headUrl job: string nick_name: string // 1.x版本-name position: string user_id: string // 1.x版本-selfwxid sex: string } export interface GroupsData { list: [] total: number total_page: number } export interface GroupItem { total: number chat_room_id: string nick_name: string create_time: string } export interface GroupMemberData { list: TypeHookGroupMemberItem[] chat_room_id: string // room_name: string } export interface TypeHookGroupMemberItem { avatar_url: string corp_id: string desc: string invite_user_id: string is_admin: string join_time: string // 或者 number 类型,根据实际使用场景 mobile: string nick_name: string position: string remark: string sex: string // '0' | '1' | '2' 可以根据具体值定义联合类型 unionid: string user_id: string } export interface memberInfo { userId: string nickname: string avatar: string drId?: string roomChatId: string } export interface memberInfoHook { avatar_url: string user_id: string nick_name: string } // TypeWorkTimes 对象数组 // export interface TypeWorkTimes // TypeWorkTimes 对象 export interface TypeSaveMsg { contentType: number content: string publishTime: string publisher: string publisherId: string wxMsgId: string hookWxMsgId: string wxRoomId: string type: string submitWxId: string submitWxName: string rereceiverName: string rereceiver?: string contentAtList?: string contentImageInfo: string } export interface TypeGroupInfo { entWxRoomId?: string entWxRoomName?: string entWxRoomCount?: number drId?: string isWhiteList?: number drName?: string } export interface TypeCommonData { wxLoginStatus: number globalWxWorkInfo: syncDataBasic | null globalGroupList: GroupItem[] globalWorkTimeArr: { startTime: string; endTime: string }[] groupsData: GroupsData | null sendMsgProcessing: boolean accInfo?: AccInfoTypes | null isBein: boolean hasWelcome: boolean // 定时群欢迎,19:30 access_token: string waitMsgNum: number // 未发队列count selfwxid: string }