feat(37需求): 注销账号

This commit is contained in:
luying
2023-04-18 16:45:39 +08:00
parent 9ac643f6fb
commit 1c18565c8d
7 changed files with 56 additions and 3 deletions

View File

@@ -72,4 +72,16 @@ export default class AccountController extends Controller {
const { roleId, magicWord } = ctx.request.body;
ctx.body = await ctx.service.auth.deleteRole(roleId, magicWord);
}
public async closeAccount() {
const { ctx } = this;
const { roleId } = ctx.request.body;
ctx.body = await ctx.service.auth.closeAccount(roleId);
}
public async cancelCloseAccount() {
const { ctx } = this;
const { roleId } = ctx.request.body;
ctx.body = await ctx.service.auth.cancelCloseAccount(roleId);
}
}