登录:修改初始角色流程

This commit is contained in:
luying
2021-04-27 20:48:29 +08:00
parent 5aadace178
commit 2996a899e2
6 changed files with 46 additions and 60 deletions

View File

@@ -46,8 +46,8 @@ export default class AccountController extends Controller {
public async createRole() {
const { ctx } = this;
const { serverId, roleName } = ctx.request.body;
ctx.body = await ctx.service.auth.createRole(serverId, roleName);
const { serverId } = ctx.request.body;
ctx.body = await ctx.service.auth.createRole(serverId);
}
public async bind() {