release: 1.6.7

This commit is contained in:
手瓜一十雪
2024-07-20 17:43:56 +08:00
parent 80c59de545
commit 8ba46d5061
11 changed files with 58 additions and 8 deletions

View File

@@ -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);
}

View File

@@ -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;

View File

@@ -30,5 +30,6 @@ export interface NodeIKernelRobotService {
setRobotPickTts(arg1: unknown, arg2: unknown): unknown;
getRobotUinRange(data: any): Promise<{ response: { robotUinRanges: any } }>
isNull(): boolean;
}
}