build: 退出登录返回DTO

This commit is contained in:
CaptainB 2023-07-04 11:56:55 +08:00 committed by 刘瑞斌
parent 921a076572
commit 9888af431e
1 changed files with 2 additions and 1 deletions

View File

@ -68,8 +68,9 @@ public class LoginController {
}
@GetMapping(value = "/signout")
public void logout(HttpServletResponse response) throws Exception {
public ResultHolder logout(HttpServletResponse response) throws Exception {
SecurityUtils.getSubject().logout();
return ResultHolder.success("logout success");
}
}