From 491ec04b46ce04aa31e1329e822466ed305fa41b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 4 Aug 2024 16:50:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=87=86=E5=A4=87=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E9=87=8D=E6=9E=84uid/uin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/src/entities/group.ts | 7 ++++++- src/core/src/listeners/NodeIKernelGroupListener.ts | 6 +++--- src/core/src/services/NodeIKernelGroupService.ts | 5 +++++ src/core/src/services/NodeIKernelProfileService.ts | 4 ++++ 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/core/src/entities/group.ts b/src/core/src/entities/group.ts index 345e1538..c2f6f093 100644 --- a/src/core/src/entities/group.ts +++ b/src/core/src/entities/group.ts @@ -1,5 +1,10 @@ import { QQLevel, Sex } from './user'; - +export enum GroupListUpdateType { + REFRESHALL, + GETALL, + MODIFIED, + REMOVE +} export interface Group { groupCode: string, createTime?:string,//高版本才有 diff --git a/src/core/src/listeners/NodeIKernelGroupListener.ts b/src/core/src/listeners/NodeIKernelGroupListener.ts index d9e91b6c..c80a775e 100644 --- a/src/core/src/listeners/NodeIKernelGroupListener.ts +++ b/src/core/src/listeners/NodeIKernelGroupListener.ts @@ -1,7 +1,7 @@ -import { Group, GroupMember, GroupNotify } from '@/core/entities'; +import { Group, GroupListUpdateType, GroupMember, GroupNotify } from '@/core/entities'; interface IGroupListener { - onGroupListUpdate(updateType: number, groupList: Group[]): void; + onGroupListUpdate(updateType: GroupListUpdateType, groupList: Group[]): void; onGroupExtListUpdate(...args: unknown[]): void; @@ -202,7 +202,7 @@ export class DebugGroupListener implements IGroupListener { console.log('onGroupNotifiesUnreadCountUpdated:', ...args); } - onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]){ + onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]) { console.log('onGroupSingleScreenNotifies:'); } diff --git a/src/core/src/services/NodeIKernelGroupService.ts b/src/core/src/services/NodeIKernelGroupService.ts index 3653949b..52d07526 100644 --- a/src/core/src/services/NodeIKernelGroupService.ts +++ b/src/core/src/services/NodeIKernelGroupService.ts @@ -9,6 +9,11 @@ import { import { GeneralCallResult } from '@/core/services/common'; export interface NodeIKernelGroupService { + + getUidByUin(uin: string): Promise; + + getUinByUid(uid: string): Promise; + //26702 getGroupMemberLevelInfo(groupCode: string): Promise; //26702 getGroupHonorList(groupCodes: Array): unknown; diff --git a/src/core/src/services/NodeIKernelProfileService.ts b/src/core/src/services/NodeIKernelProfileService.ts index 403f1a31..ec7e9861 100644 --- a/src/core/src/services/NodeIKernelProfileService.ts +++ b/src/core/src/services/NodeIKernelProfileService.ts @@ -14,6 +14,10 @@ export enum ProfileBizType { KOTHER } export interface NodeIKernelProfileService { + + getUidByUin(uin: string): Promise; + + getUinByUid(uid: string): Promise; // { // coreInfo: CoreInfo, // baseInfo: BaseInfo,