refactor: NTQQGroupApi

This commit is contained in:
手瓜一十雪
2024-12-04 10:43:48 +08:00
parent f85c78d629
commit 7b8ad43186
4 changed files with 84 additions and 92 deletions

View File

@@ -18,6 +18,15 @@ export class NTQQUserApi {
async getStatusByUid(uid: string) {
return this.context.session.getProfileService().getStatus(uid);
}
async getCoreAndBaseInfo(uids: string[]) {
return await this.core.eventWrapper.callNoListenerEvent(
'NodeIKernelProfileService/getCoreAndBaseInfo',
'nodeStore',
uids,
);
}
// 默认获取自己的 type = 2 获取别人 type = 1
async getProfileLike(uid: string, start: number, count: number, type: number = 2) {
return this.context.session.getProfileLikeService().getBuddyProfileLike({