✨ feat(37需求): 注销账号
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user