feat(测试): 自动测试用删除账号接口

This commit is contained in:
luying
2022-11-02 10:14:34 +08:00
parent f92d1336ac
commit 5d8911771b
7 changed files with 35 additions and 6 deletions

View File

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