mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
release: 1.6.7
This commit is contained in:
@@ -35,6 +35,20 @@ setTimeout(() => {
|
||||
// }
|
||||
// };
|
||||
export class NTQQUserApi {
|
||||
static async getProfileLike(uin: string) {
|
||||
return napCatCore.session.getProfileLikeService().getBuddyProfileLike( {
|
||||
"friendUids": [
|
||||
"u_FUSS0_x06S_9Tf4na_WpUg"
|
||||
],
|
||||
"basic": 1,
|
||||
"vote": 1,
|
||||
"favorite": 0,
|
||||
"userProfile": 1,
|
||||
"type": 2,
|
||||
"start": 0,
|
||||
"limit": 20
|
||||
});
|
||||
}
|
||||
static async setLongNick(longNick: string) {
|
||||
return napCatCore.session.getProfileService().setLongNick(longNick);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { BuddyProfileLikeReq } from "../entities/user";
|
||||
import { GeneralCallResult } from "./common";
|
||||
|
||||
export interface NodeIKernelProfileLikeService {
|
||||
addKernelProfileLikeListener(listener: NodeIKernelProfileLikeService): void;
|
||||
@@ -7,7 +8,13 @@ export interface NodeIKernelProfileLikeService {
|
||||
|
||||
setBuddyProfileLike(...args: unknown[]): { result: number, errMsg: string, succCounts: number };
|
||||
|
||||
getBuddyProfileLike(req: BuddyProfileLikeReq): void;
|
||||
getBuddyProfileLike(req: BuddyProfileLikeReq): Promise<GeneralCallResult & {
|
||||
"info": {
|
||||
"userLikeInfos": Array<any>,
|
||||
"friendMaxVotes": number,
|
||||
"start": number
|
||||
}
|
||||
}>;
|
||||
|
||||
getProfileLikeScidResourceInfo(...args: unknown[]): void;
|
||||
|
||||
|
||||
@@ -30,5 +30,6 @@ export interface NodeIKernelRobotService {
|
||||
setRobotPickTts(arg1: unknown, arg2: unknown): unknown;
|
||||
|
||||
getRobotUinRange(data: any): Promise<{ response: { robotUinRanges: any } }>
|
||||
|
||||
isNull(): boolean;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user