From 2205de87b132600874881a1d16d5b474f385df6a Mon Sep 17 00:00:00 2001 From: zhangbinhub Date: Fri, 15 Aug 2025 14:35:56 +0800 Subject: [PATCH 1/7] =?UTF-8?q?[Upgrade]=20=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/gitee/zhangbinhub/admin/common/api/CommonPath.kt | 1 - .../io/gitee/zhangbinhub/admin/common/api/OauthApi.kt | 2 -- .../zhangbinhub/admin/common/constant/CommonConstant.kt | 1 - .../zhangbinhub/admin/common/constant/ModuleFuncCode.kt | 1 - .../io/gitee/zhangbinhub/admin/common/constant/RoleCode.kt | 1 - .../zhangbinhub/admin/common/constant/RouteConstant.kt | 1 - .../gitee/zhangbinhub/admin/common/constant/RuntimeName.kt | 7 ------- .../resource/server/base/BaseResourceServerController.kt | 1 - .../zhangbinhub/admin/resource/server/vo/ModuleFuncVo.kt | 1 - .../zhangbinhub/admin/resource/server/vo/OrganizationVo.kt | 1 - .../admin/resource/server/vo/RuntimeConfigVo.kt | 1 - .../AcpAdminResourceServerFeignClientAutoConfiguration.kt | 1 - .../resource/server/base/BaseResourceServerController.kt | 1 - .../admin/resource/server/feign/CommonOauthServer.kt | 1 - .../resource/server/hystrix/CommonOauthServerHystrix.kt | 1 - .../admin/resource/server/hystrix/WorkFlowServerHystrix.kt | 1 - .../zhangbinhub/admin/resource/server/vo/ModuleFuncVo.kt | 1 - .../zhangbinhub/admin/resource/server/vo/OrganizationVo.kt | 1 - .../admin/resource/server/vo/RuntimeConfigVo.kt | 1 - .../zhangbinhub/admin/common/base/BaseFeignHystrix.kt | 1 - .../io/gitee/zhangbinhub/admin/common/vo/BooleanInfoVo.kt | 1 - .../zhangbinhub/admin/common/vo/CustomerQueryPageVo.kt | 1 - .../kotlin/io/gitee/zhangbinhub/admin/common/vo/InfoVo.kt | 1 - .../io/gitee/zhangbinhub/admin/common/vo/InnerInfoVo.kt | 1 - .../io/gitee/zhangbinhub/admin/common/test/SimpleTest.java | 1 - .../gitee/zhangbinhub/admin/deploy/base/BaseRepository.kt | 1 - .../io/gitee/zhangbinhub/admin/deploy/base/BaseService.kt | 1 - .../admin/deploy/conf/CustomerApiConfiguration.kt | 1 - .../admin/deploy/conf/DeployServerCustomerConfiguration.kt | 1 - .../admin/gateway/conf/RouteEnvironmentPostProcessor.kt | 1 - .../zhangbinhub/admin/gateway/constant/GateWayConstant.kt | 1 - .../admin/gateway/consumer/UpdateRouteConsumerProcess.kt | 1 - .../gitee/zhangbinhub/admin/gateway/log/RouteLogBridge.kt | 1 - .../gitee/zhangbinhub/admin/gateway/log/RouteLogMessage.kt | 1 - .../gitee/zhangbinhub/admin/gateway/log/RouteLogService.kt | 1 - .../zhangbinhub/admin/gateway/repo/RouteRedisRepository.kt | 1 - .../io/gitee/zhangbinhub/admin/log/base/BaseLogEntity.kt | 1 - .../io/gitee/zhangbinhub/admin/log/base/BaseRepository.kt | 1 - .../io/gitee/zhangbinhub/admin/log/base/BaseService.kt | 1 - .../zhangbinhub/admin/log/conf/CustomerApiConfiguration.kt | 1 - .../admin/log/conf/LogServerCustomerConfiguration.kt | 1 - .../zhangbinhub/admin/log/conf/RouteLogConfiguration.kt | 1 - .../admin/log/conf/RouteLogEnvironmentPostProcessor.kt | 1 - .../io/gitee/zhangbinhub/admin/log/constant/LogConstant.kt | 1 - .../admin/log/consumer/RouteLogConsumerProcess.kt | 1 - .../zhangbinhub/admin/log/controller/LogController.kt | 1 - .../io/gitee/zhangbinhub/admin/log/entity/LoginLog.kt | 1 - .../gitee/zhangbinhub/admin/log/entity/LoginLogHistory.kt | 1 - .../io/gitee/zhangbinhub/admin/log/entity/OperateLog.kt | 1 - .../zhangbinhub/admin/log/entity/OperateLogHistory.kt | 1 - .../io/gitee/zhangbinhub/admin/log/entity/RouteLog.kt | 1 - .../gitee/zhangbinhub/admin/log/entity/RouteLogHistory.kt | 1 - .../gitee/zhangbinhub/admin/log/message/RouteLogMessage.kt | 1 - .../kotlin/io/gitee/zhangbinhub/admin/log/po/LogQueryPo.kt | 1 - .../admin/log/repo/LoginLogHistoryRepository.kt | 1 - .../gitee/zhangbinhub/admin/log/repo/LoginLogRepository.kt | 1 - .../admin/log/repo/OperateLogHistoryRepository.kt | 1 - .../zhangbinhub/admin/log/repo/OperateLogRepository.kt | 1 - .../admin/log/repo/RouteLogHistoryRepository.kt | 1 - .../gitee/zhangbinhub/admin/log/repo/RouteLogRepository.kt | 1 - .../zhangbinhub/admin/log/schedule/LogDailyHistory.kt | 1 - .../zhangbinhub/admin/log/schedule/LogFileBackUpTask.kt | 1 - .../zhangbinhub/admin/log/service/LogHistoryService.kt | 1 - .../io/gitee/zhangbinhub/admin/log/service/LogService.kt | 1 - .../kotlin/io/gitee/zhangbinhub/admin/log/vo/LoginLogVo.kt | 1 - .../gitee/zhangbinhub/admin/oauth/base/BaseRepository.kt | 1 - .../io/gitee/zhangbinhub/admin/oauth/base/BaseService.kt | 1 - .../gitee/zhangbinhub/admin/oauth/base/OauthBaseService.kt | 1 - .../zhangbinhub/admin/oauth/base/OauthBaseTreeEntity.kt | 1 - .../admin/oauth/conf/CustomerApiConfiguration.kt | 1 - .../zhangbinhub/admin/oauth/constant/BusEventMessage.kt | 1 - .../io/gitee/zhangbinhub/admin/oauth/po/ApplicationPo.kt | 1 - .../gitee/zhangbinhub/admin/oauth/po/ApplicationQueryPo.kt | 1 - .../kotlin/io/gitee/zhangbinhub/admin/oauth/po/MenuPo.kt | 1 - .../io/gitee/zhangbinhub/admin/oauth/po/ModuleFuncPo.kt | 1 - .../io/gitee/zhangbinhub/admin/oauth/po/OrganizationPo.kt | 1 - .../io/gitee/zhangbinhub/admin/oauth/po/RuntimePo.kt | 1 - .../io/gitee/zhangbinhub/admin/oauth/po/RuntimeQueryPo.kt | 1 - .../io/gitee/zhangbinhub/admin/oauth/po/UserInfoPo.kt | 1 - .../zhangbinhub/admin/oauth/service/ApplicationService.kt | 1 - .../gitee/zhangbinhub/admin/oauth/service/MenuService.kt | 1 - .../admin/oauth/service/RuntimeConfigService.kt | 1 - .../gitee/zhangbinhub/admin/oauth/service/UserService.kt | 1 - .../kotlin/io/gitee/zhangbinhub/admin/oauth/vo/MenuVo.kt | 1 - .../io/gitee/zhangbinhub/admin/oauth/vo/ModuleFuncVo.kt | 1 - .../io/gitee/zhangbinhub/admin/oauth/vo/OnlineInfoVo.kt | 1 - .../io/gitee/zhangbinhub/admin/oauth/nobuild/TestJpa.kt | 1 - .../zhangbinhub/admin/oauth/nobuild/TestSerialNumber.kt | 1 - .../gitee/zhangbinhub/admin/route/base/BaseRepository.kt | 1 - .../io/gitee/zhangbinhub/admin/route/base/BaseService.kt | 1 - .../admin/route/conf/CustomerApiConfiguration.kt | 1 - .../zhangbinhub/admin/route/conf/RouteConfiguration.kt | 1 - .../route/conf/RouteUpdateEnvironmentPostProcessor.kt | 1 - .../io/gitee/zhangbinhub/admin/route/constant/RouteApi.kt | 1 - .../zhangbinhub/admin/route/controller/RouteController.kt | 1 - .../zhangbinhub/admin/route/definition/FilterDefinition.kt | 1 - .../gitee/zhangbinhub/admin/route/definition/NameUtils.kt | 1 - .../admin/route/definition/PredicateDefinition.kt | 1 - .../zhangbinhub/admin/route/definition/RouteConstant.kt | 1 - .../zhangbinhub/admin/route/definition/RouteDefinition.kt | 1 - .../io/gitee/zhangbinhub/admin/route/entity/Route.kt | 1 - .../kotlin/io/gitee/zhangbinhub/admin/route/po/RoutePo.kt | 1 - .../io/gitee/zhangbinhub/admin/route/po/RouteQueryPo.kt | 1 - .../zhangbinhub/admin/route/producer/UpdateRouteBridge.kt | 1 - .../gitee/zhangbinhub/admin/route/service/RouteService.kt | 1 - .../zhangbinhub/admin/workflow/base/BaseRepository.kt | 1 - .../gitee/zhangbinhub/admin/workflow/base/BaseService.kt | 1 - .../admin/workflow/conf/CustomerApiConfiguration.kt | 1 - .../zhangbinhub/admin/workflow/entity/MyProcessInstance.kt | 1 - 109 files changed, 116 deletions(-) delete mode 100644 common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RuntimeName.kt diff --git a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/api/CommonPath.kt b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/api/CommonPath.kt index 5d841137..01c3eb4c 100644 --- a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/api/CommonPath.kt +++ b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/api/CommonPath.kt @@ -1,7 +1,6 @@ package io.gitee.zhangbinhub.admin.common.api /** - * @author zhang by 01/02/2019 * @since JDK 11 */ object CommonPath { diff --git a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/api/OauthApi.kt b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/api/OauthApi.kt index 14362c6c..24ec9ab3 100644 --- a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/api/OauthApi.kt +++ b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/api/OauthApi.kt @@ -1,7 +1,6 @@ package io.gitee.zhangbinhub.admin.common.api /** - * @author zhang by 18/01/2019 * @since JDK 11 */ object OauthApi { @@ -31,7 +30,6 @@ object OauthApi { const val token = "/token" const val logOut = "/logout" const val onlineInfo = "/online-info" - const val currToken = "/token-info" const val moduleFunc = "/module-func" const val authentication = "/authentication" const val currUser = "/user-info" diff --git a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/CommonConstant.kt b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/CommonConstant.kt index a2336095..06467ae5 100644 --- a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/CommonConstant.kt +++ b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/CommonConstant.kt @@ -1,7 +1,6 @@ package io.gitee.zhangbinhub.admin.common.constant /** - * @author zhang by 02/02/2019 * @since JDK 11 */ object CommonConstant { diff --git a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/ModuleFuncCode.kt b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/ModuleFuncCode.kt index 822097af..261bf7ae 100644 --- a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/ModuleFuncCode.kt +++ b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/ModuleFuncCode.kt @@ -1,7 +1,6 @@ package io.gitee.zhangbinhub.admin.common.constant /** - * @author zhang by 15/01/2019 * @since JDK 11 */ object ModuleFuncCode { diff --git a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RoleCode.kt b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RoleCode.kt index fececc2a..631edf09 100644 --- a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RoleCode.kt +++ b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RoleCode.kt @@ -5,7 +5,6 @@ package io.gitee.zhangbinhub.admin.common.constant * 新建角色时,需要向该接口中增加对应的编码 * 系统中配置的角色编码不应包含前缀prefix * - * @author zhang by 28/12/2018 * @since JDK 11 */ object RoleCode { diff --git a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RouteConstant.kt b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RouteConstant.kt index 78e4296e..8dc29a02 100644 --- a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RouteConstant.kt +++ b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RouteConstant.kt @@ -1,7 +1,6 @@ package io.gitee.zhangbinhub.admin.common.constant /** - * @author zhang by 30/01/2019 * @since JDK 11 */ object RouteConstant { diff --git a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RuntimeName.kt b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RuntimeName.kt deleted file mode 100644 index bcdb0820..00000000 --- a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RuntimeName.kt +++ /dev/null @@ -1,7 +0,0 @@ -package io.gitee.zhangbinhub.admin.common.constant - -/** - * @author zhang by 01/02/2019 - * @since JDK 11 - */ -object RuntimeName diff --git a/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/base/BaseResourceServerController.kt b/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/base/BaseResourceServerController.kt index 31bee9ae..5b92175e 100644 --- a/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/base/BaseResourceServerController.kt +++ b/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/base/BaseResourceServerController.kt @@ -5,7 +5,6 @@ import io.gitee.zhangbinhub.acp.boot.log.LogAdapter import io.gitee.zhangbinhub.admin.common.base.BaseController /** - * @author zhang by 15/01/2019 * @since JDK 11 */ abstract class BaseResourceServerController(private val logAdapter: LogAdapter) : BaseController() { diff --git a/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/ModuleFuncVo.kt b/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/ModuleFuncVo.kt index 2987fc58..a79297d8 100644 --- a/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/ModuleFuncVo.kt +++ b/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/ModuleFuncVo.kt @@ -3,7 +3,6 @@ package io.gitee.zhangbinhub.admin.resource.server.vo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 19/01/2019 * @since JDK 11 */ @Schema(description = "模块功能配置详细信息") diff --git a/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/OrganizationVo.kt b/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/OrganizationVo.kt index 496274b7..d3e18fc6 100644 --- a/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/OrganizationVo.kt +++ b/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/OrganizationVo.kt @@ -3,7 +3,6 @@ package io.gitee.zhangbinhub.admin.resource.server.vo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 17/01/2019 * @since JDK 11 */ @Schema(description = "机构详细信息") diff --git a/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/RuntimeConfigVo.kt b/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/RuntimeConfigVo.kt index 1ec4a46e..9bf5dea1 100644 --- a/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/RuntimeConfigVo.kt +++ b/common/acp-admin-cloud-dependencies-resource-server-reactive/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/RuntimeConfigVo.kt @@ -3,7 +3,6 @@ package io.gitee.zhangbinhub.admin.resource.server.vo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 15/01/2019 * @since JDK 11 */ @Schema(description = "运行配置信息") diff --git a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/AcpAdminResourceServerFeignClientAutoConfiguration.kt b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/AcpAdminResourceServerFeignClientAutoConfiguration.kt index ddf5e336..b943bfaf 100644 --- a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/AcpAdminResourceServerFeignClientAutoConfiguration.kt +++ b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/AcpAdminResourceServerFeignClientAutoConfiguration.kt @@ -10,7 +10,6 @@ import org.springframework.cloud.openfeign.EnableFeignClients import org.springframework.context.annotation.Bean /** - * @author zhang by 12/12/2019 * @since JDK 11 */ @AutoConfiguration(after = [BlockingLoadBalancerClientAutoConfiguration::class]) diff --git a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/base/BaseResourceServerController.kt b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/base/BaseResourceServerController.kt index 31bee9ae..5b92175e 100644 --- a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/base/BaseResourceServerController.kt +++ b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/base/BaseResourceServerController.kt @@ -5,7 +5,6 @@ import io.gitee.zhangbinhub.acp.boot.log.LogAdapter import io.gitee.zhangbinhub.admin.common.base.BaseController /** - * @author zhang by 15/01/2019 * @since JDK 11 */ abstract class BaseResourceServerController(private val logAdapter: LogAdapter) : BaseController() { diff --git a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/feign/CommonOauthServer.kt b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/feign/CommonOauthServer.kt index 483a45f5..622ee641 100644 --- a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/feign/CommonOauthServer.kt +++ b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/feign/CommonOauthServer.kt @@ -12,7 +12,6 @@ import org.springframework.util.MultiValueMap import org.springframework.web.bind.annotation.* /** - * @author zhang by 14/11/2019 * @since JDK 11 */ @FeignClient(value = "oauth-server", fallbackFactory = CommonOauthServerHystrix::class) diff --git a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/hystrix/CommonOauthServerHystrix.kt b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/hystrix/CommonOauthServerHystrix.kt index 5c5af100..5165bc48 100644 --- a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/hystrix/CommonOauthServerHystrix.kt +++ b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/hystrix/CommonOauthServerHystrix.kt @@ -13,7 +13,6 @@ import org.springframework.http.HttpStatus import org.springframework.util.MultiValueMap /** - * @author zhang by 14/11/2019 * @since JDK 11 */ class CommonOauthServerHystrix(logAdapter: LogAdapter, objectMapper: ObjectMapper) : diff --git a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/hystrix/WorkFlowServerHystrix.kt b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/hystrix/WorkFlowServerHystrix.kt index 3658a5bd..3bf9628a 100644 --- a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/hystrix/WorkFlowServerHystrix.kt +++ b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/hystrix/WorkFlowServerHystrix.kt @@ -11,7 +11,6 @@ import io.gitee.zhangbinhub.admin.resource.server.po.ProcessTerminationPo import io.gitee.zhangbinhub.admin.resource.server.vo.* /** - * @author zhang by 20/12/2019 * @since JDK 11 */ class WorkFlowServerHystrix(logAdapter: LogAdapter, objectMapper: ObjectMapper) : diff --git a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/ModuleFuncVo.kt b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/ModuleFuncVo.kt index 2987fc58..a79297d8 100644 --- a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/ModuleFuncVo.kt +++ b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/ModuleFuncVo.kt @@ -3,7 +3,6 @@ package io.gitee.zhangbinhub.admin.resource.server.vo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 19/01/2019 * @since JDK 11 */ @Schema(description = "模块功能配置详细信息") diff --git a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/OrganizationVo.kt b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/OrganizationVo.kt index 496274b7..d3e18fc6 100644 --- a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/OrganizationVo.kt +++ b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/OrganizationVo.kt @@ -3,7 +3,6 @@ package io.gitee.zhangbinhub.admin.resource.server.vo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 17/01/2019 * @since JDK 11 */ @Schema(description = "机构详细信息") diff --git a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/RuntimeConfigVo.kt b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/RuntimeConfigVo.kt index 1ec4a46e..9bf5dea1 100644 --- a/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/RuntimeConfigVo.kt +++ b/common/acp-admin-cloud-dependencies-resource-server/src/main/kotlin/io/gitee/zhangbinhub/admin/resource/server/vo/RuntimeConfigVo.kt @@ -3,7 +3,6 @@ package io.gitee.zhangbinhub.admin.resource.server.vo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 15/01/2019 * @since JDK 11 */ @Schema(description = "运行配置信息") diff --git a/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/base/BaseFeignHystrix.kt b/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/base/BaseFeignHystrix.kt index c0a59361..3f2b2a6e 100644 --- a/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/base/BaseFeignHystrix.kt +++ b/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/base/BaseFeignHystrix.kt @@ -8,7 +8,6 @@ import io.gitee.zhangbinhub.acp.core.common.CommonTools import org.springframework.cloud.openfeign.FallbackFactory /** - * @author zhang by 01/02/2019 * @since JDK 11 */ abstract class BaseFeignHystrix protected constructor( diff --git a/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/BooleanInfoVo.kt b/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/BooleanInfoVo.kt index 832c91f3..4c50231b 100644 --- a/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/BooleanInfoVo.kt +++ b/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/BooleanInfoVo.kt @@ -3,7 +3,6 @@ package io.gitee.zhangbinhub.admin.common.vo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 11/01/2019 * @since JDK 11 */ @Schema(description = "布尔响应信息") diff --git a/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/CustomerQueryPageVo.kt b/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/CustomerQueryPageVo.kt index daa05e07..b387c0a2 100644 --- a/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/CustomerQueryPageVo.kt +++ b/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/CustomerQueryPageVo.kt @@ -3,7 +3,6 @@ package io.gitee.zhangbinhub.admin.common.vo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 04/11/2019 * @since JDK 11 */ @Schema(description = "自定义分页查询结果") diff --git a/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/InfoVo.kt b/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/InfoVo.kt index 6aa59127..d9fe55f3 100644 --- a/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/InfoVo.kt +++ b/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/InfoVo.kt @@ -3,7 +3,6 @@ package io.gitee.zhangbinhub.admin.common.vo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 11/01/2019 * @since JDK 11 */ @Schema(description = "响应信息") diff --git a/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/InnerInfoVo.kt b/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/InnerInfoVo.kt index 512d33f2..a3a017ed 100644 --- a/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/InnerInfoVo.kt +++ b/common/acp-admin-cloud-dependencies/src/main/kotlin/io/gitee/zhangbinhub/admin/common/vo/InnerInfoVo.kt @@ -3,7 +3,6 @@ package io.gitee.zhangbinhub.admin.common.vo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 11/01/2019 * @since JDK 11 */ @Schema(description = "内部响应信息") diff --git a/common/acp-admin-cloud-dependencies/src/test/java/io/gitee/zhangbinhub/admin/common/test/SimpleTest.java b/common/acp-admin-cloud-dependencies/src/test/java/io/gitee/zhangbinhub/admin/common/test/SimpleTest.java index 77273a0a..2bbba9c3 100644 --- a/common/acp-admin-cloud-dependencies/src/test/java/io/gitee/zhangbinhub/admin/common/test/SimpleTest.java +++ b/common/acp-admin-cloud-dependencies/src/test/java/io/gitee/zhangbinhub/admin/common/test/SimpleTest.java @@ -5,7 +5,6 @@ import org.joda.time.DateTime; import org.junit.jupiter.api.Test; /** - * @author zhang by 15/01/2019 * @since JDK 11 */ class SimpleTest { diff --git a/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/base/BaseRepository.kt b/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/base/BaseRepository.kt index e2444b9c..d218cdaf 100644 --- a/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/base/BaseRepository.kt +++ b/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/base/BaseRepository.kt @@ -5,7 +5,6 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor import org.springframework.data.repository.NoRepositoryBean /** - * @author zhang by 15/01/2019 * @since JDK 11 */ @NoRepositoryBean diff --git a/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/base/BaseService.kt b/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/base/BaseService.kt index a1b06ce7..c58edceb 100644 --- a/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/base/BaseService.kt +++ b/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/base/BaseService.kt @@ -6,7 +6,6 @@ import org.springframework.data.domain.PageRequest import org.springframework.data.domain.Sort /** - * @author zhang by 15/01/2019 * @since JDK 11 */ abstract class BaseService { diff --git a/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/conf/CustomerApiConfiguration.kt b/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/conf/CustomerApiConfiguration.kt index de8c69ba..a5b6521f 100644 --- a/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/conf/CustomerApiConfiguration.kt +++ b/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/conf/CustomerApiConfiguration.kt @@ -10,7 +10,6 @@ import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration /** - * @author zhang by 27/12/2018 * @since JDK 11 */ @Configuration(proxyBeanMethods = false) diff --git a/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/conf/DeployServerCustomerConfiguration.kt b/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/conf/DeployServerCustomerConfiguration.kt index 6d76201f..fb1a2882 100644 --- a/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/conf/DeployServerCustomerConfiguration.kt +++ b/modules/deploy-server/src/main/kotlin/io/gitee/zhangbinhub/admin/deploy/conf/DeployServerCustomerConfiguration.kt @@ -5,7 +5,6 @@ import org.springframework.cloud.context.config.annotation.RefreshScope import org.springframework.stereotype.Component /** - * @author zhang by 30/01/2019 * @since JDK 11 */ @Component diff --git a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/conf/RouteEnvironmentPostProcessor.kt b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/conf/RouteEnvironmentPostProcessor.kt index 10394662..64c7c7e7 100644 --- a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/conf/RouteEnvironmentPostProcessor.kt +++ b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/conf/RouteEnvironmentPostProcessor.kt @@ -11,7 +11,6 @@ import org.springframework.core.env.ConfigurableEnvironment import org.springframework.util.MimeTypeUtils /** - * @author zhang by 17/12/2018 00:41 * @since JDK 11 */ class RouteEnvironmentPostProcessor : EnvironmentPostProcessor { diff --git a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/constant/GateWayConstant.kt b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/constant/GateWayConstant.kt index 498d0f25..bbeaea14 100644 --- a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/constant/GateWayConstant.kt +++ b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/constant/GateWayConstant.kt @@ -1,7 +1,6 @@ package io.gitee.zhangbinhub.admin.gateway.constant /** - * @author zhang by 17/03/2019 * @since JDK 11 */ object GateWayConstant { diff --git a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/consumer/UpdateRouteConsumerProcess.kt b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/consumer/UpdateRouteConsumerProcess.kt index 4fc05627..e0e4efbc 100644 --- a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/consumer/UpdateRouteConsumerProcess.kt +++ b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/consumer/UpdateRouteConsumerProcess.kt @@ -7,7 +7,6 @@ import org.springframework.stereotype.Component import java.util.function.Consumer /** - * @author zhang by 18/03/2019 * @since JDK 11 */ @Component diff --git a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/log/RouteLogBridge.kt b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/log/RouteLogBridge.kt index bec402a7..16a79fa1 100644 --- a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/log/RouteLogBridge.kt +++ b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/log/RouteLogBridge.kt @@ -5,7 +5,6 @@ import org.springframework.cloud.stream.function.StreamBridge import org.springframework.messaging.support.MessageBuilder /** - * @author zhang by 18/03/2019 * @since JDK 11 */ class RouteLogBridge( diff --git a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/log/RouteLogMessage.kt b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/log/RouteLogMessage.kt index 3cc13087..26ef59a7 100644 --- a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/log/RouteLogMessage.kt +++ b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/log/RouteLogMessage.kt @@ -1,7 +1,6 @@ package io.gitee.zhangbinhub.admin.gateway.log /** - * @author zhang by 21/05/2019 * @since JDK 11 */ data class RouteLogMessage( diff --git a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/log/RouteLogService.kt b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/log/RouteLogService.kt index 082358ba..89979ebd 100644 --- a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/log/RouteLogService.kt +++ b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/log/RouteLogService.kt @@ -21,7 +21,6 @@ import java.net.UnknownHostException import java.nio.charset.Charset /** - * @author zhang by 15/05/2019 * @since JDK 11 */ @Component diff --git a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/repo/RouteRedisRepository.kt b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/repo/RouteRedisRepository.kt index e1a6da2f..8400d16b 100644 --- a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/repo/RouteRedisRepository.kt +++ b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/repo/RouteRedisRepository.kt @@ -18,7 +18,6 @@ import reactor.core.publisher.Mono import java.util.* /** - * @author zhang by 17/03/2019 * @since JDK 11 */ @Component diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/base/BaseLogEntity.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/base/BaseLogEntity.kt index e6e4ae39..3095ec06 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/base/BaseLogEntity.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/base/BaseLogEntity.kt @@ -5,7 +5,6 @@ import jakarta.persistence.Column import jakarta.persistence.MappedSuperclass /** - * @author zhang by 24/12/2019 * @since JDK 11 */ @MappedSuperclass diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/base/BaseRepository.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/base/BaseRepository.kt index 9fad0138..47690f87 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/base/BaseRepository.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/base/BaseRepository.kt @@ -5,7 +5,6 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor import org.springframework.data.repository.NoRepositoryBean /** - * @author zhang by 15/01/2019 * @since JDK 11 */ @NoRepositoryBean diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/base/BaseService.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/base/BaseService.kt index 9a194777..1563687e 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/base/BaseService.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/base/BaseService.kt @@ -6,7 +6,6 @@ import org.springframework.data.domain.PageRequest import org.springframework.data.domain.Sort /** - * @author zhang by 15/01/2019 * @since JDK 11 */ abstract class BaseService { diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/CustomerApiConfiguration.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/CustomerApiConfiguration.kt index 5cdae58e..7042cbd5 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/CustomerApiConfiguration.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/CustomerApiConfiguration.kt @@ -10,7 +10,6 @@ import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration /** - * @author zhang by 27/12/2018 * @since JDK 11 */ @Configuration(proxyBeanMethods = false) diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/LogServerCustomerConfiguration.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/LogServerCustomerConfiguration.kt index 3374abb3..616a8d2c 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/LogServerCustomerConfiguration.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/LogServerCustomerConfiguration.kt @@ -5,7 +5,6 @@ import org.springframework.cloud.context.config.annotation.RefreshScope import org.springframework.stereotype.Component /** - * @author zhang by 30/01/2019 * @since JDK 11 */ @Component diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/RouteLogConfiguration.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/RouteLogConfiguration.kt index d81f66ca..c4c1036c 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/RouteLogConfiguration.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/RouteLogConfiguration.kt @@ -9,7 +9,6 @@ import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration /** - * @author zhang by 10/09/2019 * @since JDK 11 */ @Configuration(proxyBeanMethods = false) diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/RouteLogEnvironmentPostProcessor.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/RouteLogEnvironmentPostProcessor.kt index 4afb6bab..aea159cc 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/RouteLogEnvironmentPostProcessor.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/conf/RouteLogEnvironmentPostProcessor.kt @@ -9,7 +9,6 @@ import org.springframework.core.env.ConfigurableEnvironment import org.springframework.util.MimeTypeUtils /** - * @author zhang by 10/09/2019 * @since JDK 11 */ class RouteLogEnvironmentPostProcessor : EnvironmentPostProcessor { diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/constant/LogConstant.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/constant/LogConstant.kt index 24c03a97..417de088 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/constant/LogConstant.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/constant/LogConstant.kt @@ -1,7 +1,6 @@ package io.gitee.zhangbinhub.admin.log.constant /** - * @author zhang by 22/11/2019 * @since JDK 11 */ object LogConstant { diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/consumer/RouteLogConsumerProcess.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/consumer/RouteLogConsumerProcess.kt index 4603cb48..2305da41 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/consumer/RouteLogConsumerProcess.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/consumer/RouteLogConsumerProcess.kt @@ -15,7 +15,6 @@ import org.springframework.stereotype.Component import java.util.function.Consumer /** - * @author zhang by 18/03/2019 * @since JDK 11 */ @Component diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/controller/LogController.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/controller/LogController.kt index 5c0bd128..0e13148a 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/controller/LogController.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/controller/LogController.kt @@ -38,7 +38,6 @@ import org.springframework.web.bind.annotation.* import java.io.File /** - * @author zhang by 30/01/2019 * @since JDK 11 */ @Validated diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/LoginLog.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/LoginLog.kt index 05757287..888a66b0 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/LoginLog.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/LoginLog.kt @@ -6,7 +6,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.persistence.* /** - * @author zhang by 21/05/2019 * @since JDK 11 */ @Entity diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/LoginLogHistory.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/LoginLogHistory.kt index 8e649638..63c70c62 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/LoginLogHistory.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/LoginLogHistory.kt @@ -6,7 +6,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.persistence.* /** - * @author zhang by 21/05/2019 * @since JDK 11 */ @Entity diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/OperateLog.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/OperateLog.kt index bc2ea374..227fdcfb 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/OperateLog.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/OperateLog.kt @@ -5,7 +5,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.persistence.* /** - * @author zhang by 21/05/2019 * @since JDK 11 */ @Entity diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/OperateLogHistory.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/OperateLogHistory.kt index eb4318c2..74e498a9 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/OperateLogHistory.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/OperateLogHistory.kt @@ -5,7 +5,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.persistence.* /** - * @author zhang by 21/05/2019 * @since JDK 11 */ @Entity diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/RouteLog.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/RouteLog.kt index dee204c4..49f7ab91 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/RouteLog.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/RouteLog.kt @@ -5,7 +5,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.persistence.* /** - * @author zhang by 21/05/2019 * @since JDK 11 */ @Entity diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/RouteLogHistory.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/RouteLogHistory.kt index baf4fdfd..21ac77e2 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/RouteLogHistory.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/entity/RouteLogHistory.kt @@ -5,7 +5,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.persistence.* /** - * @author zhang by 21/05/2019 * @since JDK 11 */ @Entity diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/message/RouteLogMessage.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/message/RouteLogMessage.kt index 18307996..a8a3d91c 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/message/RouteLogMessage.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/message/RouteLogMessage.kt @@ -1,7 +1,6 @@ package io.gitee.zhangbinhub.admin.log.message /** - * @author zhang by 21/05/2019 * @since JDK 11 */ data class RouteLogMessage( diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/po/LogQueryPo.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/po/LogQueryPo.kt index 0a4bc8a8..5841c624 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/po/LogQueryPo.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/po/LogQueryPo.kt @@ -4,7 +4,6 @@ import io.gitee.zhangbinhub.admin.common.base.BaseQueryPo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 21/05/2019 * @since JDK 11 */ @Schema(description = "日志查询参数") diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/LoginLogHistoryRepository.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/LoginLogHistoryRepository.kt index 05ca8f40..af5d37bb 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/LoginLogHistoryRepository.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/LoginLogHistoryRepository.kt @@ -7,7 +7,6 @@ import org.springframework.data.jpa.repository.Query import org.springframework.data.repository.query.Param /** - * @author zhang by 21/05/2019 * @since JDK 11 */ interface LoginLogHistoryRepository : BaseRepository { diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/LoginLogRepository.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/LoginLogRepository.kt index cd780eea..6b13e611 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/LoginLogRepository.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/LoginLogRepository.kt @@ -5,7 +5,6 @@ import io.gitee.zhangbinhub.admin.log.entity.LoginLog import org.springframework.data.jpa.repository.Query /** - * @author zhang by 21/05/2019 * @since JDK 11 */ interface LoginLogRepository : BaseRepository { diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/OperateLogHistoryRepository.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/OperateLogHistoryRepository.kt index c7d3e1bc..cf5c1596 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/OperateLogHistoryRepository.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/OperateLogHistoryRepository.kt @@ -7,7 +7,6 @@ import org.springframework.data.jpa.repository.Query import org.springframework.data.repository.query.Param /** - * @author zhang by 21/05/2019 * @since JDK 11 */ interface OperateLogHistoryRepository : BaseRepository { diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/OperateLogRepository.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/OperateLogRepository.kt index 723e6598..f70add80 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/OperateLogRepository.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/OperateLogRepository.kt @@ -4,7 +4,6 @@ import io.gitee.zhangbinhub.admin.log.base.BaseRepository import io.gitee.zhangbinhub.admin.log.entity.OperateLog /** - * @author zhang by 21/05/2019 * @since JDK 11 */ interface OperateLogRepository : BaseRepository diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/RouteLogHistoryRepository.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/RouteLogHistoryRepository.kt index 6794e20b..cd7fbe62 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/RouteLogHistoryRepository.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/RouteLogHistoryRepository.kt @@ -7,7 +7,6 @@ import org.springframework.data.jpa.repository.Query import org.springframework.data.repository.query.Param /** - * @author zhang by 21/05/2019 * @since JDK 11 */ interface RouteLogHistoryRepository : BaseRepository { diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/RouteLogRepository.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/RouteLogRepository.kt index 7f6a832b..fd8fc2d9 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/RouteLogRepository.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/repo/RouteLogRepository.kt @@ -5,7 +5,6 @@ import io.gitee.zhangbinhub.admin.log.entity.RouteLog import java.util.* /** - * @author zhang by 21/05/2019 * @since JDK 11 */ interface RouteLogRepository : BaseRepository { diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/schedule/LogDailyHistory.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/schedule/LogDailyHistory.kt index 94973979..d7102453 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/schedule/LogDailyHistory.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/schedule/LogDailyHistory.kt @@ -16,7 +16,6 @@ import org.springframework.beans.factory.annotation.Autowired import org.springframework.stereotype.Component /** - * @author zhang by 12/09/2019 * @since JDK 11 */ @Component("LogDailyHistory") diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/schedule/LogFileBackUpTask.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/schedule/LogFileBackUpTask.kt index b75e8ebe..8914cc3b 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/schedule/LogFileBackUpTask.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/schedule/LogFileBackUpTask.kt @@ -14,7 +14,6 @@ import org.springframework.stereotype.Component import java.io.File /** - * @author zhang by 30/01/2019 * @since JDK 11 */ @Component("LogFileBackUpTask") diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogHistoryService.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogHistoryService.kt index 9fdf918c..5ee0b2d8 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogHistoryService.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogHistoryService.kt @@ -17,7 +17,6 @@ import org.springframework.stereotype.Service import org.springframework.transaction.annotation.Transactional /** - * @author zhang by 12/09/2019 * @since JDK 11 */ @Service diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogService.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogService.kt index 1f55f588..e6268b90 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogService.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogService.kt @@ -29,7 +29,6 @@ import org.springframework.stereotype.Service import org.springframework.transaction.annotation.Transactional /** - * @author zhang by 15/05/2019 * @since JDK 11 */ @Service diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/vo/LoginLogVo.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/vo/LoginLogVo.kt index 0f1fc835..795466b7 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/vo/LoginLogVo.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/vo/LoginLogVo.kt @@ -3,7 +3,6 @@ package io.gitee.zhangbinhub.admin.log.vo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 08/03/2019 * @since JDK 11 */ @Schema(description = "登录次数统计") diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/BaseRepository.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/BaseRepository.kt index d77b1b0e..01314161 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/BaseRepository.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/BaseRepository.kt @@ -5,7 +5,6 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor import org.springframework.data.repository.NoRepositoryBean /** - * @author zhang by 15/01/2019 * @since JDK 11 */ @NoRepositoryBean diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/BaseService.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/BaseService.kt index 30cc5d6c..0dc2d08b 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/BaseService.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/BaseService.kt @@ -6,7 +6,6 @@ import org.springframework.data.domain.PageRequest import org.springframework.data.domain.Sort /** - * @author zhang by 15/01/2019 * @since JDK 11 */ abstract class BaseService { diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/OauthBaseService.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/OauthBaseService.kt index c63adc75..a261b7be 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/OauthBaseService.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/OauthBaseService.kt @@ -15,7 +15,6 @@ import org.springframework.beans.BeanUtils import org.springframework.transaction.annotation.Transactional /** - * @author zhang by 26/12/2018 * @since JDK 11 */ @Transactional(readOnly = true) diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/OauthBaseTreeEntity.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/OauthBaseTreeEntity.kt index ea892b8b..11af1ea7 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/OauthBaseTreeEntity.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/base/OauthBaseTreeEntity.kt @@ -7,7 +7,6 @@ import jakarta.persistence.MappedSuperclass import jakarta.persistence.Transient /** - * @author zhang by 20/01/2019 * @since JDK 11 */ @MappedSuperclass diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/conf/CustomerApiConfiguration.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/conf/CustomerApiConfiguration.kt index 02c767d6..2bae8444 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/conf/CustomerApiConfiguration.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/conf/CustomerApiConfiguration.kt @@ -11,7 +11,6 @@ import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration /** - * @author zhang by 27/12/2018 * @since JDK 11 */ @Configuration(proxyBeanMethods = false) diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/constant/BusEventMessage.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/constant/BusEventMessage.kt index 070eab1b..174ee031 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/constant/BusEventMessage.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/constant/BusEventMessage.kt @@ -1,7 +1,6 @@ package io.gitee.zhangbinhub.admin.oauth.constant /** - * @author zhang by 17/02/2020 * @since JDK 11 */ object BusEventMessage { diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/ApplicationPo.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/ApplicationPo.kt index 431709af..9ab695ba 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/ApplicationPo.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/ApplicationPo.kt @@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.validation.constraints.NotBlank /** - * @author zhang by 13/01/2019 * @since JDK 11 */ @Schema(description = "应用配置参数") diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/ApplicationQueryPo.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/ApplicationQueryPo.kt index 8f5f5396..b37d3c43 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/ApplicationQueryPo.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/ApplicationQueryPo.kt @@ -4,7 +4,6 @@ import io.gitee.zhangbinhub.admin.common.base.BaseQueryPo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 13/01/2019 * @since JDK 11 */ @Schema(description = "应用配置查询参数") diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/MenuPo.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/MenuPo.kt index e506aa31..2f6225c8 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/MenuPo.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/MenuPo.kt @@ -6,7 +6,6 @@ import jakarta.validation.constraints.Min import jakarta.validation.constraints.NotBlank /** - * @author zhang by 19/01/2019 * @since JDK 11 */ @Schema(description = "菜单配置参数") diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/ModuleFuncPo.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/ModuleFuncPo.kt index fa9d859c..45132a6b 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/ModuleFuncPo.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/ModuleFuncPo.kt @@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.validation.constraints.NotBlank /** - * @author zhang by 19/01/2019 * @since JDK 11 */ @Schema(description = "模块功能配置参数") diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/OrganizationPo.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/OrganizationPo.kt index f661f3f3..2a43d951 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/OrganizationPo.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/OrganizationPo.kt @@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.validation.constraints.NotBlank /** - * @author zhang by 17/01/2019 * @since JDK 11 */ @Schema(description = "机构配置参数") diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/RuntimePo.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/RuntimePo.kt index ce0b5cad..5fe809d1 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/RuntimePo.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/RuntimePo.kt @@ -5,7 +5,6 @@ import jakarta.validation.constraints.NotBlank import jakarta.validation.constraints.NotNull /** - * @author zhang by 11/01/2019 * @since JDK 11 */ @Schema(description = "运行配置参数") diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/RuntimeQueryPo.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/RuntimeQueryPo.kt index 84cd5425..195e9acf 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/RuntimeQueryPo.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/RuntimeQueryPo.kt @@ -4,7 +4,6 @@ import io.gitee.zhangbinhub.admin.common.base.BaseQueryPo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 11/01/2019 * @since JDK 11 */ @Schema(description = "运行配置查询参数") diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/UserInfoPo.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/UserInfoPo.kt index 54a5e8e9..62fb6afb 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/UserInfoPo.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/po/UserInfoPo.kt @@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.validation.constraints.NotBlank /** - * @author zhang by 08/01/2019 * @since JDK 11 */ @Schema(description = "更新当前用户信息参数") diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/ApplicationService.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/ApplicationService.kt index 2a56a549..92847960 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/ApplicationService.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/ApplicationService.kt @@ -17,7 +17,6 @@ import org.springframework.stereotype.Service import org.springframework.transaction.annotation.Transactional /** - * @author zhang by 13/01/2019 * @since JDK 11 */ @Service diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/MenuService.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/MenuService.kt index e827f30a..a64453b8 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/MenuService.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/MenuService.kt @@ -14,7 +14,6 @@ import org.springframework.stereotype.Service import org.springframework.transaction.annotation.Transactional /** - * @author zhang by 26/12/2018 * @since JDK 11 */ @Service diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/RuntimeConfigService.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/RuntimeConfigService.kt index 5201ed8e..e20d7ae5 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/RuntimeConfigService.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/RuntimeConfigService.kt @@ -22,7 +22,6 @@ import org.springframework.transaction.annotation.Transactional import java.util.concurrent.ConcurrentHashMap /** - * @author zhang by 11/01/2019 * @since JDK 11 */ @Service diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/UserService.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/UserService.kt index 30aa67a2..183474e5 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/UserService.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/service/UserService.kt @@ -25,7 +25,6 @@ import org.springframework.stereotype.Service import org.springframework.transaction.annotation.Transactional /** - * @author zhang by 19/12/2018 * @since JDK 11 */ @Service diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/vo/MenuVo.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/vo/MenuVo.kt index 33c089d4..69d11e5a 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/vo/MenuVo.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/vo/MenuVo.kt @@ -6,7 +6,6 @@ import jakarta.validation.constraints.Min import jakarta.validation.constraints.NotBlank /** - * @author zhang by 19/01/2019 * @since JDK 11 */ @Schema(description = "菜单配置详细信息") diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/vo/ModuleFuncVo.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/vo/ModuleFuncVo.kt index 816b724b..b5c3f028 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/vo/ModuleFuncVo.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/vo/ModuleFuncVo.kt @@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.validation.constraints.NotBlank /** - * @author zhang by 19/01/2019 * @since JDK 11 */ @Schema(description = "模块功能配置详细信息") diff --git a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/vo/OnlineInfoVo.kt b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/vo/OnlineInfoVo.kt index f4f6a292..ecc788df 100644 --- a/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/vo/OnlineInfoVo.kt +++ b/modules/oauth-server/src/main/kotlin/io/gitee/zhangbinhub/admin/oauth/vo/OnlineInfoVo.kt @@ -3,7 +3,6 @@ package io.gitee.zhangbinhub.admin.oauth.vo import io.swagger.v3.oas.annotations.media.Schema /** - * @author zhang by 08/03/2019 * @since JDK 11 */ @Schema(description = "在线用户数统计") diff --git a/modules/oauth-server/src/test/kotlin/io/gitee/zhangbinhub/admin/oauth/nobuild/TestJpa.kt b/modules/oauth-server/src/test/kotlin/io/gitee/zhangbinhub/admin/oauth/nobuild/TestJpa.kt index b7e3ba53..b2f06c43 100644 --- a/modules/oauth-server/src/test/kotlin/io/gitee/zhangbinhub/admin/oauth/nobuild/TestJpa.kt +++ b/modules/oauth-server/src/test/kotlin/io/gitee/zhangbinhub/admin/oauth/nobuild/TestJpa.kt @@ -14,7 +14,6 @@ import org.springframework.beans.factory.annotation.Autowired import org.springframework.test.annotation.Rollback /** - * @author zhang by 03/08/2019 * @since JDK 11 */ internal class TestJpa : BaseTest() { diff --git a/modules/oauth-server/src/test/kotlin/io/gitee/zhangbinhub/admin/oauth/nobuild/TestSerialNumber.kt b/modules/oauth-server/src/test/kotlin/io/gitee/zhangbinhub/admin/oauth/nobuild/TestSerialNumber.kt index 4385277b..bcbe6db8 100644 --- a/modules/oauth-server/src/test/kotlin/io/gitee/zhangbinhub/admin/oauth/nobuild/TestSerialNumber.kt +++ b/modules/oauth-server/src/test/kotlin/io/gitee/zhangbinhub/admin/oauth/nobuild/TestSerialNumber.kt @@ -7,7 +7,6 @@ import org.junit.jupiter.api.Test import org.springframework.beans.factory.annotation.Autowired /** - * @author zhang by 03/08/2019 * @since JDK 11 */ internal class TestSerialNumber : BaseTest() { diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseRepository.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseRepository.kt index 08f6a86f..c7caf9b3 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseRepository.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseRepository.kt @@ -5,7 +5,6 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor import org.springframework.data.repository.NoRepositoryBean /** - * @author zhang by 15/01/2019 * @since JDK 11 */ @NoRepositoryBean diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseService.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseService.kt index 9903bb05..50fd792c 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseService.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseService.kt @@ -6,7 +6,6 @@ import org.springframework.data.domain.PageRequest import org.springframework.data.domain.Sort /** - * @author zhang by 15/01/2019 * @since JDK 11 */ abstract class BaseService { diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/CustomerApiConfiguration.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/CustomerApiConfiguration.kt index ad46836b..bb3cc6c0 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/CustomerApiConfiguration.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/CustomerApiConfiguration.kt @@ -10,7 +10,6 @@ import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration /** - * @author zhang by 27/12/2018 * @since JDK 11 */ @Configuration(proxyBeanMethods = false) diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteConfiguration.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteConfiguration.kt index 3bd90244..9a5b4acd 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteConfiguration.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteConfiguration.kt @@ -9,7 +9,6 @@ import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration /** - * @author zhang by 17/05/2019 * @since JDK 11 */ @Configuration(proxyBeanMethods = false) diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteUpdateEnvironmentPostProcessor.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteUpdateEnvironmentPostProcessor.kt index 4087ca8f..eabebf89 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteUpdateEnvironmentPostProcessor.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteUpdateEnvironmentPostProcessor.kt @@ -8,7 +8,6 @@ import org.springframework.core.env.ConfigurableEnvironment import org.springframework.util.MimeTypeUtils /** - * @author zhang by 17/05/2019 * @since JDK 11 */ class RouteUpdateEnvironmentPostProcessor : EnvironmentPostProcessor { diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/constant/RouteApi.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/constant/RouteApi.kt index 16a0c6b4..7461547f 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/constant/RouteApi.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/constant/RouteApi.kt @@ -1,7 +1,6 @@ package io.gitee.zhangbinhub.admin.route.constant /** - * @author zhang by 10/01/2019 * @since JDK 11 */ object RouteApi { diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/controller/RouteController.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/controller/RouteController.kt index c0b7136b..326d65a9 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/controller/RouteController.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/controller/RouteController.kt @@ -31,7 +31,6 @@ import org.springframework.validation.annotation.Validated import org.springframework.web.bind.annotation.* /** - * @author zhang by 28/02/2019 * @since JDK 11 */ @Validated diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/FilterDefinition.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/FilterDefinition.kt index fb228a76..881206e3 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/FilterDefinition.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/FilterDefinition.kt @@ -4,7 +4,6 @@ import jakarta.validation.ValidationException import org.springframework.util.StringUtils.tokenizeToStringArray /** - * @author zhang by 17/03/2019 * @since JDK 11 */ class FilterDefinition { diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/NameUtils.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/NameUtils.kt index d1536192..bb567a44 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/NameUtils.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/NameUtils.kt @@ -1,7 +1,6 @@ package io.gitee.zhangbinhub.admin.route.definition /** - * @author zhang by 17/03/2019 * @since JDK 11 */ internal object NameUtils { diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/PredicateDefinition.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/PredicateDefinition.kt index 467a26d0..c5f71c7f 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/PredicateDefinition.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/PredicateDefinition.kt @@ -4,7 +4,6 @@ import jakarta.validation.ValidationException import org.springframework.util.StringUtils.tokenizeToStringArray /** - * @author zhang by 17/03/2019 * @since JDK 11 */ class PredicateDefinition { diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteConstant.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteConstant.kt index bc64c200..583301b2 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteConstant.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteConstant.kt @@ -3,7 +3,6 @@ package io.gitee.zhangbinhub.admin.route.definition import io.gitee.zhangbinhub.admin.common.constant.RouteConstant.ROUTES_DEFINITION_KEY /** - * @author zhang by 18/03/2019 * @since JDK 11 */ object RouteConstant { diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteDefinition.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteDefinition.kt index 5f9d4c9c..9fe73308 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteDefinition.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteDefinition.kt @@ -6,7 +6,6 @@ import java.net.URI import java.util.* /** - * @author zhang by 17/03/2019 * @since JDK 11 */ class RouteDefinition { diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/entity/Route.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/entity/Route.kt index cee18b2f..ff871a3a 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/entity/Route.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/entity/Route.kt @@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.persistence.* /** - * @author zhang by 17/03/2019 * @since JDK 11 */ @Entity diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RoutePo.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RoutePo.kt index f05f7fb9..9aa11e1f 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RoutePo.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RoutePo.kt @@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.validation.constraints.NotBlank /** - * @author zhang by 17/03/2019 * @since JDK 11 */ @Schema(description = "网关路由配置参数") diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RouteQueryPo.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RouteQueryPo.kt index d075418a..3688b78d 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RouteQueryPo.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RouteQueryPo.kt @@ -5,7 +5,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.validation.constraints.NotBlank /** - * @author zhang by 17/03/2019 * @since JDK 11 */ @Schema(description = "网关路由配置查询参数") diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/producer/UpdateRouteBridge.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/producer/UpdateRouteBridge.kt index 7be28e31..9a492181 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/producer/UpdateRouteBridge.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/producer/UpdateRouteBridge.kt @@ -5,7 +5,6 @@ import org.springframework.cloud.stream.function.StreamBridge import org.springframework.messaging.support.MessageBuilder /** - * @author zhang by 18/03/2019 * @since JDK 11 */ class UpdateRouteBridge( diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/service/RouteService.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/service/RouteService.kt index 14f8c0c4..4e5996f0 100644 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/service/RouteService.kt +++ b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/service/RouteService.kt @@ -25,7 +25,6 @@ import org.springframework.transaction.annotation.Transactional import java.net.URI /** - * @author zhang by 01/03/2019 * @since JDK 11 */ @Service diff --git a/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/base/BaseRepository.kt b/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/base/BaseRepository.kt index 5d269403..e2138237 100644 --- a/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/base/BaseRepository.kt +++ b/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/base/BaseRepository.kt @@ -5,7 +5,6 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor import org.springframework.data.repository.NoRepositoryBean /** - * @author zhang by 15/01/2019 * @since JDK 11 */ @NoRepositoryBean diff --git a/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/base/BaseService.kt b/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/base/BaseService.kt index 9b658889..3d6149ad 100644 --- a/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/base/BaseService.kt +++ b/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/base/BaseService.kt @@ -6,7 +6,6 @@ import org.springframework.data.domain.PageRequest import org.springframework.data.domain.Sort /** - * @author zhang by 15/01/2019 * @since JDK 11 */ abstract class BaseService { diff --git a/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/conf/CustomerApiConfiguration.kt b/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/conf/CustomerApiConfiguration.kt index a1d4279e..d66c1552 100644 --- a/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/conf/CustomerApiConfiguration.kt +++ b/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/conf/CustomerApiConfiguration.kt @@ -11,7 +11,6 @@ import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration /** - * @author zhang by 27/12/2018 * @since JDK 11 */ @Configuration(proxyBeanMethods = false) diff --git a/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/entity/MyProcessInstance.kt b/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/entity/MyProcessInstance.kt index 88a73bed..37a5e004 100644 --- a/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/entity/MyProcessInstance.kt +++ b/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/entity/MyProcessInstance.kt @@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.media.Schema import jakarta.persistence.* /** - * @author zhang by 14/06/2019 * @since JDK 11 */ @Entity -- Gitee From b873cd656460fb2ee2faf30ba6d6e602ac99be81 Mon Sep 17 00:00:00 2001 From: zhangbinhub Date: Sun, 17 Aug 2025 22:30:28 +0800 Subject: [PATCH 2/7] Acp 2025.7.2 --- README.md | 6 +++--- doc/version_history.md | 7 +++++++ gradle/libs.versions.toml | 4 ++-- gradle/moduleVersion.gradle | 20 +++++++++---------- .../init-sql/mysql/warm-flow-all.sql | 3 ++- 5 files changed, 24 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index b6656486..0d29d9c7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # acp-admin-cloud -###### v7.0.0 [版本更新日志](doc/version_history.md) +###### v7.0.1 [版本更新日志](doc/version_history.md) - 使用Application Construction Platform 应用构建平台作为脚手架 - 基于 Spring Cloud 的微服务版本,基于 Spring Boot @@ -10,8 +10,8 @@ ## 相关组件版本 - [Spring Boot 3.5.4](https://projects.spring.io/spring-boot) -- [Spring Boot Admin 3.5.1](https://github.com/codecentric/spring-boot-admin) -- [Acp 2025.7.1](https://gitee.com/zhangbinhub/acp) +- [Spring Boot Admin 3.5.2](https://github.com/codecentric/spring-boot-admin) +- [Acp 2025.7.2](https://gitee.com/zhangbinhub/acp) - [sensitive](https://github.com/houbb/sensitive) ## 技术栈 diff --git a/doc/version_history.md b/doc/version_history.md index 9fb72c59..4bd46392 100644 --- a/doc/version_history.md +++ b/doc/version_history.md @@ -1,5 +1,12 @@ ## 版本更新记录 +##### v7.0.1 + +- Global + - [Upgrade] 升级依赖 + - Acp 2025.7.2 + - Spring Boot Admin 3.5.2 + ##### v7.0.0 - Global diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b03f12dc..7bf48b8a 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,9 +3,9 @@ kotlin = "2.1.21" jreleaser = "1.19.0" ######################## dependencies ##################### -acp = "2025.7.1" +acp = "2025.7.2" springBoot = "3.5.4" -springBootAdmin = "3.5.1" +springBootAdmin = "3.5.2" sensitive = "1.7.0" sensitiveDeepCopy = "0.0.1" mysql = "9.3.0" diff --git a/gradle/moduleVersion.gradle b/gradle/moduleVersion.gradle index 9557a128..881f867c 100644 --- a/gradle/moduleVersion.gradle +++ b/gradle/moduleVersion.gradle @@ -1,30 +1,30 @@ project(':acp-admin-cloud-constant') { - version '7.0.0' + version '7.0.1' } project(':acp-admin-cloud-dependencies') { - version '7.0.0' + version '7.0.1' } project(':acp-admin-cloud-dependencies-resource-server') { - version '7.0.0' + version '7.0.1' } project(':admin-server') { - version '7.0.0' + version '7.0.1' } project(':deploy-server') { - version '7.0.0' + version '7.0.1' } project(':gateway-server') { - version '7.0.0' + version '7.0.1' } project(':log-server') { - version '7.0.0' + version '7.0.1' } project(':oauth-server') { - version '7.0.0' + version '7.0.1' } project(':route-server') { - version '7.0.0' + version '7.0.1' } project(':workflow-server') { - version '7.0.0' + version '7.0.1' } \ No newline at end of file diff --git a/modules/workflow-server/src/main/resources/init-sql/mysql/warm-flow-all.sql b/modules/workflow-server/src/main/resources/init-sql/mysql/warm-flow-all.sql index 05bb9412..7f67eb26 100644 --- a/modules/workflow-server/src/main/resources/init-sql/mysql/warm-flow-all.sql +++ b/modules/workflow-server/src/main/resources/init-sql/mysql/warm-flow-all.sql @@ -3,6 +3,7 @@ CREATE TABLE IF NOT EXISTS `flow_definition` `id` bigint NOT NULL COMMENT '主键id', `flow_code` varchar(40) NOT NULL COMMENT '流程编码', `flow_name` varchar(100) NOT NULL COMMENT '流程名称', + `model_value` varchar(40) NOT NULL DEFAULT 'CLASSICS' COMMENT '设计器模型(CLASSICS经典模型 MIMIC仿钉钉模型)', `category` varchar(100) DEFAULT NULL COMMENT '流程类别', `version` varchar(20) NOT NULL COMMENT '流程版本', `is_publish` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否发布(0未发布 1已发布 9失效)', @@ -116,7 +117,7 @@ CREATE TABLE IF NOT EXISTS `flow_his_task` `target_node_name` varchar(200) DEFAULT NULL COMMENT '结束节点名称', `approver` varchar(40) DEFAULT NULL COMMENT '审批者', `cooperate_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '协作方式(1审批 2转办 3委派 4会签 5票签 6加签 7减签)', - `collaborator` varchar(40) DEFAULT NULL COMMENT '协作人', + `collaborator` varchar(500) DEFAULT NULL COMMENT '协作人', `skip_type` varchar(10) NOT NULL COMMENT '流转类型(PASS通过 REJECT退回 NONE无动作)', `flow_status` varchar(20) NOT NULL COMMENT '流程状态(0待提交 1审批中 2审批通过 4终止 5作废 6撤销 8已完成 9已退回 10失效 11拿回)', `form_custom` char(1) DEFAULT 'N' COMMENT '审批表单是否自定义(Y是 N否)', -- Gitee From f4711a3c87f49e0651e016c1bc81125d7dffe743 Mon Sep 17 00:00:00 2001 From: zhangbinhub Date: Tue, 19 Aug 2025 13:46:30 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../log/consumer/RouteLogConsumerProcess.kt | 8 +++--- .../admin/log/service/LogService.kt | 26 +++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/consumer/RouteLogConsumerProcess.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/consumer/RouteLogConsumerProcess.kt index 2305da41..eee7b2b7 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/consumer/RouteLogConsumerProcess.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/consumer/RouteLogConsumerProcess.kt @@ -5,8 +5,8 @@ import io.gitee.zhangbinhub.acp.boot.log.LogAdapter import io.gitee.zhangbinhub.acp.core.common.task.BaseAsyncTask import io.gitee.zhangbinhub.acp.core.common.task.threadpool.ThreadPoolService import io.gitee.zhangbinhub.admin.log.conf.LogServerCustomerConfiguration -import io.gitee.zhangbinhub.admin.log.service.LogService import io.gitee.zhangbinhub.admin.log.message.RouteLogMessage +import io.gitee.zhangbinhub.admin.log.service.LogService import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import kotlinx.coroutines.runBlocking @@ -35,20 +35,20 @@ class RouteLogConsumerProcess( runBlocking { if (logServerCustomerConfiguration.routeLogEnabled) { launch(Dispatchers.IO) { - logService.doRouteLog(it, message) + logService.doRouteLog(message) } } it.token?.apply { if (it.responseStatus != null) { if (logServerCustomerConfiguration.operateLogEnabled) { launch(Dispatchers.IO) { - logService.doOperateLog(it, message) + logService.doOperateLog(message) } } if (it.responseStatus == HttpStatus.OK.value()) { if (it.applyToken) { launch(Dispatchers.IO) { - logService.doLoginLog(it, message) + logService.doLoginLog(message) } } } diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogService.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogService.kt index e6268b90..97a881b4 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogService.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogService.kt @@ -13,7 +13,6 @@ import io.gitee.zhangbinhub.admin.log.constant.LogConstant import io.gitee.zhangbinhub.admin.log.entity.LoginLog import io.gitee.zhangbinhub.admin.log.entity.OperateLog import io.gitee.zhangbinhub.admin.log.entity.RouteLog -import io.gitee.zhangbinhub.admin.log.message.RouteLogMessage import io.gitee.zhangbinhub.admin.log.po.LogQueryPo import io.gitee.zhangbinhub.admin.log.repo.* import io.gitee.zhangbinhub.admin.log.vo.LoginLogVo @@ -50,25 +49,26 @@ constructor( /** * 路由消息转为对应的实体对象 */ + @Throws(WebException::class) private fun messageToEntity(message: String, cls: Class): T { return objectMapper.readValue(message, cls) ?: throw WebException("日志消息转换失败") } - private fun getTokenInfo(token: String): TokenUserInfoVo = tokenUserTools.getUserInfoFromToken() + private fun getTokenInfo(token: String): TokenUserInfoVo = tokenUserTools.getUserInfoFromToken(token) private fun getAppInfo(token: String): ApplicationVo = commonOauthServer.appInfo(token) @Transactional - fun doRouteLog(routeLogMessage: RouteLogMessage, message: String) { + fun doRouteLog(message: String) { val routeLog = messageToEntity(message, RouteLog::class.java) - if (routeLogMessage.token != null) { + if (routeLog.token != null) { try { - getAppInfo(routeLogMessage.token!!).let { app -> + getAppInfo(routeLog.token!!).let { app -> routeLog.clientId = app.id routeLog.clientName = app.appName routeLog.identify = app.identify if (!CommonTools.isNullStr(app.id)) { - getTokenInfo(routeLogMessage.token!!).let { + getTokenInfo(routeLog.token!!).let { routeLog.userId = it.id.toString() routeLog.loginNo = it.loginNo.toString() routeLog.userName = it.name.toString() @@ -79,7 +79,7 @@ constructor( logAdapter.error(e.message, e) } } - if (routeLogMessage.responseStatus != null) {// 响应日志 + if (routeLog.responseStatus != null) {// 响应日志 var optionalRouteLog = routeLogRepository.findByLogIdAndRequestTime(routeLog.logId, routeLog.requestTime) var count = 1 while (optionalRouteLog.isEmpty) { @@ -110,15 +110,15 @@ constructor( } @Transactional - fun doOperateLog(routeLogMessage: RouteLogMessage, message: String) { + fun doOperateLog(message: String) { try { val operateLog = messageToEntity(message, OperateLog::class.java) - getAppInfo(routeLogMessage.token!!).let { app -> + getAppInfo(operateLog.token!!).let { app -> operateLog.clientId = app.id operateLog.clientName = app.appName operateLog.identify = app.identify if (!CommonTools.isNullStr(app.id)) { - getTokenInfo(routeLogMessage.token!!).let { + getTokenInfo(operateLog.token!!).let { operateLog.userId = it.id.toString() operateLog.loginNo = it.loginNo.toString() operateLog.userName = it.name.toString() @@ -133,15 +133,15 @@ constructor( } @Transactional - suspend fun doLoginLog(routeLogMessage: RouteLogMessage, message: String) { + suspend fun doLoginLog(message: String) { try { val loginLog = messageToEntity(message, LoginLog::class.java) - getAppInfo(routeLogMessage.token!!).let { app -> + getAppInfo(loginLog.token!!).let { app -> if (!CommonTools.isNullStr(app.id)) { loginLog.clientId = app.id loginLog.clientName = app.appName loginLog.identify = app.identify - getTokenInfo(routeLogMessage.token!!).let { + getTokenInfo(loginLog.token!!).let { loginLog.userId = it.id.toString() loginLog.loginNo = it.loginNo.toString() loginLog.userName = it.name.toString() -- Gitee From 9232f3aa3e3f412406789f149fab0ddccfd05e32 Mon Sep 17 00:00:00 2001 From: zhangbinhub Date: Tue, 19 Aug 2025 18:33:13 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/gitee/zhangbinhub/admin/log/service/LogService.kt | 2 +- .../admin/workflow/service/WorkFlowDefinitionService.kt | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogService.kt b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogService.kt index 97a881b4..58c91a46 100644 --- a/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogService.kt +++ b/modules/log-server/src/main/kotlin/io/gitee/zhangbinhub/admin/log/service/LogService.kt @@ -167,7 +167,7 @@ constructor( } } - fun doPageQuery( + private fun doPageQuery( baseRepository: BaseRepository, logQueryPo: LogQueryPo ): CustomerQueryPageVo = diff --git a/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/service/WorkFlowDefinitionService.kt b/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/service/WorkFlowDefinitionService.kt index 3d7cc957..050e002c 100644 --- a/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/service/WorkFlowDefinitionService.kt +++ b/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/service/WorkFlowDefinitionService.kt @@ -25,13 +25,6 @@ class WorkFlowDefinitionService( private val defService: DefService, private val fileDownLoadHandle: FileDownLoadHandle ) : BaseWorkFlowService() { - @Throws(WebException::class) - private fun parseProcessDefinition(content: String): DefJson = try { - FlowEngine.jsonConvert.strToBean(content, DefJson::class.java) - } catch (e: Exception) { - throw WebException(e.message) - } - private fun definitionToVo(definition: Definition): ProcessDefinitionVo = ProcessDefinitionVo().apply { this.id = definition.id.toString() this.flowCode = definition.flowCode -- Gitee From 9d74d4d5f83453133a22a9a2cbe546bee405a559 Mon Sep 17 00:00:00 2001 From: zhangbinhub Date: Tue, 19 Aug 2025 22:44:57 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflow/test/nobuild/TestWorkflow.kt | 132 ------------------ 1 file changed, 132 deletions(-) delete mode 100644 modules/workflow-server/src/test/kotlin/io/gitee/zhangbinhub/admin/workflow/test/nobuild/TestWorkflow.kt diff --git a/modules/workflow-server/src/test/kotlin/io/gitee/zhangbinhub/admin/workflow/test/nobuild/TestWorkflow.kt b/modules/workflow-server/src/test/kotlin/io/gitee/zhangbinhub/admin/workflow/test/nobuild/TestWorkflow.kt deleted file mode 100644 index cdc8c0e9..00000000 --- a/modules/workflow-server/src/test/kotlin/io/gitee/zhangbinhub/admin/workflow/test/nobuild/TestWorkflow.kt +++ /dev/null @@ -1,132 +0,0 @@ -package io.gitee.zhangbinhub.admin.workflow.test.nobuild - -import io.gitee.zhangbinhub.admin.common.constant.WorkFlowConstant -import io.gitee.zhangbinhub.admin.resource.server.po.ProcessStartPo -import io.gitee.zhangbinhub.admin.resource.server.po.ProcessTerminationPo -import io.gitee.zhangbinhub.admin.workflow.po.WorkFlowDefinitionPo -import io.gitee.zhangbinhub.admin.workflow.test.BaseTest -import org.junit.jupiter.api.Test - -private const val s = "2e49eb85-a3d2-11ee-8162-2216b93ea7e2" - -class TestWorkflow : BaseTest() { - @Test - fun createDefinition() { - val xmlStr = """ - - - - - Flow_0k4vls0 - - - Flow_0k4vls0 - Flow_048xmdv - - - - Flow_048xmdv - Flow_1c9bjqd - - - - Flow_1c9bjqd - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - """.trimIndent() - workFlowDefinitionService!!.doCreate( - WorkFlowDefinitionPo( - content = xmlStr, remarks = "测试流程" - ) - ).apply { - println(this) - } - } - - @Test - fun deploy() { - workFlowDefinitionService!!.doDeploy("5a90498f-c5cd-4685-a11b-003cffb3dcf2") - } - - @Test - fun start() { - val userId = "2034848b-2bbd-47b6-a6fc-ff390afcb140" - println( - "process id: ${ - workFlowService!!.startFlow( - ProcessStartPo( - processDefinitionKey = "test_process2", - businessKey = "businessKey", - title = "测试标题", - description = "这是一个测试流程", - params = mutableMapOf(Pair(WorkFlowConstant.assigneeUser, userId)) - ), userId - ) - }" - ) - } - - @Test - fun queryTaskList() { - val userId = "2034848b-2bbd-47b6-a6fc-ff390afcb140" - val processId = "2e49eb85-a3d2-11ee-8162-2216b93ea7e2" - workFlowService!!.findTaskList(processId, userId).forEach { - println(it) - } - } - - @Test - fun getDefinition() { - val processId = "2e49eb85-a3d2-11ee-8162-2216b93ea7e2" - print(workFlowService!!.findProcessDefinition(processId)) - } - - @Test - fun delete() { - val processId = "afbfb2a2-a3c3-11ee-a439-2216b93ea7e2" - workFlowService!!.deleteProcessInstance( - ProcessTerminationPo( - processInstanceId = processId, - reason = "test delete" - ) - ) - } - - @Test - fun queryHighlight() { - val processId = "2e49eb85-a3d2-11ee-8162-2216b93ea7e2" - println(objectMapper!!.writeValueAsString(workFlowService!!.findHighlightElement(processId))) - } -} \ No newline at end of file -- Gitee From fa2692cd5912dda9ba45125d69772e704f7e808f Mon Sep 17 00:00:00 2001 From: zhangbinhub Date: Wed, 20 Aug 2025 11:40:30 +0800 Subject: [PATCH 6/7] =?UTF-8?q?[Delete]=20=E7=A7=BB=E9=99=A4`route-server`?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/k8s-demo/9.service.yaml | 60 ------- doc/version_history.md | 1 + gradle/moduleVersion.gradle | 3 - modules/gateway-server/README.md | 4 +- modules/log-server/README.md | 2 +- modules/route-server/Dockerfile | 8 - modules/route-server/README.md | 14 -- modules/route-server/build.gradle | 9 -- .../admin/route/RouteServerApplication.kt | 14 -- .../admin/route/base/BaseRepository.kt | 11 -- .../admin/route/base/BaseService.kt | 29 ---- .../route/conf/CustomerApiConfiguration.kt | 34 ---- .../admin/route/conf/RouteConfiguration.kt | 20 --- .../RouteUpdateEnvironmentPostProcessor.kt | 38 ----- .../admin/route/constant/RouteApi.kt | 10 -- .../admin/route/controller/RouteController.kt | 105 ------------- .../route/definition/FilterDefinition.kt | 40 ----- .../admin/route/definition/NameUtils.kt | 14 -- .../route/definition/PredicateDefinition.kt | 40 ----- .../admin/route/definition/RouteConstant.kt | 11 -- .../admin/route/definition/RouteDefinition.kt | 47 ------ .../zhangbinhub/admin/route/entity/Route.kt | 50 ------ .../admin/route/init/DataInitialization.kt | 35 ----- .../zhangbinhub/admin/route/po/RoutePo.kt | 40 ----- .../admin/route/po/RouteQueryPo.kt | 17 -- .../admin/route/producer/UpdateRouteBridge.kt | 20 --- .../admin/route/repo/RouteRepository.kt | 23 --- .../admin/route/service/InitDataService.kt | 67 -------- .../admin/route/service/RouteService.kt | 146 ------------------ .../main/resources/META-INF/spring.factories | 2 - .../src/main/resources/application.yaml | 50 ------ .../resources/chars-scan-config.properties | 6 - .../src/main/resources/logback-spring.xml | 8 - settings.gradle | 2 - 34 files changed, 3 insertions(+), 977 deletions(-) delete mode 100644 modules/route-server/Dockerfile delete mode 100644 modules/route-server/README.md delete mode 100644 modules/route-server/build.gradle delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/RouteServerApplication.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseRepository.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseService.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/CustomerApiConfiguration.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteConfiguration.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteUpdateEnvironmentPostProcessor.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/constant/RouteApi.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/controller/RouteController.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/FilterDefinition.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/NameUtils.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/PredicateDefinition.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteConstant.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteDefinition.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/entity/Route.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/init/DataInitialization.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RoutePo.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RouteQueryPo.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/producer/UpdateRouteBridge.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/repo/RouteRepository.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/service/InitDataService.kt delete mode 100644 modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/service/RouteService.kt delete mode 100644 modules/route-server/src/main/resources/META-INF/spring.factories delete mode 100644 modules/route-server/src/main/resources/application.yaml delete mode 100644 modules/route-server/src/main/resources/chars-scan-config.properties delete mode 100644 modules/route-server/src/main/resources/logback-spring.xml diff --git a/deploy/k8s-demo/9.service.yaml b/deploy/k8s-demo/9.service.yaml index 89848a85..77a87b37 100644 --- a/deploy/k8s-demo/9.service.yaml +++ b/deploy/k8s-demo/9.service.yaml @@ -380,66 +380,6 @@ spec: --- apiVersion: apps/v1 kind: Deployment -metadata: - annotations: - deployment.kubernetes.io/revision: "1" - generation: 1 - labels: - k8s-app: route-server - qcloud-app: route-server - managedFields: - - manager: tke-platform-api - operation: Update - - manager: kube-controller-manager - operation: Update - name: route-server - namespace: acp -spec: - progressDeadlineSeconds: 600 - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - k8s-app: route-server - qcloud-app: route-server - strategy: - rollingUpdate: - maxSurge: 25% - maxUnavailable: 25% - type: RollingUpdate - template: - metadata: - labels: - k8s-app: route-server - qcloud-app: route-server - spec: - containers: - - envFrom: - - configMapRef: - name: acp-conf - env: - - name: acp_jvm_param - value: "-Xms256m -Xmx512m" - image: route-server-2.2.0 - imagePullPolicy: IfNotPresent - name: route-server - resources: - limits: - cpu: "1000m" - memory: 1Gi - requests: - cpu: 500m - memory: 256Mi - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - dnsPolicy: ClusterFirst - imagePullSecrets: - - name: qcloudregistrykey - restartPolicy: Always - terminationGracePeriodSeconds: 30 ---- -apiVersion: apps/v1 -kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: "1" diff --git a/doc/version_history.md b/doc/version_history.md index 4bd46392..77f30ee2 100644 --- a/doc/version_history.md +++ b/doc/version_history.md @@ -6,6 +6,7 @@ - [Upgrade] 升级依赖 - Acp 2025.7.2 - Spring Boot Admin 3.5.2 + - [Delete] 移除`route-server`服务 ##### v7.0.0 diff --git a/gradle/moduleVersion.gradle b/gradle/moduleVersion.gradle index 881f867c..d5b52527 100644 --- a/gradle/moduleVersion.gradle +++ b/gradle/moduleVersion.gradle @@ -22,9 +22,6 @@ project(':log-server') { project(':oauth-server') { version '7.0.1' } -project(':route-server') { - version '7.0.1' -} project(':workflow-server') { version '7.0.1' } \ No newline at end of file diff --git a/modules/gateway-server/README.md b/modules/gateway-server/README.md index fa1b63ca..c08bae2c 100644 --- a/modules/gateway-server/README.md +++ b/modules/gateway-server/README.md @@ -15,6 +15,4 @@ user.name: ${spring.security.user.name} user.password: ${spring.security.user.password} ``` -- 2、固定路由配置定义于[application.yaml](src/main/resources/application.yaml)中 -- 3、动态路由配置由[路由服务](../route-server/README.md)进行管理 -- 4、接收路由服务发送的“更新路由”消息,从redis中获取路由信息并进行动态更新 \ No newline at end of file +- 2、固定路由配置定义于[application.yaml](src/main/resources/application.yaml)中 \ No newline at end of file diff --git a/modules/log-server/README.md b/modules/log-server/README.md index 8e0e53d0..2850c0f7 100644 --- a/modules/log-server/README.md +++ b/modules/log-server/README.md @@ -1,4 +1,4 @@ -### route-server +### log-server 日志服务 diff --git a/modules/route-server/Dockerfile b/modules/route-server/Dockerfile deleted file mode 100644 index b30240e9..00000000 --- a/modules/route-server/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM eclipse-temurin:17-jdk-alpine -ARG appJar -ARG workspace=/workspace -COPY build/libs/$appJar $workspace/app.jar -COPY build/resources/main $workspace/ -RUN chmod 777 -R $workspace -WORKDIR $workspace -ENTRYPOINT ["sh", "-c", "java ${JAVA_TOOL_OPTIONS} -jar app.jar"] \ No newline at end of file diff --git a/modules/route-server/README.md b/modules/route-server/README.md deleted file mode 100644 index 944eb24b..00000000 --- a/modules/route-server/README.md +++ /dev/null @@ -1,14 +0,0 @@ -### route-server - -路由服务 - -##### 一、说明 - -- 1、提供路由信息配置功能 -- 2、提供路由动态更新接口,收到请求后,将路由信息序列化至redis,同时发送更新消息给网关 -- 3、接口详情请在浏览器中访问 /doc.html 页面 - -##### 二、数据初始化 - -首次启动时,如果必要的路由数据不存在,则会自动进行初始化 -[```io.gitee.zhangbinhub.admin.route.init.DataInitialization```](src/main/kotlin/io/gitee/zhangbinhub/admin/route/init/DataInitialization.kt) diff --git a/modules/route-server/build.gradle b/modules/route-server/build.gradle deleted file mode 100644 index 1dcee965..00000000 --- a/modules/route-server/build.gradle +++ /dev/null @@ -1,9 +0,0 @@ -apply from: "$rootDir/gradle/application.gradle" -dependencies { - implementation project(":acp-admin-cloud-dependencies-resource-server") - // 数据库及驱动 - implementation "org.springframework.boot:spring-boot-starter-data-jpa" - implementation "com.mysql:mysql-connector-j:${libs.versions.mysql.get()}" - - testImplementation "org.springframework.boot:spring-boot-starter-test" -} \ No newline at end of file diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/RouteServerApplication.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/RouteServerApplication.kt deleted file mode 100644 index 84189752..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/RouteServerApplication.kt +++ /dev/null @@ -1,14 +0,0 @@ -package io.gitee.zhangbinhub.admin.route - -import io.gitee.zhangbinhub.acp.cloud.annotation.AcpCloudAtomApplication -import org.springframework.boot.runApplication - -/** - * @since JDK 11 - */ -@AcpCloudAtomApplication -class RouteServerApplication - -fun main(args: Array) { - runApplication(*args) -} diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseRepository.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseRepository.kt deleted file mode 100644 index c7caf9b3..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseRepository.kt +++ /dev/null @@ -1,11 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.base - -import org.springframework.data.jpa.repository.JpaRepository -import org.springframework.data.jpa.repository.JpaSpecificationExecutor -import org.springframework.data.repository.NoRepositoryBean - -/** - * @since JDK 11 - */ -@NoRepositoryBean -interface BaseRepository : JpaSpecificationExecutor, JpaRepository diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseService.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseService.kt deleted file mode 100644 index 50fd792c..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/base/BaseService.kt +++ /dev/null @@ -1,29 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.base - -import io.gitee.zhangbinhub.acp.core.common.CommonTools -import io.gitee.zhangbinhub.admin.common.po.QueryParam -import org.springframework.data.domain.PageRequest -import org.springframework.data.domain.Sort - -/** - * @since JDK 11 - */ -abstract class BaseService { - - protected fun buildPageRequest(queryParam: QueryParam): PageRequest = - if (CommonTools.isNullStr(queryParam.orderName) || CommonTools.isNullStr(queryParam.orderCommand)) { - PageRequest.of(queryParam.currPage!! - 1, queryParam.pageSize!!) - } else { - var direction: Sort.Direction = Sort.Direction.ASC - if (queryParam.orderCommand!!.startsWith("desc", ignoreCase = true)) { - direction = Sort.Direction.DESC - } - PageRequest.of( - queryParam.currPage!! - 1, - queryParam.pageSize!!, - direction, - *queryParam.orderName!!.split(",".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray() - ) - } - -} diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/CustomerApiConfiguration.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/CustomerApiConfiguration.kt deleted file mode 100644 index bb3cc6c0..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/CustomerApiConfiguration.kt +++ /dev/null @@ -1,34 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.conf - -import io.gitee.zhangbinhub.acp.boot.base.BaseApiConfiguration -import io.gitee.zhangbinhub.admin.route.constant.RouteApi -import io.swagger.v3.oas.models.OpenAPI -import org.springdoc.core.models.GroupedOpenApi -import org.springframework.beans.factory.annotation.Autowired -import org.springframework.beans.factory.annotation.Value -import org.springframework.context.annotation.Bean -import org.springframework.context.annotation.Configuration - -/** - * @since JDK 11 - */ -@Configuration(proxyBeanMethods = false) -class CustomerApiConfiguration @Autowired -constructor( - @Value("\${info.version}") - version: String?, -) : BaseApiConfiguration(version) { - @Bean - fun createRestApi(): OpenAPI = buildApiInfo( - "Route Server API", - "Route Server API", - "ZhangBin", - "https://gitee.com/zhangbinhub", - "zhangbin1010@qq.com" - ) - - @Bean - fun gatewayApi(): GroupedOpenApi = GroupedOpenApi.builder() - .group("1.网关接口").pathsToMatch("${RouteApi.basePath}/**") - .build() -} diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteConfiguration.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteConfiguration.kt deleted file mode 100644 index 9a5b4acd..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteConfiguration.kt +++ /dev/null @@ -1,20 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.conf - -import io.gitee.zhangbinhub.admin.common.constant.RouteConstant -import io.gitee.zhangbinhub.admin.route.producer.UpdateRouteBridge -import org.springframework.boot.autoconfigure.AutoConfigureBefore -import org.springframework.cloud.stream.config.BindingServiceConfiguration -import org.springframework.cloud.stream.function.StreamBridge -import org.springframework.context.annotation.Bean -import org.springframework.context.annotation.Configuration - -/** - * @since JDK 11 - */ -@Configuration(proxyBeanMethods = false) -@AutoConfigureBefore(BindingServiceConfiguration::class) -class RouteConfiguration { - @Bean - fun updateRouteBridge(streamBridge: StreamBridge) = - UpdateRouteBridge(streamBridge, RouteConstant.UPDATE_ROUTE_OUTPUT) -} diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteUpdateEnvironmentPostProcessor.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteUpdateEnvironmentPostProcessor.kt deleted file mode 100644 index eabebf89..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/conf/RouteUpdateEnvironmentPostProcessor.kt +++ /dev/null @@ -1,38 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.conf - -import io.gitee.zhangbinhub.acp.boot.tools.EnvironmentTools -import io.gitee.zhangbinhub.admin.common.constant.RouteConstant -import org.springframework.boot.SpringApplication -import org.springframework.boot.env.EnvironmentPostProcessor -import org.springframework.core.env.ConfigurableEnvironment -import org.springframework.util.MimeTypeUtils - -/** - * @since JDK 11 - */ -class RouteUpdateEnvironmentPostProcessor : EnvironmentPostProcessor { - private val defaultPropertiesName = "acpCloudRouteDefaultProperties" - - override fun postProcessEnvironment(environment: ConfigurableEnvironment?, application: SpringApplication?) { - val default: MutableMap = HashMap() - "spring.cloud.stream.bindings.${RouteConstant.UPDATE_ROUTE_OUTPUT}".let { prefix -> - environment!!.getProperty("$prefix.destination", RouteConstant.UPDATE_ROUTE_DESCRIPTION) - .let { destination -> - if (destination == RouteConstant.UPDATE_ROUTE_OUTPUT) { - RouteConstant.UPDATE_ROUTE_DESCRIPTION - } else { - destination - } - }.let { destination -> - default["$prefix.destination"] = destination - default["$prefix.contentType"] = MimeTypeUtils.APPLICATION_JSON_VALUE - EnvironmentTools.addOrReplaceProperty( - environment.propertySources, - default, - defaultPropertiesName, - false - ) - } - } - } -} diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/constant/RouteApi.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/constant/RouteApi.kt deleted file mode 100644 index 7461547f..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/constant/RouteApi.kt +++ /dev/null @@ -1,10 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.constant - -/** - * @since JDK 11 - */ -object RouteApi { - const val basePath = "/route" - const val gateWayRouteConfig = "/gateway-route" - const val gateWayRouteRefresh = "$gateWayRouteConfig/refresh" -} \ No newline at end of file diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/controller/RouteController.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/controller/RouteController.kt deleted file mode 100644 index 326d65a9..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/controller/RouteController.kt +++ /dev/null @@ -1,105 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.controller - -import cn.dev33.satoken.annotation.SaCheckRole -import io.gitee.zhangbinhub.acp.boot.exceptions.WebException -import io.gitee.zhangbinhub.acp.boot.log.LogAdapter -import io.gitee.zhangbinhub.acp.cloud.annotation.AcpCloudDuplicateSubmission -import io.gitee.zhangbinhub.acp.core.common.CommonTools -import io.gitee.zhangbinhub.admin.common.constant.RoleCode -import io.gitee.zhangbinhub.admin.common.vo.CustomerQueryPageVo -import io.gitee.zhangbinhub.admin.common.vo.InfoVo -import io.gitee.zhangbinhub.admin.resource.server.base.BaseResourceServerController -import io.gitee.zhangbinhub.admin.route.constant.RouteApi -import io.gitee.zhangbinhub.admin.route.entity.Route -import io.gitee.zhangbinhub.admin.route.po.RoutePo -import io.gitee.zhangbinhub.admin.route.po.RouteQueryPo -import io.gitee.zhangbinhub.admin.route.producer.UpdateRouteBridge -import io.gitee.zhangbinhub.admin.route.service.RouteService -import io.swagger.v3.oas.annotations.Operation -import io.swagger.v3.oas.annotations.Parameter -import io.swagger.v3.oas.annotations.responses.ApiResponse -import io.swagger.v3.oas.annotations.responses.ApiResponses -import io.swagger.v3.oas.annotations.tags.Tag -import jakarta.validation.Valid -import jakarta.validation.constraints.NotEmpty -import jakarta.validation.constraints.NotNull -import org.springframework.beans.factory.annotation.Autowired -import org.springframework.http.HttpStatus -import org.springframework.http.MediaType -import org.springframework.http.ResponseEntity -import org.springframework.validation.annotation.Validated -import org.springframework.web.bind.annotation.* - -/** - * @since JDK 11 - */ -@Validated -@RestController -@RequestMapping(RouteApi.basePath) -@Tag(name = "网关路由信息") -class RouteController @Autowired -constructor( - logAdapter: LogAdapter, - private val routeService: RouteService, - private val updateRouteBridge: UpdateRouteBridge -) : BaseResourceServerController(logAdapter) { - - @Operation(summary = "新建路由信息", description = "路由ID、路由URI、断言、过滤器、序号") - @ApiResponses(ApiResponse(responseCode = "201", description = "创建成功")) - @SaCheckRole(RoleCode.SUPER) - @PutMapping(value = [RouteApi.gateWayRouteConfig], produces = [MediaType.APPLICATION_JSON_VALUE]) - @AcpCloudDuplicateSubmission - fun add(@RequestBody @Valid routePo: RoutePo): ResponseEntity = - routeService.doCreate(routePo).let { - ResponseEntity.status(HttpStatus.CREATED).body(it) - } - - @Operation(summary = "删除路由配置信息") - @ApiResponses(ApiResponse(responseCode = "400", description = "参数校验不通过;")) - @SaCheckRole(RoleCode.SUPER) - @DeleteMapping(value = [RouteApi.gateWayRouteConfig], produces = [MediaType.APPLICATION_JSON_VALUE]) - fun delete( - @Parameter(description = "id列表", required = true) - @NotEmpty(message = "id不能为空") - @NotNull(message = "id不能为空") - @RequestBody - idList: List - ): ResponseEntity { - routeService.doDelete(idList) - return ResponseEntity.ok(InfoVo(message = "删除成功")) - } - - @Operation(summary = "更新路由信息", description = "可更新路由ID、路由URI、断言、过滤器、序号") - @ApiResponses(ApiResponse(responseCode = "400", description = "参数校验不通过;路由信息ID不能为空;找不到信息;")) - @SaCheckRole(RoleCode.SUPER) - @PatchMapping(value = [RouteApi.gateWayRouteConfig], produces = [MediaType.APPLICATION_JSON_VALUE]) - @AcpCloudDuplicateSubmission - @Throws(WebException::class) - fun update(@RequestBody @Valid routePo: RoutePo): ResponseEntity { - if (CommonTools.isNullStr(routePo.id)) { - throw WebException("配置ID不能为空") - } - return ResponseEntity.ok(routeService.doUpdate(routePo)) - } - - @Operation(summary = "查询路由信息列表", description = "查询条件:路由ID、是否启用") - @ApiResponses(ApiResponse(responseCode = "400", description = "参数校验不通过;")) - @SaCheckRole(RoleCode.SUPER) - @PostMapping(value = [RouteApi.gateWayRouteConfig], produces = [MediaType.APPLICATION_JSON_VALUE]) - @Throws(WebException::class) - fun query(@RequestBody routeQueryPo: RouteQueryPo): ResponseEntity> = - ResponseEntity.ok(routeService.doQuery(routeQueryPo)) - - @Operation(summary = "刷新路由配置信息") - @ApiResponses(ApiResponse(responseCode = "403", description = "没有权限执行该操作;")) - @SaCheckRole(RoleCode.SUPER) - @PostMapping(value = [RouteApi.gateWayRouteRefresh], produces = [MediaType.APPLICATION_JSON_VALUE]) - @AcpCloudDuplicateSubmission - @Throws(WebException::class) - fun refresh(): ResponseEntity { - routeService.doRefresh() - updateRouteBridge.doNotifyUpdateRoute() - return ResponseEntity.accepted().body(InfoVo(message = "刷新路由缓存成功,稍后网关将刷新路由配置信息")) - } - -} diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/FilterDefinition.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/FilterDefinition.kt deleted file mode 100644 index 881206e3..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/FilterDefinition.kt +++ /dev/null @@ -1,40 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.definition - -import jakarta.validation.ValidationException -import org.springframework.util.StringUtils.tokenizeToStringArray - -/** - * @since JDK 11 - */ -class FilterDefinition { - - var name: String? = null - - private var args: MutableMap = LinkedHashMap() - - fun getArgs(): Map { - return args - } - - fun setArgs(args: MutableMap) { - this.args = args - } - - constructor() - - constructor(text: String) { - val eqIdx = text.indexOf('=') - if (eqIdx <= 0) { - throw ValidationException( - "Unable to parse PredicateDefinition text '" + text + "'" + - ", must be of the form name=value" - ) - } - name = text.substring(0, eqIdx) - val args = tokenizeToStringArray(text.substring(eqIdx + 1), ",") - for (i in args.indices) { - this.args[NameUtils.generateName(i)] = args[i] - } - } - -} diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/NameUtils.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/NameUtils.kt deleted file mode 100644 index bb567a44..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/NameUtils.kt +++ /dev/null @@ -1,14 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.definition - -/** - * @since JDK 11 - */ -internal object NameUtils { - - private const val GENERATED_NAME_PREFIX = "_genkey_" - - fun generateName(i: Int): String { - return GENERATED_NAME_PREFIX + i - } - -} diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/PredicateDefinition.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/PredicateDefinition.kt deleted file mode 100644 index c5f71c7f..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/PredicateDefinition.kt +++ /dev/null @@ -1,40 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.definition - -import jakarta.validation.ValidationException -import org.springframework.util.StringUtils.tokenizeToStringArray - -/** - * @since JDK 11 - */ -class PredicateDefinition { - - var name: String? = null - - private var args: MutableMap = LinkedHashMap() - - fun getArgs(): Map { - return args - } - - fun setArgs(args: MutableMap) { - this.args = args - } - - constructor() - - constructor(text: String) { - val eqIdx = text.indexOf('=') - if (eqIdx <= 0) { - throw ValidationException( - "Unable to parse PredicateDefinition text '" + text + "'" + - ", must be of the form name=value" - ) - } - name = text.substring(0, eqIdx) - val args = tokenizeToStringArray(text.substring(eqIdx + 1), ",") - for (i in args.indices) { - this.args[NameUtils.generateName(i)] = args[i] - } - } - -} diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteConstant.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteConstant.kt deleted file mode 100644 index 583301b2..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteConstant.kt +++ /dev/null @@ -1,11 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.definition - -import io.gitee.zhangbinhub.admin.common.constant.RouteConstant.ROUTES_DEFINITION_KEY - -/** - * @since JDK 11 - */ -object RouteConstant { - const val ROUTES_LOCK_KEY = ROUTES_DEFINITION_KEY + "_lock" - const val ROUTES_LOCK_TIME_OUT: Long = 1000 -} diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteDefinition.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteDefinition.kt deleted file mode 100644 index 9fe73308..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/definition/RouteDefinition.kt +++ /dev/null @@ -1,47 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.definition - -import jakarta.validation.ValidationException -import org.springframework.util.StringUtils.tokenizeToStringArray -import java.net.URI -import java.util.* - -/** - * @since JDK 11 - */ -class RouteDefinition { - - var id = UUID.randomUUID().toString() - - var predicates: MutableList = mutableListOf() - - var filters: MutableList = mutableListOf() - - var uri: URI? = null - - var metadata: MutableMap = mutableMapOf() - - var order = 0 - - constructor() - - constructor(text: String) { - val eqIdx = text.indexOf('=') - if (eqIdx <= 0) { - throw ValidationException( - "Unable to parse RouteDefinition text '" + text + "'" + - ", must be of the form name=value" - ) - } - - id = text.substring(0, eqIdx) - - val args = tokenizeToStringArray(text.substring(eqIdx + 1), ",") - - uri = URI.create(args[0]) - - for (i in 1 until args.size) { - this.predicates.add(PredicateDefinition(args[i])) - } - } - -} diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/entity/Route.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/entity/Route.kt deleted file mode 100644 index ff871a3a..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/entity/Route.kt +++ /dev/null @@ -1,50 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.entity - -import io.swagger.v3.oas.annotations.media.Schema -import jakarta.persistence.* - -/** - * @since JDK 11 - */ -@Entity -@Table(name = "t_gateway_route") -@Schema(description = "网关路由配置") -data class Route( - @Id - @GeneratedValue(strategy = GenerationType.UUID) - @Column(length = 36, nullable = false) - @Schema(description = "ID") - var id: String = "", - - @Schema(description = "路由ID") - @Column(nullable = false) - var routeId: String? = null, - - @Schema(description = "路由URI") - @Column(nullable = false) - var uri: String? = null, - - @Schema(description = "路由断言") - @Lob - @Column(nullable = false, length = 65535) - var predicates: String = "", - - @Schema(description = "路由过滤器") - @Lob - @Column(length = 65535) - var filters: String? = null, - - @Schema(description = "元数据") - @Lob - @Column(length = 65535) - var metadata: String? = null, - - @Schema(description = "路由序号") - var orderNum: Int = 0, - - @Schema(description = "是否启用") - var enabled: Boolean = false, - - @Schema(description = "备注") - var remarks: String? = null -) \ No newline at end of file diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/init/DataInitialization.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/init/DataInitialization.kt deleted file mode 100644 index 639fea1b..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/init/DataInitialization.kt +++ /dev/null @@ -1,35 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.init - -import io.gitee.zhangbinhub.acp.boot.init.AcpInitialization -import io.gitee.zhangbinhub.acp.boot.log.LogAdapter -import io.gitee.zhangbinhub.admin.route.service.InitDataService -import io.gitee.zhangbinhub.admin.route.service.RouteService -import org.springframework.stereotype.Component - -@Component -class DataInitialization( - private val logAdapter: LogAdapter, - private val routeService: RouteService, - private val initDataService: InitDataService -) : AcpInitialization { - override val name: String - get() = "Data Initialization" - - override val order: Int - get() = 1 - - override fun doInit() { - val innerRouteIdList = listOf( - InitDataService.WORK_FLOW_SERVER_API_ROUTE_ID, - InitDataService.WORK_FLOW_UI_ROUTE_ID, - InitDataService.WORK_FLOW_UI_SERVER_ROUTE_ID - ) - routeService.getRouteListByRouteIdList(innerRouteIdList).let { routeList -> - if (routeList.isEmpty()) { - logAdapter.info(">>>>>>>>>>>>>>>>>>>> begin init route data...") - initDataService.doInitRoute() - logAdapter.info(">>>>>>>>>>>>>>>>>>>> init route data has finished!") - } - } - } -} \ No newline at end of file diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RoutePo.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RoutePo.kt deleted file mode 100644 index 9aa11e1f..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RoutePo.kt +++ /dev/null @@ -1,40 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.po - -import io.swagger.v3.oas.annotations.media.Schema -import jakarta.validation.constraints.NotBlank - -/** - * @since JDK 11 - */ -@Schema(description = "网关路由配置参数") -data class RoutePo( - @Schema(description = "ID") - var id: String? = null, - - @Schema(description = "路由ID", requiredMode = Schema.RequiredMode.REQUIRED) - @get:NotBlank(message = "路由ID不能为空") - var routeId: String? = null, - - @Schema(description = "路由URI", requiredMode = Schema.RequiredMode.REQUIRED) - @get:NotBlank(message = "路由URI不能为空") - var uri: String? = null, - - @Schema(description = "路由断言", requiredMode = Schema.RequiredMode.REQUIRED) - @get:NotBlank(message = "路由断言不能为空") - var predicates: String? = null, - - @Schema(description = "路由过滤器") - var filters: String? = null, - - @Schema(description = "元数据") - var metadata: String? = null, - - @Schema(description = "路由序号") - var orderNum: Int = 0, - - @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED) - var enabled: Boolean? = null, - - @Schema(description = "备注") - var remarks: String? = null -) diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RouteQueryPo.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RouteQueryPo.kt deleted file mode 100644 index 3688b78d..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/po/RouteQueryPo.kt +++ /dev/null @@ -1,17 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.po - -import io.gitee.zhangbinhub.admin.common.base.BaseQueryPo -import io.swagger.v3.oas.annotations.media.Schema -import jakarta.validation.constraints.NotBlank - -/** - * @since JDK 11 - */ -@Schema(description = "网关路由配置查询参数") -data class RouteQueryPo( - @Schema(description = "路由ID") - @get:NotBlank(message = "路由ID不能为空") - var routeId: String? = null, - @Schema(description = "是否启用") - var enabled: Boolean? = null -) : BaseQueryPo() diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/producer/UpdateRouteBridge.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/producer/UpdateRouteBridge.kt deleted file mode 100644 index 9a492181..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/producer/UpdateRouteBridge.kt +++ /dev/null @@ -1,20 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.producer - -import io.gitee.zhangbinhub.admin.common.constant.RouteConstant -import org.springframework.cloud.stream.function.StreamBridge -import org.springframework.messaging.support.MessageBuilder - -/** - * @since JDK 11 - */ -class UpdateRouteBridge( - private val streamBridge: StreamBridge, - private val bindName: String -) { - fun doNotifyUpdateRoute() { - streamBridge.send( - bindName, - MessageBuilder.withPayload(RouteConstant.UPDATE_GATEWAY_ROUTES).build() - ) - } -} diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/repo/RouteRepository.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/repo/RouteRepository.kt deleted file mode 100644 index 38b3d81b..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/repo/RouteRepository.kt +++ /dev/null @@ -1,23 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.repo - -import io.gitee.zhangbinhub.admin.route.base.BaseRepository -import io.gitee.zhangbinhub.admin.route.entity.Route - -/** - * @since JDK 11 - */ -interface RouteRepository : BaseRepository { - - fun findAllByEnabled(enabled: Boolean): List - - fun findAllByRouteIdIn(routeIdList: List): List - - /** - * 删除路由 - * - * @param idList id列表 - * @param enabled 启用状态 - */ - fun deleteByIdInAndEnabled(idList: List, enabled: Boolean) - -} diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/service/InitDataService.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/service/InitDataService.kt deleted file mode 100644 index c5173cac..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/service/InitDataService.kt +++ /dev/null @@ -1,67 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.service - -import io.gitee.zhangbinhub.acp.boot.log.LogAdapter -import io.gitee.zhangbinhub.admin.route.entity.Route -import io.gitee.zhangbinhub.admin.route.repo.RouteRepository -import org.springframework.beans.factory.annotation.Autowired -import org.springframework.stereotype.Service -import org.springframework.transaction.annotation.Transactional - -@Service -@Transactional(readOnly = true) -class InitDataService @Autowired constructor( - private val logAdapter: LogAdapter, - private val routeRepository: RouteRepository -) { - companion object { - const val WORK_FLOW_SERVER_API_ROUTE_ID = "workflow-server-api" - const val WORK_FLOW_UI_ROUTE_ID = "workflow-ui" - const val WORK_FLOW_UI_SERVER_ROUTE_ID = "workflow-ui-server" - } - - @Transactional - fun doInitRoute() { - routeRepository.save( - Route( - routeId = WORK_FLOW_SERVER_API_ROUTE_ID, - enabled = true, - orderNum = 0, - uri = "lb://workflow-server", - predicates = "[\"Path=/api/workflow/**\"]", - filters = "[\"StripPrefix=1\"]", - metadata = "{}", - remarks = "工作流服务接口" - ) - ).also { route -> - logAdapter.info("Init Route ${route.remarks}[${route.routeId}]") - } - routeRepository.save( - Route( - routeId = WORK_FLOW_UI_ROUTE_ID, - enabled = true, - orderNum = 0, - uri = "lb://workflow-server", - predicates = "[\"Path=/api/warm-flow-ui/**\"]", - filters = "[\"StripPrefix=1\"]", - metadata = "{}", - remarks = "工作流设计器" - ) - ).also { route -> - logAdapter.info("Init Route ${route.remarks}[${route.routeId}]") - } - routeRepository.save( - Route( - routeId = WORK_FLOW_UI_SERVER_ROUTE_ID, - enabled = true, - orderNum = 0, - uri = "lb://workflow-server", - predicates = "[\"Path=/api/warm-flow/**\"]", - filters = "[\"StripPrefix=1\"]", - metadata = "{}", - remarks = "工作流设计器服务" - ) - ).also { route -> - logAdapter.info("Init Route ${route.remarks}[${route.routeId}]") - } - } -} \ No newline at end of file diff --git a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/service/RouteService.kt b/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/service/RouteService.kt deleted file mode 100644 index 4e5996f0..00000000 --- a/modules/route-server/src/main/kotlin/io/gitee/zhangbinhub/admin/route/service/RouteService.kt +++ /dev/null @@ -1,146 +0,0 @@ -package io.gitee.zhangbinhub.admin.route.service - -import com.fasterxml.jackson.databind.ObjectMapper -import com.fasterxml.jackson.databind.type.TypeFactory -import io.gitee.zhangbinhub.acp.boot.exceptions.WebException -import io.gitee.zhangbinhub.acp.boot.log.LogAdapter -import io.gitee.zhangbinhub.acp.cloud.lock.DistributedLock -import io.gitee.zhangbinhub.acp.core.common.CommonTools -import io.gitee.zhangbinhub.admin.route.base.BaseService -import io.gitee.zhangbinhub.admin.common.constant.RouteConstant.ROUTES_DEFINITION_KEY -import io.gitee.zhangbinhub.admin.common.vo.CustomerQueryPageVo -import io.gitee.zhangbinhub.admin.route.definition.FilterDefinition -import io.gitee.zhangbinhub.admin.route.definition.PredicateDefinition -import io.gitee.zhangbinhub.admin.route.definition.RouteConstant -import io.gitee.zhangbinhub.admin.route.definition.RouteDefinition -import io.gitee.zhangbinhub.admin.route.entity.Route -import io.gitee.zhangbinhub.admin.route.po.RoutePo -import io.gitee.zhangbinhub.admin.route.po.RouteQueryPo -import io.gitee.zhangbinhub.admin.route.repo.RouteRepository -import jakarta.persistence.criteria.Predicate -import org.springframework.beans.factory.annotation.Autowired -import org.springframework.data.redis.core.StringRedisTemplate -import org.springframework.stereotype.Service -import org.springframework.transaction.annotation.Transactional -import java.net.URI - -/** - * @since JDK 11 - */ -@Service -@Transactional(readOnly = true) -class RouteService @Autowired -constructor( - private val logAdapter: LogAdapter, - private val routeRepository: RouteRepository, - private val stringRedisTemplate: StringRedisTemplate, - private val objectMapper: ObjectMapper, - private val distributedLock: DistributedLock -) : BaseService() { - - private fun doSave(route: Route, routePo: RoutePo): Route = - route.copy( - uri = routePo.uri, - routeId = routePo.routeId, - predicates = routePo.predicates!!, - filters = routePo.filters, - metadata = routePo.metadata, - enabled = routePo.enabled ?: false, - orderNum = routePo.orderNum, - remarks = routePo.remarks - ).let { - routeRepository.save(it) - } - - @Transactional - fun doCreate(routePo: RoutePo): Route = doSave(Route(), routePo) - - @Transactional - @Throws(WebException::class) - fun doUpdate(routePo: RoutePo): Route = doSave(routeRepository.getReferenceById(routePo.id!!), routePo) - - @Transactional - fun doDelete(idList: List) = routeRepository.deleteByIdInAndEnabled(idList, false) - - fun getRouteListByRouteIdList(routeIdList: List): List = - routeRepository.findAllByRouteIdIn(routeIdList) - - fun doQuery(routeQueryPo: RouteQueryPo): CustomerQueryPageVo = - routeRepository.findAll({ root, _, criteriaBuilder -> - val predicateList: MutableList = mutableListOf() - if (routeQueryPo.enabled != null) { - predicateList.add(criteriaBuilder.equal(root.get("enabled"), routeQueryPo.enabled)) - } - if (!CommonTools.isNullStr(routeQueryPo.routeId)) { - predicateList.add( - criteriaBuilder.like( - root.get("routeId").`as`(String::class.java), - "%" + routeQueryPo.routeId + "%" - ) - ) - } - criteriaBuilder.and(*predicateList.toTypedArray()) - }, buildPageRequest(routeQueryPo.queryParam!!)).let { page -> - CustomerQueryPageVo( - currPage = routeQueryPo.queryParam!!.currPage!!, - pageSize = routeQueryPo.queryParam!!.pageSize!!, - totalElements = page.totalElements, - content = page.content - ) - } - - @Transactional - @Throws(WebException::class) - fun doRefresh() { - val routeList = routeRepository.findAllByEnabled(true) - logAdapter.info("查询到启用的路由信息共 " + routeList.size + " 条") - try { - if (distributedLock.getLock(RouteConstant.ROUTES_LOCK_KEY, RouteConstant.ROUTES_LOCK_TIME_OUT)) { - try { - stringRedisTemplate.delete(ROUTES_DEFINITION_KEY) - logAdapter.info("清理 Redis 缓存完成") - for (route in routeList) { - val routeDefinition = RouteDefinition() - routeDefinition.id = route.routeId!! - routeDefinition.uri = URI(route.uri!!) - routeDefinition.order = route.orderNum - routeDefinition.predicates = objectMapper.readValue( - route.predicates, - TypeFactory.defaultInstance() - .constructCollectionLikeType(MutableList::class.java, PredicateDefinition::class.java) - ) - routeDefinition.filters = if (!CommonTools.isNullStr(route.filters)) { - objectMapper.readValue( - route.filters, - TypeFactory.defaultInstance() - .constructCollectionLikeType(MutableList::class.java, FilterDefinition::class.java) - ) - } else { - mutableListOf() - } - routeDefinition.metadata = if (!CommonTools.isNullStr(route.metadata)) { - objectMapper.readValue( - route.metadata, - TypeFactory.defaultInstance() - .constructMapLikeType(MutableMap::class.java, String::class.java, Any::class.java) - ) - } else { - mutableMapOf() - } - stringRedisTemplate.opsForList() - .rightPush(ROUTES_DEFINITION_KEY, objectMapper.writeValueAsString(routeDefinition)) - } - logAdapter.info("路由信息更新至 Redis,共 " + routeList.size + " 条") - } finally { - distributedLock.releaseLock(RouteConstant.ROUTES_LOCK_KEY) - } - } else { - throw WebException("系统正在进行路由信息更新,请稍后重试") - } - } catch (e: Exception) { - throw WebException(e.message) - } - - } - -} diff --git a/modules/route-server/src/main/resources/META-INF/spring.factories b/modules/route-server/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 52bd4cd9..00000000 --- a/modules/route-server/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,2 +0,0 @@ -org.springframework.boot.env.EnvironmentPostProcessor=\ - io.gitee.zhangbinhub.admin.route.conf.RouteUpdateEnvironmentPostProcessor \ No newline at end of file diff --git a/modules/route-server/src/main/resources/application.yaml b/modules/route-server/src/main/resources/application.yaml deleted file mode 100644 index e30b725f..00000000 --- a/modules/route-server/src/main/resources/application.yaml +++ /dev/null @@ -1,50 +0,0 @@ -server: - shutdown: graceful - port: ${acp_server_port:0} - undertow: - threads: - worker: 1000 -spring: - profiles: - active: ${acp_profile_active:dev} - application: - name: route-server - thymeleaf: - cache: false - cloud: - loadbalancer: - cache: - ttl: 5s - nacos: - username: ${acp_nacos_username:nacos} - password: ${acp_nacos_password:nacos} - server-addr: ${acp_nacos_addr:127.0.0.1:8848} - discovery: - namespace: ${acp_nacos_namespace:acp-cloud-admin} - cluster-name: ${spring.profiles.active} - group: ${spring.profiles.active} - metadata: - user.name: ${acp.cloud.resource-server.client-id} - user.password: ${acp.cloud.resource-server.client-secret} - config: - namespace: ${spring.cloud.nacos.discovery.namespace} - cluster-name: ${spring.cloud.nacos.discovery.cluster-name} - config: - import: - - optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml?group=${spring.cloud.nacos.discovery.group} - - optional:nacos:atom-server-common-${spring.profiles.active}.yaml?group=${spring.cloud.nacos.discovery.group} -logging: - file: - path: ${acp_log_path:logs}/${spring.application.name} - name: ${logging.file.path}/${spring.application.name}.log -info: - version: '@version@' - app-name: ${spring.application.name} - tags: - environment: ${spring.profiles.active} -acp: - cloud: - log-server: - client: - enabled: true - log-type: ROUTE \ No newline at end of file diff --git a/modules/route-server/src/main/resources/chars-scan-config.properties b/modules/route-server/src/main/resources/chars-scan-config.properties deleted file mode 100644 index 1f833094..00000000 --- a/modules/route-server/src/main/resources/chars-scan-config.properties +++ /dev/null @@ -1,6 +0,0 @@ -chars.scan.prefix=:\uFF1A,\uFF0C'"\u2018\u201C=| +()\uFF08\uFF09 -chars.scan.scanList=1,2,3,4,9 -chars.scan.replaceList=1,2,3,4,9 -chars.scan.defaultReplace=12 -chars.scan.replaceHash=none -chars.scan.whiteList="" \ No newline at end of file diff --git a/modules/route-server/src/main/resources/logback-spring.xml b/modules/route-server/src/main/resources/logback-spring.xml deleted file mode 100644 index 2fe7764f..00000000 --- a/modules/route-server/src/main/resources/logback-spring.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 03f2efee..f6c7a382 100644 --- a/settings.gradle +++ b/settings.gradle @@ -15,8 +15,6 @@ include 'log-server' project(':log-server').projectDir = new File('modules','log-server') include 'oauth-server' project(':oauth-server').projectDir = new File('modules','oauth-server') -include 'route-server' -project(':route-server').projectDir = new File('modules','route-server') include 'workflow-server' project(':workflow-server').projectDir = new File('modules','workflow-server') include 'deploy-server' -- Gitee From 21af1a4221e5755ee7cf5cb4e23f7dabc948e84e Mon Sep 17 00:00:00 2001 From: zhangbinhub Date: Wed, 20 Aug 2025 12:44:39 +0800 Subject: [PATCH 7/7] =?UTF-8?q?[Upgrade]=20=E8=B7=AF=E7=94=B1=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E6=94=BE=E4=BA=8E=E9=85=8D=E7=BD=AE=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +- .../admin/common/constant/RouteConstant.kt | 6 -- deploy/docker/middleware/.env | 2 +- doc/nacos_config_export_dev.zip | Bin 4412 -> 4933 bytes doc/version_history.md | 2 + modules/gateway-server/README.md | 2 +- .../admin/gateway/conf/RouteConfiguration.kt | 8 -- .../conf/RouteEnvironmentPostProcessor.kt | 36 +------- .../consumer/UpdateRouteConsumerProcess.kt | 29 ------- .../gateway/repo/RouteRedisRepository.kt | 77 ------------------ .../src/main/resources/application.yaml | 37 --------- .../service/WorkFlowDefinitionService.kt | 2 +- 12 files changed, 7 insertions(+), 199 deletions(-) delete mode 100644 modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/consumer/UpdateRouteConsumerProcess.kt delete mode 100644 modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/repo/RouteRedisRepository.kt diff --git a/README.md b/README.md index 0d29d9c7..fda8af14 100644 --- a/README.md +++ b/README.md @@ -63,11 +63,8 @@ - 各服务在 **Nacos** 上进行注册,**gateway** 和其他各个服务通过 **Nacos** 发现和查找目标服务进行访问 - 各服务将互相调用的断路信息通过 **admin server** 进行监控 -- **【依赖中间件 redis】 gateway server** 根据制定的策略路由到指定服务;路由定义从 **Redis** - 获取,缓存至本地;基于动态路由配置可根据实际情况扩展实现灰度发布 +- **【依赖中间件 redis】 gateway server** 根据制定的策略路由到指定服务; - **【依赖中间件 redis】 oauth server** 存储 **token** 至 **Redis** -- **【依赖中间件 redis、kafka】 route server** 修改路由信息后更新至 **Redis** ,通过 **Kafka** 通知 **gateway server** - 动态更新路由 - **【依赖中间件 kafka】** 发布和订阅 **Bus** 总线事件 server** 更新缓存 - **【依赖中间件 kafka】** 各深度定制开发的服务通过 **kafka** 发送日志消息,**log server** 从 **Kafka** 中消费消息并进行日志的统一记录 diff --git a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RouteConstant.kt b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RouteConstant.kt index 8dc29a02..7dc90989 100644 --- a/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RouteConstant.kt +++ b/common/acp-admin-cloud-constant/src/main/kotlin/io/gitee/zhangbinhub/admin/common/constant/RouteConstant.kt @@ -4,12 +4,6 @@ package io.gitee.zhangbinhub.admin.common.constant * @since JDK 11 */ object RouteConstant { - const val UPDATE_ROUTE_CONSUMER = "acpUpdateRouteConsumer" - const val UPDATE_ROUTE_INPUT = "acpUpdateRouteInput" - const val UPDATE_ROUTE_OUTPUT = "acpUpdateRouteOutput" - const val UPDATE_ROUTE_DESCRIPTION = "acp-update-gateway-routes" - const val ROUTES_DEFINITION_KEY = "acp_cloud_gateway_routes_definition_key" - const val UPDATE_GATEWAY_ROUTES = "acp_update_gateway_routes" const val ROUTE_LOG_CONSUMER = "acpRouteLogConsumer" const val ROUTE_LOG_INPUT = "acpRouteLogInput" const val ROUTE_LOG_OUTPUT = "acpRouteLogOutput" diff --git a/deploy/docker/middleware/.env b/deploy/docker/middleware/.env index 9b5af9f1..48f703b7 100644 --- a/deploy/docker/middleware/.env +++ b/deploy/docker/middleware/.env @@ -1,2 +1,2 @@ -HOST_MACHINE_IP=10.100.207.37 +HOST_MACHINE_IP=10.100.107.155 KAFKA_CLUSTER_ID=acp_admin_cloud_test \ No newline at end of file diff --git a/doc/nacos_config_export_dev.zip b/doc/nacos_config_export_dev.zip index c500787d9efe2f53c9d57d34e25be7211d9b7c0c..f90923e1cee73246a2e1335d6bec602b407ee6a7 100644 GIT binary patch delta 890 zcmdm^bX1Kmz?+#xgn@&DgP|!^BzhyC9}^3Ru{nXsh!Mh?#_Y}tVLjwXfQq?tDMDFU z+|!^e7G6chdXQcQBp?lBr=*tYrze)AmM2!~7N-`Kr55P|h4d;Db91&%HOxO`AkbP~ zca+m=%L>J%$sxDAWN$NG+}hpfy`kXImmFcGBlYW@n>Z9bGF{Am|9Q9jdrD-O;YW=R zRSevUXN{s6SbUNXU8-STFu}~@xNN;cQ*r!^w<{SOE@gx~tX=>4Aki0@tRv@feVe{b5b^f&XPW$%PNv*S-J@oea- z-rXhDaKa9syDn+7bQ(xc9}`$dhn`y zGxz164oEq(&UM+gi>l^tr*83HKc&P&WVS4q!cFtfbN7dP{;mjkc>e8P18=KGf*zKq zHW@CReZ(RyZOMjU_PG)2h zVL&9>$;|wY-~>9^gWn0l=;QZNQ z$q8>J|2z}leI(ar#fR)F{WC(}D_DZKHtqSjbpDmH@R#>r==?0>GkUMFBdBrJ^!I

RAWCdYyJ`M&B24kSTpZP#i0P|jmk^lez diff --git a/doc/version_history.md b/doc/version_history.md index 77f30ee2..5e3ba5b6 100644 --- a/doc/version_history.md +++ b/doc/version_history.md @@ -7,6 +7,8 @@ - Acp 2025.7.2 - Spring Boot Admin 3.5.2 - [Delete] 移除`route-server`服务 +- gateway-server + - [Upgrade] 路由定义放于配置中心中 ##### v7.0.0 diff --git a/modules/gateway-server/README.md b/modules/gateway-server/README.md index c08bae2c..40cab3dd 100644 --- a/modules/gateway-server/README.md +++ b/modules/gateway-server/README.md @@ -15,4 +15,4 @@ user.name: ${spring.security.user.name} user.password: ${spring.security.user.password} ``` -- 2、固定路由配置定义于[application.yaml](src/main/resources/application.yaml)中 \ No newline at end of file +- 2、路由配置放在配置中心中 \ No newline at end of file diff --git a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/conf/RouteConfiguration.kt b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/conf/RouteConfiguration.kt index 8e66d6be..cd427dfd 100644 --- a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/conf/RouteConfiguration.kt +++ b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/conf/RouteConfiguration.kt @@ -3,13 +3,11 @@ package io.gitee.zhangbinhub.admin.gateway.conf import com.fasterxml.jackson.databind.ObjectMapper import io.gitee.zhangbinhub.admin.common.constant.RouteConstant import io.gitee.zhangbinhub.admin.gateway.constant.GateWayConstant -import io.gitee.zhangbinhub.admin.gateway.consumer.UpdateRouteConsumerProcess import io.gitee.zhangbinhub.admin.gateway.log.RouteLogBridge import io.gitee.zhangbinhub.admin.gateway.log.RouteLogService import org.reactivestreams.Publisher import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.autoconfigure.AutoConfigureBefore -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean import org.springframework.cloud.gateway.filter.GatewayFilterChain import org.springframework.cloud.gateway.filter.GlobalFilter import org.springframework.cloud.gateway.filter.NettyWriteResponseFilter @@ -33,12 +31,6 @@ import reactor.core.publisher.Mono @Configuration(proxyBeanMethods = false) @AutoConfigureBefore(BindingServiceConfiguration::class) class RouteConfiguration @Autowired constructor(private val routeLogService: RouteLogService) { - @Bean(RouteConstant.UPDATE_ROUTE_CONSUMER) - @ConditionalOnMissingBean(name = [RouteConstant.UPDATE_ROUTE_CONSUMER]) - fun updateRouteConsumer(updateRouteConsumerProcess: UpdateRouteConsumerProcess): (String) -> Unit { - return { updateRouteConsumerProcess.accept(it) } - } - @Bean fun routeLogBridge(streamBridge: StreamBridge, objectMapper: ObjectMapper) = RouteLogBridge(streamBridge, objectMapper, RouteConstant.ROUTE_LOG_OUTPUT) diff --git a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/conf/RouteEnvironmentPostProcessor.kt b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/conf/RouteEnvironmentPostProcessor.kt index 64c7c7e7..80097ce0 100644 --- a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/conf/RouteEnvironmentPostProcessor.kt +++ b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/conf/RouteEnvironmentPostProcessor.kt @@ -1,12 +1,9 @@ package io.gitee.zhangbinhub.admin.gateway.conf import io.gitee.zhangbinhub.acp.boot.tools.EnvironmentTools -import io.gitee.zhangbinhub.acp.core.common.CommonTools import io.gitee.zhangbinhub.admin.common.constant.RouteConstant -import io.gitee.zhangbinhub.admin.gateway.constant.GateWayConstant import org.springframework.boot.SpringApplication import org.springframework.boot.env.EnvironmentPostProcessor -import org.springframework.cloud.function.context.FunctionProperties import org.springframework.core.env.ConfigurableEnvironment import org.springframework.util.MimeTypeUtils @@ -14,37 +11,7 @@ import org.springframework.util.MimeTypeUtils * @since JDK 11 */ class RouteEnvironmentPostProcessor : EnvironmentPostProcessor { - private val overridePropertiesName = "acpCloudRouteOverrideProperties" private val defaultPropertiesName = "acpCloudRouteDefaultProperties" - private val functionDefinitionProperties = "${FunctionProperties.PREFIX}.definition" - private val updateRouteConsumerBindName = "${RouteConstant.UPDATE_ROUTE_CONSUMER}-in-0" - - private fun initConsumer(environment: ConfigurableEnvironment) { - val overrides: MutableMap = HashMap() - var definition = RouteConstant.UPDATE_ROUTE_CONSUMER - if (environment.containsProperty(functionDefinitionProperties)) { - val property = environment.getProperty(functionDefinitionProperties) - if (property != null && property.contains(definition)) { - return - } - definition = "$property;$definition" - } - overrides[functionDefinitionProperties] = definition - EnvironmentTools.addOrReplaceProperty(environment.propertySources, overrides, overridePropertiesName, true) - - val default: MutableMap = HashMap() - "spring.cloud.stream".let { prefix -> - default["$prefix.function.bindings.$updateRouteConsumerBindName"] = RouteConstant.UPDATE_ROUTE_INPUT - val destination = RouteConstant.UPDATE_ROUTE_DESCRIPTION - val groupId = GateWayConstant.UPDATE_ROUTE_GROUP_PREFIX + CommonTools.getUuid32() - default["$prefix.bindings.${RouteConstant.UPDATE_ROUTE_INPUT}.destination"] = destination - default["$prefix.bindings.${RouteConstant.UPDATE_ROUTE_INPUT}.contentType"] = - MimeTypeUtils.APPLICATION_JSON_VALUE - default["$prefix.bindings.${RouteConstant.UPDATE_ROUTE_INPUT}.group"] = groupId - EnvironmentTools.addOrReplaceProperty(environment.propertySources, default, defaultPropertiesName, false) - } - } - private fun initProducer(environment: ConfigurableEnvironment) { val default: MutableMap = HashMap() "spring.cloud.stream.bindings.${RouteConstant.ROUTE_LOG_OUTPUT}".let { prefix -> @@ -68,7 +35,6 @@ class RouteEnvironmentPostProcessor : EnvironmentPostProcessor { } override fun postProcessEnvironment(environment: ConfigurableEnvironment?, application: SpringApplication?) { - initConsumer(environment!!) - initProducer(environment) + initProducer(environment!!) } } diff --git a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/consumer/UpdateRouteConsumerProcess.kt b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/consumer/UpdateRouteConsumerProcess.kt deleted file mode 100644 index e0e4efbc..00000000 --- a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/consumer/UpdateRouteConsumerProcess.kt +++ /dev/null @@ -1,29 +0,0 @@ -package io.gitee.zhangbinhub.admin.gateway.consumer - -import io.gitee.zhangbinhub.acp.boot.log.LogAdapter -import io.gitee.zhangbinhub.admin.common.constant.RouteConstant -import io.gitee.zhangbinhub.admin.gateway.repo.RouteRedisRepository -import org.springframework.stereotype.Component -import java.util.function.Consumer - -/** - * @since JDK 11 - */ -@Component -class UpdateRouteConsumerProcess( - private val logAdapter: LogAdapter, - private val routeRedisRepository: RouteRedisRepository -) : Consumer { - override fun accept(message: String) { - logAdapter.info("收到 kafka 消息:$message") - if (RouteConstant.UPDATE_GATEWAY_ROUTES == message) { - Thread { - logAdapter.info("开始更新路由信息...") - routeRedisRepository.refreshRoute() - logAdapter.info("更新路由信息完成!") - }.apply { - this.isDaemon = true - }.start() - } - } -} diff --git a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/repo/RouteRedisRepository.kt b/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/repo/RouteRedisRepository.kt deleted file mode 100644 index 8400d16b..00000000 --- a/modules/gateway-server/src/main/kotlin/io/gitee/zhangbinhub/admin/gateway/repo/RouteRedisRepository.kt +++ /dev/null @@ -1,77 +0,0 @@ -package io.gitee.zhangbinhub.admin.gateway.repo - -import com.fasterxml.jackson.databind.ObjectMapper -import io.gitee.zhangbinhub.acp.boot.log.LogAdapter -import io.gitee.zhangbinhub.admin.common.constant.RouteConstant -import jakarta.annotation.PostConstruct -import org.springframework.beans.factory.annotation.Autowired -import org.springframework.cloud.gateway.event.RefreshRoutesEvent -import org.springframework.cloud.gateway.route.RouteDefinition -import org.springframework.cloud.gateway.route.RouteDefinitionRepository -import org.springframework.cloud.gateway.support.NotFoundException -import org.springframework.context.ApplicationEventPublisher -import org.springframework.data.redis.core.StringRedisTemplate -import org.springframework.stereotype.Component -import org.springframework.util.ObjectUtils -import reactor.core.publisher.Flux -import reactor.core.publisher.Mono -import java.util.* - -/** - * @since JDK 11 - */ -@Component -class RouteRedisRepository @Autowired constructor( - private val logAdapter: LogAdapter, - private val stringRedisTemplate: StringRedisTemplate, - private val objectMapper: ObjectMapper, - private val publisher: ApplicationEventPublisher -) : RouteDefinitionRepository { - private val routes = Collections.synchronizedMap(LinkedHashMap()) - - @PostConstruct - fun loadRouteDefinitions() { - synchronized(this) { - routes.clear() - val values: MutableList = mutableListOf() - try { - stringRedisTemplate.opsForList().range(RouteConstant.ROUTES_DEFINITION_KEY, 0, -1)?.let { - for (route in it) { - values.add(objectMapper.readValue(route, RouteDefinition::class.java)) - } - } - } catch (e: Exception) { - logAdapter.error(e.message, e) - } - logAdapter.info("redis 中路由定义条数: {}, {}", values.size, values) - values.forEach { routeDefinition -> - routes[routeDefinition.id] = routeDefinition - } - } - } - - fun refreshRoute() { - loadRouteDefinitions() - publisher.publishEvent(RefreshRoutesEvent(this)) - } - - override fun getRouteDefinitions(): Flux { - return Flux.fromIterable(LinkedHashMap(routes).values) - } - - override fun save(route: Mono): Mono = route.flatMap { routeDefinition -> - if (ObjectUtils.isEmpty(routeDefinition.id)) { - return@flatMap Mono.error(IllegalArgumentException("id may not be empty")) - } - routes[routeDefinition.id] = routeDefinition - Mono.empty() - } - - override fun delete(routeId: Mono): Mono = routeId.flatMap { id: String -> - if (routes.containsKey(id)) { - routes.remove(id) - return@flatMap Mono.empty() - } - Mono.error(NotFoundException("RouteDefinition not found: $routeId")) - } -} diff --git a/modules/gateway-server/src/main/resources/application.yaml b/modules/gateway-server/src/main/resources/application.yaml index 4cc12819..ac54758c 100644 --- a/modules/gateway-server/src/main/resources/application.yaml +++ b/modules/gateway-server/src/main/resources/application.yaml @@ -38,43 +38,6 @@ spring: max-idle-time: 10000 loadbalancer: use404: true - routes: - - id: deploy-server-api - uri: lb://deploy-server - predicates: - - Path=/api/deploy/** - filters: - - StripPrefix=1 - - id: log-server-api - uri: lb://log-server - predicates: - - Path=/api/log/** - filters: - - StripPrefix=1 - - id: route-server-api - uri: lb://route-server - predicates: - - Path=/api/route/** - filters: - - StripPrefix=1 - - id: oauth-server-api - uri: lb://oauth-server - predicates: - - Path=/api/oauth/** - filters: - - StripPrefix=1 - - id: oauth-server-open - uri: lb://oauth-server - predicates: - - Path=/open/oauth/** - filters: - - RewritePath=/open/oauth/(?.*),/open/$\{segment} - # - name: RequestRateLimiter - # args: - # redis-rate-limiter.replenishRate: 10 - # redis-rate-limiter.burstCapacity: 20 - # rate-limiter: "#{@myRateLimiter}" - # key-resolver: "#{@userKeyResolver}" config: import: - optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml?group=${spring.cloud.nacos.discovery.group} diff --git a/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/service/WorkFlowDefinitionService.kt b/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/service/WorkFlowDefinitionService.kt index 050e002c..ebc7db9a 100644 --- a/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/service/WorkFlowDefinitionService.kt +++ b/modules/workflow-server/src/main/kotlin/io/gitee/zhangbinhub/admin/workflow/service/WorkFlowDefinitionService.kt @@ -79,7 +79,7 @@ class WorkFlowDefinitionService( this.flowCode = processDefinitionPo.flowCode this.flowName = processDefinitionPo.flowName this.category = processDefinitionPo.category - if (!defService.saveAndInitNode(this)) { + if (!defService.checkAndSave(this)) { throw WebException("流程创建失败!") } } -- Gitee