From 1e6af86e8cb84e317f0c90e1957877974ad2f3a9 Mon Sep 17 00:00:00 2001 From: "kaiyu.shan" Date: Fri, 7 Mar 2025 10:43:44 +0800 Subject: [PATCH] =?UTF-8?q?refactor(mumu):=20=E8=A7=84=E8=8C=83=E5=8C=85?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../account/convertor/AccountConvertor.java | 18 +++++++++--------- .../account/convertor/AccountMapper.java | 6 +++--- .../gatewayimpl/AccountGatewayImpl.java | 14 +++++++------- .../AccountRedisRepository.java | 4 ++-- .../{redis => cache}/po/AccountRedisPO.java | 2 +- .../AccountAddressMongodbRepository.java | 4 ++-- ...AccountSystemSettingsMongodbRepository.java | 4 ++-- .../po/AccountAddressMongodbPO.java | 2 +- .../po/AccountSystemSettingsMongodbPO.java | 2 +- .../convertor/PermissionConvertor.java | 2 +- .../permission/convertor/PermissionMapper.java | 2 +- .../gatewayimpl/PermissionGatewayImpl.java | 2 +- .../PermissionRedisRepository.java | 4 ++-- .../{redis => cache}/po/PermissionRedisPO.java | 2 +- .../{redis => cache}/AccountRoleRedisPO.java | 2 +- .../AccountRoleRedisRepository.java | 2 +- .../RolePermissionRedisPO.java | 2 +- .../RolePermissionRedisRepository.java | 2 +- .../role/convertor/RoleConvertor.java | 10 +++++----- .../role/convertor/RoleMapper.java | 2 +- .../role/gatewayimpl/RoleGatewayImpl.java | 4 ++-- .../{redis => cache}/RoleRedisRepository.java | 4 ++-- .../{redis => cache}/po/RoleRedisPO.java | 2 +- .../token/gatewayimpl/TokenGatewayImpl.java | 8 ++++---- .../AuthorizeCodeTokenRepository.java | 4 ++-- .../ClientTokenRepository.java | 4 ++-- .../OidcIdTokenRepository.java | 4 ++-- .../PasswordTokenRepository.java | 4 ++-- .../po/AuthorizeCodeTokenRedisPO.java | 2 +- .../po/ClientTokenRedisPO.java | 2 +- .../po/OidcIdTokenRedisPO.java | 2 +- .../po/PasswordTokenRedisPO.java | 2 +- .../MuMuAuthenticationApplication.java | 6 +++--- .../AuthorizationConfiguration.java | 8 ++++---- .../configuration/MuMuJwtGenerator.java | 18 +++++++++--------- .../mumu/message/MuMuMessageApplication.java | 4 ++-- .../captcha/convertor/CaptchaConvertor.java | 4 ++-- .../captcha/convertor/CaptchaMapper.java | 4 ++-- .../gatewayimpl/CaptchaGatewayImpl.java | 6 +++--- .../SimpleCaptchaRepository.java | 4 ++-- .../{redis => cache}/po/SimpleCaptchaPO.java | 2 +- 41 files changed, 93 insertions(+), 93 deletions(-) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/{redis => cache}/AccountRedisRepository.java (96%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/{redis => cache}/po/AccountRedisPO.java (99%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/{mongodb => document}/AccountAddressMongodbRepository.java (96%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/{mongodb => document}/AccountSystemSettingsMongodbRepository.java (95%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/{mongodb => document}/po/AccountAddressMongodbPO.java (99%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/{mongodb => document}/po/AccountSystemSettingsMongodbPO.java (99%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/{redis => cache}/PermissionRedisRepository.java (95%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/{redis => cache}/po/PermissionRedisPO.java (99%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/{redis => cache}/AccountRoleRedisPO.java (96%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/{redis => cache}/AccountRoleRedisRepository.java (93%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/{redis => cache}/RolePermissionRedisPO.java (96%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/{redis => cache}/RolePermissionRedisRepository.java (93%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/{redis => cache}/RoleRedisRepository.java (97%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/{redis => cache}/po/RoleRedisPO.java (99%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/{redis => cache}/AuthorizeCodeTokenRepository.java (95%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/{redis => cache}/ClientTokenRepository.java (96%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/{redis => cache}/OidcIdTokenRepository.java (96%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/{redis => cache}/PasswordTokenRepository.java (96%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/{redis => cache}/po/AuthorizeCodeTokenRedisPO.java (99%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/{redis => cache}/po/ClientTokenRedisPO.java (99%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/{redis => cache}/po/OidcIdTokenRedisPO.java (99%) rename mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/{redis => cache}/po/PasswordTokenRedisPO.java (99%) rename mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/{redis => cache}/SimpleCaptchaRepository.java (87%) rename mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/{redis => cache}/po/SimpleCaptchaPO.java (95%) diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/convertor/AccountConvertor.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/convertor/AccountConvertor.java index b232ffa48..e40c147ef 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/convertor/AccountConvertor.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/convertor/AccountConvertor.java @@ -35,27 +35,27 @@ import baby.mumu.authentication.domain.account.AccountAddress; import baby.mumu.authentication.domain.account.AccountSystemSettings; import baby.mumu.authentication.domain.role.Role; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.cache.po.AccountRedisPO; import baby.mumu.authentication.infrastructure.account.gatewayimpl.database.AccountArchivedRepository; import baby.mumu.authentication.infrastructure.account.gatewayimpl.database.AccountRepository; import baby.mumu.authentication.infrastructure.account.gatewayimpl.database.po.AccountArchivedPO; import baby.mumu.authentication.infrastructure.account.gatewayimpl.database.po.AccountPO; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb.AccountAddressMongodbRepository; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb.AccountSystemSettingsMongodbRepository; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb.po.AccountAddressMongodbPO; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb.po.AccountSystemSettingsMongodbPO; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.redis.po.AccountRedisPO; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.document.AccountAddressMongodbRepository; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.document.AccountSystemSettingsMongodbRepository; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.document.po.AccountAddressMongodbPO; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.document.po.AccountSystemSettingsMongodbPO; +import baby.mumu.authentication.infrastructure.relations.cache.AccountRoleRedisPO; +import baby.mumu.authentication.infrastructure.relations.cache.AccountRoleRedisRepository; import baby.mumu.authentication.infrastructure.relations.database.AccountRolePO; import baby.mumu.authentication.infrastructure.relations.database.AccountRolePOId; import baby.mumu.authentication.infrastructure.relations.database.AccountRoleRepository; import baby.mumu.authentication.infrastructure.relations.database.RolePathPO; import baby.mumu.authentication.infrastructure.relations.database.RolePathPOId; import baby.mumu.authentication.infrastructure.relations.database.RolePathRepository; -import baby.mumu.authentication.infrastructure.relations.redis.AccountRoleRedisPO; -import baby.mumu.authentication.infrastructure.relations.redis.AccountRoleRedisRepository; import baby.mumu.authentication.infrastructure.role.convertor.RoleConvertor; +import baby.mumu.authentication.infrastructure.role.gatewayimpl.cache.RoleRedisRepository; +import baby.mumu.authentication.infrastructure.role.gatewayimpl.cache.po.RoleRedisPO; import baby.mumu.authentication.infrastructure.role.gatewayimpl.database.RoleRepository; -import baby.mumu.authentication.infrastructure.role.gatewayimpl.redis.RoleRedisRepository; -import baby.mumu.authentication.infrastructure.role.gatewayimpl.redis.po.RoleRedisPO; import baby.mumu.basis.enums.DigitalPreferenceEnum; import baby.mumu.basis.exception.MuMuException; import baby.mumu.basis.kotlin.tools.PhoneUtils; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/convertor/AccountMapper.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/convertor/AccountMapper.java index 75ed88ec2..b4193bce1 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/convertor/AccountMapper.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/convertor/AccountMapper.java @@ -41,11 +41,11 @@ import baby.mumu.authentication.domain.account.Account; import baby.mumu.authentication.domain.account.AccountAddress; import baby.mumu.authentication.domain.account.AccountSystemSettings; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.cache.po.AccountRedisPO; import baby.mumu.authentication.infrastructure.account.gatewayimpl.database.po.AccountArchivedPO; import baby.mumu.authentication.infrastructure.account.gatewayimpl.database.po.AccountPO; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb.po.AccountAddressMongodbPO; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb.po.AccountSystemSettingsMongodbPO; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.redis.po.AccountRedisPO; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.document.po.AccountAddressMongodbPO; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.document.po.AccountSystemSettingsMongodbPO; import baby.mumu.basis.mappers.BaseMapper; import baby.mumu.basis.mappers.DataTransferObjectMapper; import baby.mumu.basis.mappers.GeoGrpcMapper; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/AccountGatewayImpl.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/AccountGatewayImpl.java index e1be166b6..7feaeb442 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/AccountGatewayImpl.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/AccountGatewayImpl.java @@ -21,17 +21,17 @@ import baby.mumu.authentication.domain.account.gateway.AccountGateway; import baby.mumu.authentication.domain.role.Role; import baby.mumu.authentication.infrastructure.account.convertor.AccountConvertor; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.cache.AccountRedisRepository; import baby.mumu.authentication.infrastructure.account.gatewayimpl.database.AccountArchivedRepository; import baby.mumu.authentication.infrastructure.account.gatewayimpl.database.AccountRepository; import baby.mumu.authentication.infrastructure.account.gatewayimpl.database.po.AccountPO; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb.AccountAddressMongodbRepository; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb.AccountSystemSettingsMongodbRepository; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb.po.AccountAddressMongodbPO; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.redis.AccountRedisRepository; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.document.AccountAddressMongodbRepository; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.document.AccountSystemSettingsMongodbRepository; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.document.po.AccountAddressMongodbPO; +import baby.mumu.authentication.infrastructure.relations.cache.AccountRoleRedisRepository; import baby.mumu.authentication.infrastructure.relations.database.AccountRoleRepository; -import baby.mumu.authentication.infrastructure.relations.redis.AccountRoleRedisRepository; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.OidcIdTokenRepository; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.PasswordTokenRepository; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.OidcIdTokenRepository; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.PasswordTokenRepository; import baby.mumu.basis.annotations.DangerousOperation; import baby.mumu.basis.event.OfflineSuccessEvent; import baby.mumu.basis.exception.AccountAlreadyExistsException; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/redis/AccountRedisRepository.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/cache/AccountRedisRepository.java similarity index 96% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/redis/AccountRedisRepository.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/cache/AccountRedisRepository.java index a8809720f..c45464d81 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/redis/AccountRedisRepository.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/cache/AccountRedisRepository.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.account.gatewayimpl.redis; +package baby.mumu.authentication.infrastructure.account.gatewayimpl.cache; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.redis.po.AccountRedisPO; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.cache.po.AccountRedisPO; import com.redis.om.spring.repository.RedisDocumentRepository; import java.util.Optional; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/redis/po/AccountRedisPO.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/cache/po/AccountRedisPO.java similarity index 99% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/redis/po/AccountRedisPO.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/cache/po/AccountRedisPO.java index a451863d4..71bbb7611 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/redis/po/AccountRedisPO.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/cache/po/AccountRedisPO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.account.gatewayimpl.redis.po; +package baby.mumu.authentication.infrastructure.account.gatewayimpl.cache.po; import baby.mumu.basis.enums.CacheLevelEnum; import baby.mumu.basis.enums.DigitalPreferenceEnum; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/mongodb/AccountAddressMongodbRepository.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/document/AccountAddressMongodbRepository.java similarity index 96% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/mongodb/AccountAddressMongodbRepository.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/document/AccountAddressMongodbRepository.java index 3005022f3..16729baea 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/mongodb/AccountAddressMongodbRepository.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/document/AccountAddressMongodbRepository.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb; +package baby.mumu.authentication.infrastructure.account.gatewayimpl.document; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb.po.AccountAddressMongodbPO; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.document.po.AccountAddressMongodbPO; import java.util.List; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.mongodb.repository.Query; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/mongodb/AccountSystemSettingsMongodbRepository.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/document/AccountSystemSettingsMongodbRepository.java similarity index 95% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/mongodb/AccountSystemSettingsMongodbRepository.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/document/AccountSystemSettingsMongodbRepository.java index 33d89a2cd..9d46e6af9 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/mongodb/AccountSystemSettingsMongodbRepository.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/document/AccountSystemSettingsMongodbRepository.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb; +package baby.mumu.authentication.infrastructure.account.gatewayimpl.document; -import baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb.po.AccountSystemSettingsMongodbPO; +import baby.mumu.authentication.infrastructure.account.gatewayimpl.document.po.AccountSystemSettingsMongodbPO; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotNull; import java.util.List; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/mongodb/po/AccountAddressMongodbPO.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/document/po/AccountAddressMongodbPO.java similarity index 99% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/mongodb/po/AccountAddressMongodbPO.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/document/po/AccountAddressMongodbPO.java index f8d006246..203b5831d 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/mongodb/po/AccountAddressMongodbPO.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/document/po/AccountAddressMongodbPO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb.po; +package baby.mumu.authentication.infrastructure.account.gatewayimpl.document.po; import baby.mumu.basis.annotations.Metamodel; import baby.mumu.basis.po.jpa.JpaMongodbBasisDefaultPersistentObject; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/mongodb/po/AccountSystemSettingsMongodbPO.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/document/po/AccountSystemSettingsMongodbPO.java similarity index 99% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/mongodb/po/AccountSystemSettingsMongodbPO.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/document/po/AccountSystemSettingsMongodbPO.java index fb48eadf2..b253d5180 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/mongodb/po/AccountSystemSettingsMongodbPO.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/account/gatewayimpl/document/po/AccountSystemSettingsMongodbPO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.account.gatewayimpl.mongodb.po; +package baby.mumu.authentication.infrastructure.account.gatewayimpl.document.po; import baby.mumu.basis.annotations.Metamodel; import baby.mumu.basis.enums.SystemThemeEnum; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/convertor/PermissionConvertor.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/convertor/PermissionConvertor.java index fe53ca421..b6440e191 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/convertor/PermissionConvertor.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/convertor/PermissionConvertor.java @@ -35,11 +35,11 @@ import baby.mumu.authentication.client.dto.PermissionFindRootDTO; import baby.mumu.authentication.client.dto.PermissionIncludePathDownloadAllDTO; import baby.mumu.authentication.domain.permission.Permission; +import baby.mumu.authentication.infrastructure.permission.gatewayimpl.cache.po.PermissionRedisPO; import baby.mumu.authentication.infrastructure.permission.gatewayimpl.database.PermissionArchivedRepository; import baby.mumu.authentication.infrastructure.permission.gatewayimpl.database.PermissionRepository; import baby.mumu.authentication.infrastructure.permission.gatewayimpl.database.po.PermissionArchivedPO; import baby.mumu.authentication.infrastructure.permission.gatewayimpl.database.po.PermissionPO; -import baby.mumu.authentication.infrastructure.permission.gatewayimpl.redis.po.PermissionRedisPO; import baby.mumu.authentication.infrastructure.relations.database.PermissionPathPO; import baby.mumu.authentication.infrastructure.relations.database.PermissionPathRepository; import baby.mumu.basis.exception.MuMuException; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/convertor/PermissionMapper.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/convertor/PermissionMapper.java index adf483feb..75a667ad8 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/convertor/PermissionMapper.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/convertor/PermissionMapper.java @@ -36,9 +36,9 @@ import baby.mumu.authentication.client.dto.PermissionIncludePathDownloadAllDTO; import baby.mumu.authentication.client.dto.PermissionIncludePathDownloadAllDTO.PermissionIncludePathDTO; import baby.mumu.authentication.domain.permission.Permission; +import baby.mumu.authentication.infrastructure.permission.gatewayimpl.cache.po.PermissionRedisPO; import baby.mumu.authentication.infrastructure.permission.gatewayimpl.database.po.PermissionArchivedPO; import baby.mumu.authentication.infrastructure.permission.gatewayimpl.database.po.PermissionPO; -import baby.mumu.authentication.infrastructure.permission.gatewayimpl.redis.po.PermissionRedisPO; import baby.mumu.authentication.infrastructure.relations.database.PermissionPathPOId; import baby.mumu.basis.mappers.DataTransferObjectMapper; import baby.mumu.basis.mappers.GrpcMapper; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/PermissionGatewayImpl.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/PermissionGatewayImpl.java index 763b5f294..e3783bcb4 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/PermissionGatewayImpl.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/PermissionGatewayImpl.java @@ -20,11 +20,11 @@ import baby.mumu.authentication.domain.role.Role; import baby.mumu.authentication.domain.role.gateway.RoleGateway; import baby.mumu.authentication.infrastructure.permission.convertor.PermissionConvertor; +import baby.mumu.authentication.infrastructure.permission.gatewayimpl.cache.PermissionRedisRepository; import baby.mumu.authentication.infrastructure.permission.gatewayimpl.database.PermissionArchivedRepository; import baby.mumu.authentication.infrastructure.permission.gatewayimpl.database.PermissionRepository; import baby.mumu.authentication.infrastructure.permission.gatewayimpl.database.po.PermissionArchivedPO; import baby.mumu.authentication.infrastructure.permission.gatewayimpl.database.po.PermissionPO; -import baby.mumu.authentication.infrastructure.permission.gatewayimpl.redis.PermissionRedisRepository; import baby.mumu.authentication.infrastructure.relations.database.PermissionPathPO; import baby.mumu.authentication.infrastructure.relations.database.PermissionPathPOId; import baby.mumu.authentication.infrastructure.relations.database.PermissionPathRepository; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/redis/PermissionRedisRepository.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/cache/PermissionRedisRepository.java similarity index 95% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/redis/PermissionRedisRepository.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/cache/PermissionRedisRepository.java index af9a439fe..17eb82c57 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/redis/PermissionRedisRepository.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/cache/PermissionRedisRepository.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.permission.gatewayimpl.redis; +package baby.mumu.authentication.infrastructure.permission.gatewayimpl.cache; -import baby.mumu.authentication.infrastructure.permission.gatewayimpl.redis.po.PermissionRedisPO; +import baby.mumu.authentication.infrastructure.permission.gatewayimpl.cache.po.PermissionRedisPO; import com.redis.om.spring.repository.RedisDocumentRepository; import java.util.Optional; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/redis/po/PermissionRedisPO.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/cache/po/PermissionRedisPO.java similarity index 99% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/redis/po/PermissionRedisPO.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/cache/po/PermissionRedisPO.java index 5aeb7daa8..104fceca1 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/redis/po/PermissionRedisPO.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/permission/gatewayimpl/cache/po/PermissionRedisPO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.permission.gatewayimpl.redis.po; +package baby.mumu.authentication.infrastructure.permission.gatewayimpl.cache.po; import baby.mumu.basis.enums.CacheLevelEnum; import baby.mumu.basis.po.jpa.JpaRedisBasisArchivablePersistentObject; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/redis/AccountRoleRedisPO.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/cache/AccountRoleRedisPO.java similarity index 96% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/redis/AccountRoleRedisPO.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/cache/AccountRoleRedisPO.java index 02501ca23..14eea5fb2 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/redis/AccountRoleRedisPO.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/cache/AccountRoleRedisPO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.relations.redis; +package baby.mumu.authentication.infrastructure.relations.cache; import baby.mumu.basis.enums.CacheLevelEnum; import baby.mumu.basis.po.jpa.JpaRedisBasisDefaultPersistentObject; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/redis/AccountRoleRedisRepository.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/cache/AccountRoleRedisRepository.java similarity index 93% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/redis/AccountRoleRedisRepository.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/cache/AccountRoleRedisRepository.java index c58c9e381..fb1267dd0 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/redis/AccountRoleRedisRepository.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/cache/AccountRoleRedisRepository.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.relations.redis; +package baby.mumu.authentication.infrastructure.relations.cache; import com.redis.om.spring.repository.RedisDocumentRepository; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/redis/RolePermissionRedisPO.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/cache/RolePermissionRedisPO.java similarity index 96% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/redis/RolePermissionRedisPO.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/cache/RolePermissionRedisPO.java index 29c470630..ca3bff3af 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/redis/RolePermissionRedisPO.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/cache/RolePermissionRedisPO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.relations.redis; +package baby.mumu.authentication.infrastructure.relations.cache; import baby.mumu.basis.enums.CacheLevelEnum; import baby.mumu.basis.po.jpa.JpaRedisBasisDefaultPersistentObject; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/redis/RolePermissionRedisRepository.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/cache/RolePermissionRedisRepository.java similarity index 93% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/redis/RolePermissionRedisRepository.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/cache/RolePermissionRedisRepository.java index 6a3d40f31..ae6ca00b7 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/redis/RolePermissionRedisRepository.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/relations/cache/RolePermissionRedisRepository.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.relations.redis; +package baby.mumu.authentication.infrastructure.relations.cache; import com.redis.om.spring.repository.RedisDocumentRepository; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/convertor/RoleConvertor.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/convertor/RoleConvertor.java index d118eb4f7..6684a7181 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/convertor/RoleConvertor.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/convertor/RoleConvertor.java @@ -35,9 +35,11 @@ import baby.mumu.authentication.domain.permission.Permission; import baby.mumu.authentication.domain.role.Role; import baby.mumu.authentication.infrastructure.permission.convertor.PermissionConvertor; +import baby.mumu.authentication.infrastructure.permission.gatewayimpl.cache.PermissionRedisRepository; +import baby.mumu.authentication.infrastructure.permission.gatewayimpl.cache.po.PermissionRedisPO; import baby.mumu.authentication.infrastructure.permission.gatewayimpl.database.PermissionRepository; -import baby.mumu.authentication.infrastructure.permission.gatewayimpl.redis.PermissionRedisRepository; -import baby.mumu.authentication.infrastructure.permission.gatewayimpl.redis.po.PermissionRedisPO; +import baby.mumu.authentication.infrastructure.relations.cache.RolePermissionRedisPO; +import baby.mumu.authentication.infrastructure.relations.cache.RolePermissionRedisRepository; import baby.mumu.authentication.infrastructure.relations.database.PermissionPathPO; import baby.mumu.authentication.infrastructure.relations.database.PermissionPathPOId; import baby.mumu.authentication.infrastructure.relations.database.PermissionPathRepository; @@ -45,13 +47,11 @@ import baby.mumu.authentication.infrastructure.relations.database.RolePermissionPO; import baby.mumu.authentication.infrastructure.relations.database.RolePermissionPOId; import baby.mumu.authentication.infrastructure.relations.database.RolePermissionRepository; -import baby.mumu.authentication.infrastructure.relations.redis.RolePermissionRedisPO; -import baby.mumu.authentication.infrastructure.relations.redis.RolePermissionRedisRepository; +import baby.mumu.authentication.infrastructure.role.gatewayimpl.cache.po.RoleRedisPO; import baby.mumu.authentication.infrastructure.role.gatewayimpl.database.RoleArchivedRepository; import baby.mumu.authentication.infrastructure.role.gatewayimpl.database.RoleRepository; import baby.mumu.authentication.infrastructure.role.gatewayimpl.database.po.RoleArchivedPO; import baby.mumu.authentication.infrastructure.role.gatewayimpl.database.po.RolePO; -import baby.mumu.authentication.infrastructure.role.gatewayimpl.redis.po.RoleRedisPO; import baby.mumu.basis.exception.MuMuException; import baby.mumu.basis.response.ResponseCode; import baby.mumu.extension.translation.SimpleTextTranslation; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/convertor/RoleMapper.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/convertor/RoleMapper.java index d7b672af2..f6f5a3f38 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/convertor/RoleMapper.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/convertor/RoleMapper.java @@ -35,9 +35,9 @@ import baby.mumu.authentication.client.dto.RoleFindDirectDTO; import baby.mumu.authentication.client.dto.RoleFindRootDTO; import baby.mumu.authentication.domain.role.Role; +import baby.mumu.authentication.infrastructure.role.gatewayimpl.cache.po.RoleRedisPO; import baby.mumu.authentication.infrastructure.role.gatewayimpl.database.po.RoleArchivedPO; import baby.mumu.authentication.infrastructure.role.gatewayimpl.database.po.RolePO; -import baby.mumu.authentication.infrastructure.role.gatewayimpl.redis.po.RoleRedisPO; import baby.mumu.basis.mappers.DataTransferObjectMapper; import baby.mumu.basis.mappers.GrpcMapper; import org.apiguardian.api.API; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/RoleGatewayImpl.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/RoleGatewayImpl.java index cb2d934fb..f210bcd91 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/RoleGatewayImpl.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/RoleGatewayImpl.java @@ -20,18 +20,18 @@ import baby.mumu.authentication.domain.permission.Permission; import baby.mumu.authentication.domain.role.Role; import baby.mumu.authentication.domain.role.gateway.RoleGateway; +import baby.mumu.authentication.infrastructure.relations.cache.RolePermissionRedisRepository; import baby.mumu.authentication.infrastructure.relations.database.RolePathPO; import baby.mumu.authentication.infrastructure.relations.database.RolePathPOId; import baby.mumu.authentication.infrastructure.relations.database.RolePathRepository; import baby.mumu.authentication.infrastructure.relations.database.RolePermissionPO; import baby.mumu.authentication.infrastructure.relations.database.RolePermissionRepository; -import baby.mumu.authentication.infrastructure.relations.redis.RolePermissionRedisRepository; import baby.mumu.authentication.infrastructure.role.convertor.RoleConvertor; +import baby.mumu.authentication.infrastructure.role.gatewayimpl.cache.RoleRedisRepository; import baby.mumu.authentication.infrastructure.role.gatewayimpl.database.RoleArchivedRepository; import baby.mumu.authentication.infrastructure.role.gatewayimpl.database.RoleRepository; import baby.mumu.authentication.infrastructure.role.gatewayimpl.database.po.RoleArchivedPO; import baby.mumu.authentication.infrastructure.role.gatewayimpl.database.po.RolePO; -import baby.mumu.authentication.infrastructure.role.gatewayimpl.redis.RoleRedisRepository; import baby.mumu.basis.annotations.DangerousOperation; import baby.mumu.basis.exception.MuMuException; import baby.mumu.basis.response.ResponseCode; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/redis/RoleRedisRepository.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/cache/RoleRedisRepository.java similarity index 97% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/redis/RoleRedisRepository.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/cache/RoleRedisRepository.java index 7b432687c..a40f1f3f0 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/redis/RoleRedisRepository.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/cache/RoleRedisRepository.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.role.gatewayimpl.redis; +package baby.mumu.authentication.infrastructure.role.gatewayimpl.cache; -import baby.mumu.authentication.infrastructure.role.gatewayimpl.redis.po.RoleRedisPO; +import baby.mumu.authentication.infrastructure.role.gatewayimpl.cache.po.RoleRedisPO; import com.redis.om.spring.repository.RedisDocumentRepository; import java.util.List; import java.util.Optional; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/redis/po/RoleRedisPO.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/cache/po/RoleRedisPO.java similarity index 99% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/redis/po/RoleRedisPO.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/cache/po/RoleRedisPO.java index aaff7d96b..d97086a99 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/redis/po/RoleRedisPO.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/role/gatewayimpl/cache/po/RoleRedisPO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.role.gatewayimpl.redis.po; +package baby.mumu.authentication.infrastructure.role.gatewayimpl.cache.po; import baby.mumu.basis.enums.CacheLevelEnum; import baby.mumu.basis.po.jpa.JpaRedisBasisArchivablePersistentObject; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/TokenGatewayImpl.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/TokenGatewayImpl.java index 46defb287..dad1d4d18 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/TokenGatewayImpl.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/TokenGatewayImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2024, the original author or authors. + * Copyright (c) 2024-2025, the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,9 +16,9 @@ package baby.mumu.authentication.infrastructure.token.gatewayimpl; import baby.mumu.authentication.domain.token.gateway.TokenGateway; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.AuthorizeCodeTokenRepository; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.ClientTokenRepository; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.PasswordTokenRepository; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.AuthorizeCodeTokenRepository; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.ClientTokenRepository; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.PasswordTokenRepository; import baby.mumu.basis.enums.OAuth2Enum; import baby.mumu.basis.enums.TokenClaimsEnum; import io.micrometer.observation.annotation.Observed; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/AuthorizeCodeTokenRepository.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/AuthorizeCodeTokenRepository.java similarity index 95% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/AuthorizeCodeTokenRepository.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/AuthorizeCodeTokenRepository.java index a37c1ce56..01642ffeb 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/AuthorizeCodeTokenRepository.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/AuthorizeCodeTokenRepository.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.token.gatewayimpl.redis; +package baby.mumu.authentication.infrastructure.token.gatewayimpl.cache; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.po.AuthorizeCodeTokenRedisPO; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.po.AuthorizeCodeTokenRedisPO; import com.redis.om.spring.repository.RedisDocumentRepository; /** diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/ClientTokenRepository.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/ClientTokenRepository.java similarity index 96% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/ClientTokenRepository.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/ClientTokenRepository.java index e6e834282..c97beba84 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/ClientTokenRepository.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/ClientTokenRepository.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.token.gatewayimpl.redis; +package baby.mumu.authentication.infrastructure.token.gatewayimpl.cache; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.po.ClientTokenRedisPO; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.po.ClientTokenRedisPO; import com.redis.om.spring.repository.RedisDocumentRepository; /** diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/OidcIdTokenRepository.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/OidcIdTokenRepository.java similarity index 96% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/OidcIdTokenRepository.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/OidcIdTokenRepository.java index c571210cd..6b6fb36de 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/OidcIdTokenRepository.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/OidcIdTokenRepository.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.token.gatewayimpl.redis; +package baby.mumu.authentication.infrastructure.token.gatewayimpl.cache; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.po.OidcIdTokenRedisPO; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.po.OidcIdTokenRedisPO; import com.redis.om.spring.repository.RedisDocumentRepository; /** diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/PasswordTokenRepository.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/PasswordTokenRepository.java similarity index 96% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/PasswordTokenRepository.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/PasswordTokenRepository.java index 3bf38c9f3..392c580f9 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/PasswordTokenRepository.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/PasswordTokenRepository.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.token.gatewayimpl.redis; +package baby.mumu.authentication.infrastructure.token.gatewayimpl.cache; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.po.PasswordTokenRedisPO; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.po.PasswordTokenRedisPO; import com.redis.om.spring.repository.RedisDocumentRepository; /** diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/po/AuthorizeCodeTokenRedisPO.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/po/AuthorizeCodeTokenRedisPO.java similarity index 99% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/po/AuthorizeCodeTokenRedisPO.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/po/AuthorizeCodeTokenRedisPO.java index 6f2bdb5fa..79a8a92f6 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/po/AuthorizeCodeTokenRedisPO.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/po/AuthorizeCodeTokenRedisPO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.po; +package baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.po; import baby.mumu.basis.enums.CacheLevelEnum; import com.redis.om.spring.annotations.Document; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/po/ClientTokenRedisPO.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/po/ClientTokenRedisPO.java similarity index 99% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/po/ClientTokenRedisPO.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/po/ClientTokenRedisPO.java index 17508e569..8d4764dce 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/po/ClientTokenRedisPO.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/po/ClientTokenRedisPO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.po; +package baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.po; import baby.mumu.basis.enums.CacheLevelEnum; import com.redis.om.spring.annotations.Document; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/po/OidcIdTokenRedisPO.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/po/OidcIdTokenRedisPO.java similarity index 99% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/po/OidcIdTokenRedisPO.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/po/OidcIdTokenRedisPO.java index ff2a65fd6..009c52ca9 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/po/OidcIdTokenRedisPO.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/po/OidcIdTokenRedisPO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.po; +package baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.po; import baby.mumu.basis.enums.CacheLevelEnum; import com.redis.om.spring.annotations.Document; diff --git a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/po/PasswordTokenRedisPO.java b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/po/PasswordTokenRedisPO.java similarity index 99% rename from mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/po/PasswordTokenRedisPO.java rename to mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/po/PasswordTokenRedisPO.java index 357a406d3..76fd85cfd 100644 --- a/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/redis/po/PasswordTokenRedisPO.java +++ b/mumu-services/mumu-authentication/authentication-infrastructure/src/main/java/baby/mumu/authentication/infrastructure/token/gatewayimpl/cache/po/PasswordTokenRedisPO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.po; +package baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.po; import baby.mumu.basis.enums.CacheLevelEnum; import com.redis.om.spring.annotations.Document; diff --git a/mumu-services/mumu-authentication/src/main/java/baby/mumu/authentication/MuMuAuthenticationApplication.java b/mumu-services/mumu-authentication/src/main/java/baby/mumu/authentication/MuMuAuthenticationApplication.java index 6203b69f7..4ebb62cde 100644 --- a/mumu-services/mumu-authentication/src/main/java/baby/mumu/authentication/MuMuAuthenticationApplication.java +++ b/mumu-services/mumu-authentication/src/main/java/baby/mumu/authentication/MuMuAuthenticationApplication.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2024, the original author or authors. + * Copyright (c) 2024-2025, the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,8 +43,8 @@ @EnableConfigurationProperties @EnableJpaAuditing(auditorAwareRef = BeanNameConstants.MUMU_JPA_AUDITOR_AWARE) @EnableMongoAuditing(auditorAwareRef = BeanNameConstants.MUMU_JPA_MONGODB_AUDITOR_AWARE) -@EnableRedisDocumentRepositories(basePackages = "baby.mumu.authentication.infrastructure.**.redis.**") -@EnableMongoRepositories(basePackages = "baby.mumu.authentication.infrastructure.**.mongodb.**") +@EnableRedisDocumentRepositories(basePackages = "baby.mumu.authentication.infrastructure.**.cache.**") +@EnableMongoRepositories(basePackages = "baby.mumu.authentication.infrastructure.**.document.**") @EnableMethodSecurity @EnableSpringDataWebSupport(pageSerializationMode = VIA_DTO) @EnableTransactionManagement diff --git a/mumu-services/mumu-authentication/src/main/java/baby/mumu/authentication/configuration/AuthorizationConfiguration.java b/mumu-services/mumu-authentication/src/main/java/baby/mumu/authentication/configuration/AuthorizationConfiguration.java index 20e85e396..40be4b2a8 100644 --- a/mumu-services/mumu-authentication/src/main/java/baby/mumu/authentication/configuration/AuthorizationConfiguration.java +++ b/mumu-services/mumu-authentication/src/main/java/baby/mumu/authentication/configuration/AuthorizationConfiguration.java @@ -27,12 +27,12 @@ import baby.mumu.authentication.infrastructure.permission.gatewayimpl.database.po.PermissionPO; import baby.mumu.authentication.infrastructure.role.convertor.RoleConvertor; import baby.mumu.authentication.infrastructure.role.gatewayimpl.database.RoleRepository; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.AuthorizeCodeTokenRepository; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.ClientTokenRepository; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.OidcIdTokenRepository; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.PasswordTokenRepository; import baby.mumu.authentication.infrastructure.token.gatewayimpl.database.Oauth2AuthenticationRepository; import baby.mumu.authentication.infrastructure.token.gatewayimpl.database.po.Oauth2AuthorizationDO; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.AuthorizeCodeTokenRepository; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.ClientTokenRepository; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.OidcIdTokenRepository; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.PasswordTokenRepository; import baby.mumu.basis.constants.CommonConstants; import baby.mumu.basis.enums.OAuth2Enum; import baby.mumu.basis.enums.TokenClaimsEnum; diff --git a/mumu-services/mumu-authentication/src/main/java/baby/mumu/authentication/configuration/MuMuJwtGenerator.java b/mumu-services/mumu-authentication/src/main/java/baby/mumu/authentication/configuration/MuMuJwtGenerator.java index a5f2f761f..9d46fc760 100644 --- a/mumu-services/mumu-authentication/src/main/java/baby/mumu/authentication/configuration/MuMuJwtGenerator.java +++ b/mumu-services/mumu-authentication/src/main/java/baby/mumu/authentication/configuration/MuMuJwtGenerator.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2024, the original author or authors. + * Copyright (c) 2024-2025, the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,14 +18,14 @@ import static org.springframework.security.oauth2.core.AuthorizationGrantType.AUTHORIZATION_CODE; import baby.mumu.authentication.domain.account.Account; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.AuthorizeCodeTokenRepository; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.ClientTokenRepository; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.OidcIdTokenRepository; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.PasswordTokenRepository; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.po.AuthorizeCodeTokenRedisPO; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.po.ClientTokenRedisPO; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.po.OidcIdTokenRedisPO; -import baby.mumu.authentication.infrastructure.token.gatewayimpl.redis.po.PasswordTokenRedisPO; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.AuthorizeCodeTokenRepository; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.ClientTokenRepository; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.OidcIdTokenRepository; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.PasswordTokenRepository; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.po.AuthorizeCodeTokenRedisPO; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.po.ClientTokenRedisPO; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.po.OidcIdTokenRedisPO; +import baby.mumu.authentication.infrastructure.token.gatewayimpl.cache.po.PasswordTokenRedisPO; import baby.mumu.basis.enums.OAuth2Enum; import baby.mumu.basis.enums.TokenClaimsEnum; import java.time.Duration; diff --git a/mumu-services/mumu-message/src/main/java/baby/mumu/message/MuMuMessageApplication.java b/mumu-services/mumu-message/src/main/java/baby/mumu/message/MuMuMessageApplication.java index 90e43987d..f74c8b12f 100644 --- a/mumu-services/mumu-message/src/main/java/baby/mumu/message/MuMuMessageApplication.java +++ b/mumu-services/mumu-message/src/main/java/baby/mumu/message/MuMuMessageApplication.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2024, the original author or authors. + * Copyright (c) 2024-2025, the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ @SpringBootApplication @EnableConfigurationProperties @EnableJpaAuditing(auditorAwareRef = BeanNameConstants.MUMU_JPA_AUDITOR_AWARE) -@EnableRedisDocumentRepositories(basePackages = "baby.mumu.message.infrastructure.**.redis.**") +@EnableRedisDocumentRepositories(basePackages = "baby.mumu.message.infrastructure.**.cache.**") @EnableMethodSecurity @EnableSpringDataWebSupport(pageSerializationMode = VIA_DTO) @EnableTransactionManagement diff --git a/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/convertor/CaptchaConvertor.java b/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/convertor/CaptchaConvertor.java index 4249eb52c..c2b29b479 100644 --- a/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/convertor/CaptchaConvertor.java +++ b/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/convertor/CaptchaConvertor.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2024, the original author or authors. + * Copyright (c) 2024-2025, the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ import baby.mumu.unique.client.cmds.SimpleCaptchaVerifyCmd; import baby.mumu.unique.client.dto.SimpleCaptchaGeneratedDTO; import baby.mumu.unique.domain.captcha.Captcha.SimpleCaptcha; -import baby.mumu.unique.infrastructure.captcha.gatewayimpl.redis.po.SimpleCaptchaPO; +import baby.mumu.unique.infrastructure.captcha.gatewayimpl.cache.po.SimpleCaptchaPO; import java.util.Optional; import org.apiguardian.api.API; import org.apiguardian.api.API.Status; diff --git a/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/convertor/CaptchaMapper.java b/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/convertor/CaptchaMapper.java index fb7d80305..53803bc09 100644 --- a/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/convertor/CaptchaMapper.java +++ b/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/convertor/CaptchaMapper.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2024, the original author or authors. + * Copyright (c) 2024-2025, the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ import baby.mumu.unique.client.cmds.SimpleCaptchaVerifyCmd; import baby.mumu.unique.client.dto.SimpleCaptchaGeneratedDTO; import baby.mumu.unique.domain.captcha.Captcha.SimpleCaptcha; -import baby.mumu.unique.infrastructure.captcha.gatewayimpl.redis.po.SimpleCaptchaPO; +import baby.mumu.unique.infrastructure.captcha.gatewayimpl.cache.po.SimpleCaptchaPO; import org.apiguardian.api.API; import org.apiguardian.api.API.Status; import org.mapstruct.Mapper; diff --git a/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/CaptchaGatewayImpl.java b/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/CaptchaGatewayImpl.java index 09fba181b..4720c691a 100644 --- a/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/CaptchaGatewayImpl.java +++ b/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/CaptchaGatewayImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024-2024, the original author or authors. + * Copyright (c) 2024-2025, the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,8 +21,8 @@ import baby.mumu.unique.domain.captcha.gateway.CaptchaGateway; import baby.mumu.unique.domain.pk.gateway.PrimaryKeyGateway; import baby.mumu.unique.infrastructure.captcha.convertor.CaptchaConvertor; -import baby.mumu.unique.infrastructure.captcha.gatewayimpl.redis.SimpleCaptchaRepository; -import baby.mumu.unique.infrastructure.captcha.gatewayimpl.redis.po.SimpleCaptchaPO; +import baby.mumu.unique.infrastructure.captcha.gatewayimpl.cache.SimpleCaptchaRepository; +import baby.mumu.unique.infrastructure.captcha.gatewayimpl.cache.po.SimpleCaptchaPO; import java.util.Optional; import org.apache.commons.lang3.RandomStringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/redis/SimpleCaptchaRepository.java b/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/cache/SimpleCaptchaRepository.java similarity index 87% rename from mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/redis/SimpleCaptchaRepository.java rename to mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/cache/SimpleCaptchaRepository.java index 11d114f23..45e4c475d 100644 --- a/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/redis/SimpleCaptchaRepository.java +++ b/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/cache/SimpleCaptchaRepository.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.unique.infrastructure.captcha.gatewayimpl.redis; +package baby.mumu.unique.infrastructure.captcha.gatewayimpl.cache; -import baby.mumu.unique.infrastructure.captcha.gatewayimpl.redis.po.SimpleCaptchaPO; +import baby.mumu.unique.infrastructure.captcha.gatewayimpl.cache.po.SimpleCaptchaPO; import com.redis.om.spring.repository.RedisDocumentRepository; /** diff --git a/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/redis/po/SimpleCaptchaPO.java b/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/cache/po/SimpleCaptchaPO.java similarity index 95% rename from mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/redis/po/SimpleCaptchaPO.java rename to mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/cache/po/SimpleCaptchaPO.java index d1a406eff..ff3933bec 100644 --- a/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/redis/po/SimpleCaptchaPO.java +++ b/mumu-services/mumu-unique/unique-infrastructure/src/main/java/baby/mumu/unique/infrastructure/captcha/gatewayimpl/cache/po/SimpleCaptchaPO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package baby.mumu.unique.infrastructure.captcha.gatewayimpl.redis.po; +package baby.mumu.unique.infrastructure.captcha.gatewayimpl.cache.po; import baby.mumu.basis.enums.CacheLevelEnum; import com.redis.om.spring.annotations.Document;