后台添加修改密码、编辑、记录等功能
This commit is contained in:
@@ -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