补全登录退出接口并统一登出路径
This commit is contained in:
@@ -33,11 +33,10 @@ public class LoginController {
|
||||
return CommonResult.success("登录成功!", token);
|
||||
}
|
||||
|
||||
@Operation(summary = "退出登录API-功能未完成")
|
||||
@PostMapping("/loingOut")
|
||||
public CommonResult<Void> loingOut(@RequestBody LoginBody loginBody) throws AppException {
|
||||
//todo loginOut 退出登录API
|
||||
// loginService.loginOut();
|
||||
@Operation(summary = "退出登录API")
|
||||
@PostMapping("/logout")
|
||||
public CommonResult<Void> logout() {
|
||||
loginService.logout();
|
||||
return CommonResult.success("已登出");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user