(37需求): 查询角色接口
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Controller } from 'egg';
|
||||
import { GetGuildInfoByUserParam, GetRoleByServerParam, GetRoleByUidParam, GetServerListParam, GetServerParam, GuildNameCallBackParam, IOSRefundParam, PayCallback37Data, RoleNameCallBackParam, SendGiftCodeParam } from '../domain/sdk';
|
||||
import { GetGuildInfoByUserParam, GetRoleByServerParam, GetRoleByUidParam, GetServerAndUidParam, GetServerListParam, GetServerParam, GuildNameCallBackParam, IOSRefundParam, PayCallback37Data, RoleNameCallBackParam, SendGiftCodeParam } from '../domain/sdk';
|
||||
|
||||
export default class SdkController extends Controller {
|
||||
|
||||
@@ -76,6 +76,14 @@ export default class SdkController extends Controller {
|
||||
return;
|
||||
}
|
||||
|
||||
public async getRoleByUidAndServerForLogin() {
|
||||
const { ctx } = this;
|
||||
const params = new GetServerAndUidParam(ctx.query||ctx.request.body);
|
||||
ctx.body = await ctx.service.sdk.getRoleByUidAndServerForLogin(params);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
public async getRoleByUid() {
|
||||
const { ctx } = this;
|
||||
const params = new GetRoleByUidParam(ctx.query);
|
||||
|
||||
Reference in New Issue
Block a user