refactor: 项目结构

This commit is contained in:
手瓜一十雪
2024-11-21 11:52:50 +08:00
parent a5d4998933
commit a19358da5b
15 changed files with 45 additions and 71 deletions

View File

@@ -24,7 +24,7 @@ export class NTQQFriendApi {
);
}
async getBuddyV2(refresh = false): Promise<FriendV2[]> {
async getBuddy(refresh = false): Promise<FriendV2[]> {
return Array.from((await this.getBuddyV2SimpleInfoMap(refresh)).values());
}
@@ -58,7 +58,7 @@ export class NTQQFriendApi {
categoryName: category.categroyName,
categoryMbCount: category.categroyMbCount,
onlineCount: category.onlineCount,
buddyList: category.buddyUids.map(uid => data.get(uid)!).filter(value => value),
buddyList: category.buddyUids.map(uid => data.get(uid)).filter(value => !!value),
}));
}