后台添加修改密码、编辑、记录等功能
This commit is contained in:
@@ -35,6 +35,12 @@ export default class GmController extends Controller {
|
||||
ctx.body = await ctx.service.gmUser.createGmGroup(group, name, desc);
|
||||
}
|
||||
|
||||
public async saveGmGroup() {
|
||||
const { ctx } = this;
|
||||
const {groupId, group, name, desc} = ctx.request.body;
|
||||
ctx.body = await ctx.service.gmUser.saveGmGroup(groupId, group, name, desc);
|
||||
}
|
||||
|
||||
public async saveGmApiToGroup() {
|
||||
const { ctx } = this;
|
||||
const {id, apis} = ctx.request.body;
|
||||
|
||||
@@ -15,7 +15,13 @@ export default class LoginController extends Controller {
|
||||
"data": ctx.user
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
public async changeMyPass() {
|
||||
const { ctx } = this;
|
||||
const {uid, password} = ctx.request.body;
|
||||
ctx.body = await ctx.service.gmUser.changeMyPass(uid, password);
|
||||
}
|
||||
|
||||
public async getMenu() {
|
||||
const { ctx } = this;
|
||||
ctx.body = {
|
||||
|
||||
Reference in New Issue
Block a user