代码优化2

This commit is contained in:
2025-07-31 19:03:04 +08:00
parent 370783b457
commit 74be5321ec
4 changed files with 50 additions and 1 deletions

View File

@ -104,6 +104,15 @@ public class AppAuthController {
return R.ok("退出成功");
}
/**
* 用户注销
*/
@PostMapping("/cancelAccount")
public R<Void> cancelAccount() {
loginService.cancelAccount();
return R.ok("用户注销成功");
}
/**
* 用户注册
*/