feat: FetchOtherProfileLike

This commit is contained in:
手瓜一十雪
2024-09-16 18:51:05 +08:00
parent cd727a91c9
commit 79d72044ed
3 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
export class FetchOtherProfileLike extends BaseAction<{ qq: number }, any> {
actionName = ActionName.FetchOtherProfileLike;
async _handle(payload: { qq: number }) {
if (!payload.qq) throw new Error('qq is required');
return await this.core.apis.UserApi.getUidByUinV2(payload.qq.toString());
}
}