后台:道具获取
This commit is contained in:
@@ -15,11 +15,11 @@ export default class UserController extends Controller {
|
||||
ctx.body = await ctx.service.users.createRole(uid, serverId, roleName);
|
||||
}
|
||||
|
||||
public async addAuth() {
|
||||
const { ctx } = this;
|
||||
const { uid, auth } = ctx.request.body;
|
||||
ctx.body = await ctx.service.users.addAuth(uid, auth);
|
||||
}
|
||||
// public async addAuth() {
|
||||
// const { ctx } = this;
|
||||
// const { uid, auth } = ctx.request.body;
|
||||
// ctx.body = await ctx.service.users.addAuth(uid, auth);
|
||||
// }
|
||||
|
||||
public async fixSms() {
|
||||
const { ctx } = this;
|
||||
@@ -35,8 +35,8 @@ export default class UserController extends Controller {
|
||||
|
||||
public async getrolelist() {
|
||||
const { ctx } = this;
|
||||
const { field, value } = ctx.request.body;
|
||||
ctx.body = await ctx.service.users.getrolelist(field, value);
|
||||
const { page, pageSize, sortField, sortOrder, form } = ctx.request.body;
|
||||
ctx.body = await ctx.service.users.getrolelist(page, pageSize, sortField, sortOrder, form);
|
||||
}
|
||||
|
||||
public async createRoleData() {
|
||||
|
||||
Reference in New Issue
Block a user