feat: FetchOtherProfileLike
This commit is contained in:
1 parent
c145935d46
commit
1ff6ce2343
3 files changed
+14
No files matched your search
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user