diff --git a/src/core/apis/user.ts b/src/core/apis/user.ts index 4686bee0..b3860cab 100644 --- a/src/core/apis/user.ts +++ b/src/core/apis/user.ts @@ -24,7 +24,18 @@ export class NTQQUserApi { limit: 20, }); } - + async fetchOtherProfileLike(uid: string) { + return this.context.session.getProfileLikeService().getBuddyProfileLike({ + friendUids: [uid], + basic: 1, + vote: 1, + favorite: 0, + userProfile: 0, + type: 1, + start: 0, + limit: 20, + }); + } async setLongNick(longNick: string) { return this.context.session.getProfileService().setLongNick(longNick); } diff --git a/src/core/entities/user.ts b/src/core/entities/user.ts index 692e0f94..c71733b9 100644 --- a/src/core/entities/user.ts +++ b/src/core/entities/user.ts @@ -216,7 +216,7 @@ export interface BuddyProfileLikeReq { userProfile: number; type: number; start: number; - limit: number; + limit?: number; } export interface QQLevel {