feat(types): 增加MinIO存储服务支持

- 在文件管理模块新增MinIO对象存储类型枚举和选项
- 在图片管理模块新增MinIO对象存储类型枚举和选项
- 完善存储服务类型的数据库映射配置
- 为后续MinIO存储功能集成做准备
This commit is contained in:
Leo 2025-09-22 22:57:52 +08:00
parent cb4ebc8c14
commit 0d54a2d119
2 changed files with 6 additions and 0 deletions

View File

@ -59,12 +59,14 @@ export interface FileUploadResult {
// 文件服务类型枚举
export enum FileServiceType {
LOCAL = 'LOCAL', // 本地存储
MINIO = 'MINIO', // MinIO对象存储
OSS = 'OSS', // 阿里云对象存储
}
// 文件服务类型映射(用于数据库存储)
export const FileServiceTypeMapping = {
LOCAL: '1',
MINIO: '2',
OSS: '3',
} as const
@ -95,11 +97,13 @@ export const FILE_TYPE_OPTIONS = [
// 文件服务类型选项
export const FILE_SERVICE_OPTIONS = [
{ label: '本地存储', value: FileServiceType.LOCAL },
{ label: 'MinIO存储', value: FileServiceType.MINIO },
{ label: '阿里云OSS', value: FileServiceType.OSS },
]
// 文件服务类型数据库值选项(用于搜索)
export const FILE_SERVICE_DB_OPTIONS = [
{ label: '本地存储', value: '1' },
{ label: 'MinIO存储', value: '2' },
{ label: '阿里云OSS', value: '3' },
]

View File

@ -59,6 +59,7 @@ export interface PictureUploadResult {
// 图片服务类型枚举
export enum PictureServiceType {
LOCAL = '1', // 本地存储
MINIO = '2', // MinIO对象存储
OSS = '3', // 阿里云对象存储
}
@ -89,5 +90,6 @@ export const PICTURE_TYPE_OPTIONS = [
// 图片服务类型选项
export const PICTURE_SERVICE_OPTIONS = [
{ label: '本地存储', value: PictureServiceType.LOCAL },
{ label: 'MinIO存储', value: PictureServiceType.MINIO },
{ label: '阿里云OSS', value: PictureServiceType.OSS },
]