From 3d99e4a99fddc03d947903e88179a9466677b5c4 Mon Sep 17 00:00:00 2001 From: horizons <1490493387@qq.com> Date: Tue, 6 Sep 2022 07:21:51 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ient.java => OAuth2ClientFeignClient.java} | 6 +- ...lientAuthDTO.java => OAuth2ClientDTO.java} | 2 +- .../admin/controller/SysDeptController.java | 4 +- .../controller/SysOauthClientController.java | 10 +- .../youlai/admin/service/SysDeptService.java | 2 +- .../service/impl/SysDeptServiceImpl.java | 2 +- .../ClientDetailsServiceImpl.java | 10 +- youlai-common/common-core/pom.xml | 1 - .../common/redis/BusinessNoGenerator.java | 7 +- .../youlai/common/redis/utils/RedisUtils.java | 590 ------------------ .../main/resources/META-INF/spring.factories | 1 - .../common/web/domain/CanalMessage.java | 1 - .../com/youlai/common/web/domain/Option.java | 5 +- 13 files changed, 23 insertions(+), 618 deletions(-) rename youlai-admin/admin-api/src/main/java/com/youlai/admin/api/{OAuthClientFeignClient.java => OAuth2ClientFeignClient.java} (69%) rename youlai-admin/admin-api/src/main/java/com/youlai/admin/dto/{ClientAuthDTO.java => OAuth2ClientDTO.java} (96%) delete mode 100644 youlai-common/common-redis/src/main/java/com/youlai/common/redis/utils/RedisUtils.java diff --git a/youlai-admin/admin-api/src/main/java/com/youlai/admin/api/OAuthClientFeignClient.java b/youlai-admin/admin-api/src/main/java/com/youlai/admin/api/OAuth2ClientFeignClient.java similarity index 69% rename from youlai-admin/admin-api/src/main/java/com/youlai/admin/api/OAuthClientFeignClient.java rename to youlai-admin/admin-api/src/main/java/com/youlai/admin/api/OAuth2ClientFeignClient.java index b0c2fa97c..acffda7b6 100644 --- a/youlai-admin/admin-api/src/main/java/com/youlai/admin/api/OAuthClientFeignClient.java +++ b/youlai-admin/admin-api/src/main/java/com/youlai/admin/api/OAuth2ClientFeignClient.java @@ -1,14 +1,14 @@ package com.youlai.admin.api; -import com.youlai.admin.dto.ClientAuthDTO; +import com.youlai.admin.dto.OAuth2ClientDTO; import com.youlai.common.result.Result; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; @FeignClient(value = "youlai-admin", contextId = "oauth-client") -public interface OAuthClientFeignClient { +public interface OAuth2ClientFeignClient { @GetMapping("/api/v1/oauth-clients/getOAuth2ClientById") - Result getOAuth2ClientById(@RequestParam String clientId); + Result getOAuth2ClientById(@RequestParam String clientId); } diff --git a/youlai-admin/admin-api/src/main/java/com/youlai/admin/dto/ClientAuthDTO.java b/youlai-admin/admin-api/src/main/java/com/youlai/admin/dto/OAuth2ClientDTO.java similarity index 96% rename from youlai-admin/admin-api/src/main/java/com/youlai/admin/dto/ClientAuthDTO.java rename to youlai-admin/admin-api/src/main/java/com/youlai/admin/dto/OAuth2ClientDTO.java index c1bd21d17..5c33660eb 100644 --- a/youlai-admin/admin-api/src/main/java/com/youlai/admin/dto/ClientAuthDTO.java +++ b/youlai-admin/admin-api/src/main/java/com/youlai/admin/dto/OAuth2ClientDTO.java @@ -9,7 +9,7 @@ import lombok.Data; * @date 2021/1/15 */ @Data -public class ClientAuthDTO { +public class OAuth2ClientDTO { /** * 客户端ID diff --git a/youlai-admin/admin-boot/src/main/java/com/youlai/admin/controller/SysDeptController.java b/youlai-admin/admin-boot/src/main/java/com/youlai/admin/controller/SysDeptController.java index 9da30f9fc..19448463b 100644 --- a/youlai-admin/admin-boot/src/main/java/com/youlai/admin/controller/SysDeptController.java +++ b/youlai-admin/admin-boot/src/main/java/com/youlai/admin/controller/SysDeptController.java @@ -39,8 +39,8 @@ public class SysDeptController { @ApiOperation(value = "获取部门下拉选项") @GetMapping("/options") - public Result> lisetDeptOptions() { - List