后台添加修改密码、编辑、记录等功能

This commit is contained in:
luying
2020-09-22 15:14:00 +08:00
parent 780562979e
commit 9f57e52445
8 changed files with 113 additions and 12 deletions

View File

@@ -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 = {