后台:权限

This commit is contained in:
luying
2021-12-21 19:42:37 +08:00
parent 151ac33b91
commit 7d0808a9dc
26 changed files with 1009 additions and 818 deletions
+2 -8
View File
@@ -18,12 +18,6 @@ export default class GmController extends Controller {
ctx.body = await ctx.service.gmUser.getApiList();
}
public async saveApi() {
const { ctx } = this;
const {api, name} = ctx.request.body;
ctx.body = await ctx.service.gmUser.saveApi(api, name);
}
public async getGroupList() {
const { ctx } = this;
ctx.body = await ctx.service.gmUser.getGroupList();
@@ -49,7 +43,7 @@ export default class GmController extends Controller {
public async saveGmGroupToUser() {
const { ctx } = this;
const {uid, groups} = ctx.request.body;
ctx.body = await ctx.service.gmUser.saveGmGroupToUser(uid, groups);
const {uid, group, env} = ctx.request.body;
ctx.body = await ctx.service.gmUser.saveGmGroupToUser(uid, group, env);
}
}