From b7898a107fc6628ed8387158fb03b84c0ba8c951 Mon Sep 17 00:00:00 2001 From: Gary Date: Mon, 29 Jan 2024 11:20:27 +0800 Subject: [PATCH] 1.add logout interface --- .../com/luoo/user/controller/LoginController.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/luoo_user/src/main/java/com/luoo/user/controller/LoginController.java b/luoo_user/src/main/java/com/luoo/user/controller/LoginController.java index 0c7c6e2..5dc60fc 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/LoginController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/LoginController.java @@ -198,4 +198,15 @@ public class LoginController extends BaseController { public Result> getSupportedCountryCode() { return Result.success(DEFAULT_SUPPORTED_COUNTRY_CODES); } + /** + * 退出登录 + * @param authorization + * @return + */ + @ApiOperation(value = "6.退出登录") + @PostMapping("/logout") + @GlobalInterceptor(checkAppUserLogin = true) + public Result logout(@RequestHeader(value = "Authorization", required = false) String authorization){ + return Result.success(); + } }