From 0d54a2d119e91343f37a792ebd141214d56e7c7e Mon Sep 17 00:00:00 2001 From: Leo <98382335+gaoziman@users.noreply.github.com> Date: Mon, 22 Sep 2025 22:57:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(types):=20=E5=A2=9E=E5=8A=A0MinIO=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E6=9C=8D=E5=8A=A1=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在文件管理模块新增MinIO对象存储类型枚举和选项 - 在图片管理模块新增MinIO对象存储类型枚举和选项 - 完善存储服务类型的数据库映射配置 - 为后续MinIO存储功能集成做准备 --- src/service/api/system/file/types.ts | 4 ++++ src/service/api/system/picture/types.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/service/api/system/file/types.ts b/src/service/api/system/file/types.ts index 9f70f5c..0fee1b7 100644 --- a/src/service/api/system/file/types.ts +++ b/src/service/api/system/file/types.ts @@ -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' }, ] diff --git a/src/service/api/system/picture/types.ts b/src/service/api/system/picture/types.ts index 9e59338..09329a9 100644 --- a/src/service/api/system/picture/types.ts +++ b/src/service/api/system/picture/types.ts @@ -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 }, ]