From 11aa3a0315ed1f04cfa84bb592a325d4cfa02c12 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: Thu, 12 Sep 2024 20:05:46 +0800 Subject: [PATCH] feat: fetchOtherProfileLike --- src/core/apis/user.ts | 13 ++++++++++++- src/core/entities/user.ts | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) 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 {