refactor(system): 补齐平台 OSS/安全配置移包至 infra/security 子包

将 PlatformOss*、PlatformSecurity* 及安全 Result 从扁平 config 包迁入 config.infra / config.security,并更新 IAM/Notify 等消费方 import。
This commit is contained in:
DaxPay Dev
2026-07-10 15:22:04 +08:00
parent 6ec1394005
commit 0b7fea93cd
19 changed files with 39 additions and 37 deletions

View File

@@ -4,7 +4,7 @@ import cn.daxpay.open.platform.system.entity.config.platform.security.PlatformLo
import cn.daxpay.open.platform.system.entity.config.platform.security.PlatformPasswordPolicyConfig;
import cn.daxpay.open.platform.system.entity.config.platform.security.PlatformSessionManagementConfig;
import cn.daxpay.open.platform.system.entity.config.platform.security.PlatformTwoFactorAuthConfig;
import cn.daxpay.open.platform.system.service.config.PlatformSecurityConfigService;
import cn.daxpay.open.platform.system.service.config.security.PlatformSecurityConfigService;
import cn.hutool.core.util.StrUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

View File

@@ -2,7 +2,7 @@ package cn.daxpay.open.platform.iam.enums;
import java.util.Arrays;
import cn.daxpay.open.platform.system.entity.config.platform.PlatformUrlConfig;
import cn.daxpay.open.platform.system.entity.config.platform.infra.PlatformUrlConfig;
import lombok.AllArgsConstructor;
import lombok.Getter;

View File

@@ -3,9 +3,9 @@ package cn.daxpay.open.platform.notify.controller.wechat;
import cn.daxpay.open.platform.core.annotation.PermCode;
import cn.daxpay.open.platform.core.rest.Res;
import cn.daxpay.open.platform.core.rest.result.Result;
import cn.daxpay.open.platform.system.param.config.PlatformWechatNotifyConfigParam;
import cn.daxpay.open.platform.system.result.config.platform.PlatformWechatNotifyConfigResult;
import cn.daxpay.open.platform.system.service.config.PlatformWechatNotifyConfigService;
import cn.daxpay.open.platform.system.param.config.notify.PlatformWechatNotifyConfigParam;
import cn.daxpay.open.platform.system.result.config.notify.PlatformWechatNotifyConfigResult;
import cn.daxpay.open.platform.system.service.config.notify.PlatformWechatNotifyConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;

View File

@@ -11,7 +11,7 @@ import cn.daxpay.open.platform.notify.param.wechat.WechatMessageQuery;
import cn.daxpay.open.platform.notify.result.wechat.WechatMessageRecordResult;
import cn.daxpay.open.platform.notify.service.wechat.WechatMessageRecordService;
import cn.daxpay.open.platform.notify.service.wechat.WechatNotifyService;
import cn.daxpay.open.platform.system.service.config.PlatformWechatNotifyConfigService;
import cn.daxpay.open.platform.system.service.config.notify.PlatformWechatNotifyConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.NotNull;

View File

@@ -1,11 +1,11 @@
package cn.daxpay.open.platform.system.controller.config;
package cn.daxpay.open.platform.system.controller.config.infra;
import cn.daxpay.open.platform.core.annotation.PermCode;
import cn.daxpay.open.platform.core.rest.Res;
import cn.daxpay.open.platform.core.rest.result.Result;
import cn.daxpay.open.platform.system.param.config.PlatformOssConfigParam;
import cn.daxpay.open.platform.system.result.config.platform.PlatformOssConfigResult;
import cn.daxpay.open.platform.system.service.config.PlatformOssConfigService;
import cn.daxpay.open.platform.system.param.config.infra.PlatformOssConfigParam;
import cn.daxpay.open.platform.system.result.config.infra.PlatformOssConfigResult;
import cn.daxpay.open.platform.system.service.config.infra.PlatformOssConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;

View File

@@ -1,12 +1,12 @@
package cn.daxpay.open.platform.system.controller.config;
package cn.daxpay.open.platform.system.controller.config.security;
import cn.daxpay.open.platform.core.annotation.IgnoreAuth;
import cn.daxpay.open.platform.core.annotation.PermCode;
import cn.daxpay.open.platform.core.rest.Res;
import cn.daxpay.open.platform.core.rest.result.Result;
import cn.daxpay.open.platform.system.param.config.security.*;
import cn.daxpay.open.platform.system.result.config.platform.*;
import cn.daxpay.open.platform.system.service.config.PlatformSecurityConfigService;
import cn.daxpay.open.platform.system.result.config.security.*;
import cn.daxpay.open.platform.system.service.config.security.PlatformSecurityConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;

View File

@@ -1,8 +1,8 @@
package cn.daxpay.open.platform.system.convert;
package cn.daxpay.open.platform.system.convert.config.infra;
import cn.daxpay.open.platform.system.entity.config.platform.PlatformOssConfig;
import cn.daxpay.open.platform.system.param.config.PlatformOssConfigParam;
import cn.daxpay.open.platform.system.result.config.platform.PlatformOssConfigResult;
import cn.daxpay.open.platform.system.entity.config.platform.infra.PlatformOssConfig;
import cn.daxpay.open.platform.system.param.config.infra.PlatformOssConfigParam;
import cn.daxpay.open.platform.system.result.config.infra.PlatformOssConfigResult;
import org.mapstruct.BeanMapping;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

View File

@@ -1,8 +1,8 @@
package cn.daxpay.open.platform.system.convert;
package cn.daxpay.open.platform.system.convert.config.security;
import cn.daxpay.open.platform.system.entity.config.platform.security.*;
import cn.daxpay.open.platform.system.param.config.security.*;
import cn.daxpay.open.platform.system.result.config.platform.*;
import cn.daxpay.open.platform.system.result.config.security.*;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.factory.Mappers;

View File

@@ -1,4 +1,4 @@
package cn.daxpay.open.platform.system.entity.config.platform;
package cn.daxpay.open.platform.system.entity.config.platform.infra;
import lombok.Data;
import lombok.experimental.Accessors;

View File

@@ -1,4 +1,4 @@
package cn.daxpay.open.platform.system.param.config;
package cn.daxpay.open.platform.system.param.config.infra;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;

View File

@@ -2,8 +2,8 @@ package cn.daxpay.open.platform.system.provider;
import cn.daxpay.open.platform.capability.file.entity.FileStorageConfig;
import cn.daxpay.open.platform.capability.file.provider.OssConfigProvider;
import cn.daxpay.open.platform.system.entity.config.platform.PlatformOssConfig;
import cn.daxpay.open.platform.system.service.config.PlatformOssConfigService;
import cn.daxpay.open.platform.system.entity.config.platform.infra.PlatformOssConfig;
import cn.daxpay.open.platform.system.service.config.infra.PlatformOssConfigService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

View File

@@ -1,4 +1,4 @@
package cn.daxpay.open.platform.system.result.config.platform;
package cn.daxpay.open.platform.system.result.config.infra;
import cn.daxpay.open.platform.common.json.sensitive.SensitiveInfo;
import io.swagger.v3.oas.annotations.media.Schema;

View File

@@ -1,4 +1,4 @@
package cn.daxpay.open.platform.system.result.config.platform;
package cn.daxpay.open.platform.system.result.config.security;
import cn.daxpay.open.platform.core.result.BaseResult;
import io.swagger.v3.oas.annotations.media.Schema;

View File

@@ -1,4 +1,4 @@
package cn.daxpay.open.platform.system.result.config.platform;
package cn.daxpay.open.platform.system.result.config.security;
import cn.daxpay.open.platform.core.result.BaseResult;
import io.swagger.v3.oas.annotations.media.Schema;

View File

@@ -1,4 +1,4 @@
package cn.daxpay.open.platform.system.result.config.platform;
package cn.daxpay.open.platform.system.result.config.security;
import cn.daxpay.open.platform.core.result.BaseResult;
import io.swagger.v3.oas.annotations.media.Schema;

View File

@@ -1,4 +1,4 @@
package cn.daxpay.open.platform.system.result.config.platform;
package cn.daxpay.open.platform.system.result.config.security;
import cn.daxpay.open.platform.core.result.BaseResult;
import io.swagger.v3.oas.annotations.media.Schema;

View File

@@ -1,4 +1,4 @@
package cn.daxpay.open.platform.system.result.config.platform;
package cn.daxpay.open.platform.system.result.config.security;
import cn.daxpay.open.platform.core.result.BaseResult;
import io.swagger.v3.oas.annotations.media.Schema;

View File

@@ -1,10 +1,11 @@
package cn.daxpay.open.platform.system.service.config;
package cn.daxpay.open.platform.system.service.config.infra;
import cn.daxpay.open.platform.system.convert.PlatformOssConfigConvert;
import cn.daxpay.open.platform.system.entity.config.platform.PlatformOssConfig;
import cn.daxpay.open.platform.system.convert.config.infra.PlatformOssConfigConvert;
import cn.daxpay.open.platform.system.entity.config.platform.infra.PlatformOssConfig;
import cn.daxpay.open.platform.system.enums.EncryptPlatformConfigTypeEnum;
import cn.daxpay.open.platform.system.param.config.PlatformOssConfigParam;
import cn.daxpay.open.platform.system.result.config.platform.PlatformOssConfigResult;
import cn.daxpay.open.platform.system.param.config.infra.PlatformOssConfigParam;
import cn.daxpay.open.platform.system.result.config.infra.PlatformOssConfigResult;
import cn.daxpay.open.platform.system.service.config.SystemPlatformEncryptConfigService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

View File

@@ -1,10 +1,11 @@
package cn.daxpay.open.platform.system.service.config;
package cn.daxpay.open.platform.system.service.config.security;
import cn.daxpay.open.platform.system.convert.PlatformSecurityConfigConvert;
import cn.daxpay.open.platform.system.convert.config.security.PlatformSecurityConfigConvert;
import cn.daxpay.open.platform.system.entity.config.platform.security.*;
import cn.daxpay.open.platform.system.enums.PlatformConfigTypeEnum;
import cn.daxpay.open.platform.system.param.config.security.*;
import cn.daxpay.open.platform.system.result.config.platform.*;
import cn.daxpay.open.platform.system.result.config.security.*;
import cn.daxpay.open.platform.system.service.config.SystemPlatformConfigService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;