feat: 对接OSS配置管理

This commit is contained in:
AN
2025-04-27 14:53:55 +08:00
parent 74fcdc4e2c
commit 19fe1b05eb
13 changed files with 738 additions and 7 deletions

View File

@ -642,5 +642,67 @@ declare namespace Api {
/** oss list */
type OssList = Api.Common.PaginatingQueryRecord<Oss>;
/** oss config */
type OssConfig = Common.CommonRecord<{
/** 主键 */
ossConfigId: CommonType.IdType;
/** 租户编号 */
tenantId: CommonType.IdType;
/** 配置名称 */
configKey: string;
/** accessKey */
accessKey: string;
/** 秘钥secretKey */
secretKey: string;
/** 桶名称 */
bucketName: string;
/** 前缀 */
prefix: string;
/** 访问站点 */
endpoint: string;
/** 自定义域名 */
domain: string;
/** 是否httpsY=是,N=否) */
isHttps: string;
/** 域 */
region: string;
/** 桶权限类型 */
accessPolicy: string;
/** 是否默认0=是,1=否) */
status: string;
/** 扩展字段 */
ext1: string;
/** 备注 */
remark: string;
}>;
/** oss config search params */
type OssConfigSearchParams = CommonType.RecordNullable<
Pick<Api.System.OssConfig, 'configKey' | 'bucketName' | 'region' | 'status'> & Api.Common.CommonSearchParams
>;
/** oss config operate params */
type OssConfigOperateParams = CommonType.RecordNullable<
Pick<
Api.System.OssConfig,
| 'ossConfigId'
| 'configKey'
| 'accessKey'
| 'secretKey'
| 'bucketName'
| 'prefix'
| 'endpoint'
| 'domain'
| 'isHttps'
| 'region'
| 'accessPolicy'
| 'status'
| 'remark'
>
>;
/** oss config list */
type OssConfigList = Api.Common.PaginatingQueryRecord<OssConfig>;
}
}

View File

@ -37,6 +37,7 @@ declare module "@elegant-router/types" {
"system_menu": "/system/menu";
"system_notice": "/system/notice";
"system_oss": "/system/oss";
"system_oss-config": "/oss-config";
"system_post": "/system/post";
"system_tenant": "/system/tenant";
"system_user": "/system/user";
@ -117,6 +118,7 @@ declare module "@elegant-router/types" {
| "system_menu"
| "system_notice"
| "system_oss"
| "system_oss-config"
| "system_post"
| "system_tenant"
| "system_user"
@ -192,7 +194,7 @@ declare module "@elegant-router/types" {
component: `view.${K}`;
}
: never;
/**
* the center level route
*/
@ -215,7 +217,7 @@ declare module "@elegant-router/types" {
children: (CenterLevelRoute<GetChildRouteKey<K>> | LastLevelRoute<GetChildRouteKey<K>>)[];
}
: never;
/**
* the custom first level route
*/