mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-29 13:01:27 +08:00
12 lines
402 B
TypeScript
12 lines
402 B
TypeScript
import BaseAction from '../BaseAction';
|
|
import { ActionName } from '../types';
|
|
|
|
export class FetchUserProfileLike extends BaseAction<{ qq: number }, any> {
|
|
actionName = ActionName.FetchUserProfileLike;
|
|
|
|
async _handle(payload: { qq: number }) {
|
|
if (!payload.qq) throw new Error('qq is required');
|
|
return await this.core.apis.UserApi.getUidByUinV2(payload.qq.toString());
|
|
}
|
|
}
|