refactor: 项目结构

This commit is contained in:
手瓜一十雪 committed 2024-11-21 11:52:50 +08:00
1 parent 831882f8ea
commit 4dfc72a355
15 files changed
+45 -71

No files matched your search

+2 -2
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),
}));
}