From 2031f07d44c324bc07af01382a79dac29b32cf26 Mon Sep 17 00:00:00 2001 From: Leo <98382335+gaoziman@users.noreply.github.com> Date: Wed, 9 Jul 2025 10:18:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor(api):=20=E7=A7=BB=E9=99=A4MinIO?= =?UTF-8?q?=E5=AD=98=E5=82=A8=E6=94=AF=E6=8C=81=EF=BC=8C=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=AD=98=E5=82=A8=E7=B1=BB=E5=9E=8B=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 从文件管理API类型定义中移除MinIO存储选项 - 从图片管理API类型定义中移除MinIO存储选项 - 统一存储类型选项为LOCAL和OSS,简化配置复杂度 - 优化类型枚举和选项映射,提高代码可维护性 --- src/service/api/system/file/types.ts | 4 ---- src/service/api/system/picture/types.ts | 2 -- 2 files changed, 6 deletions(-) diff --git a/src/service/api/system/file/types.ts b/src/service/api/system/file/types.ts index 0fee1b7..9f70f5c 100644 --- a/src/service/api/system/file/types.ts +++ b/src/service/api/system/file/types.ts @@ -59,14 +59,12 @@ export interface FileUploadResult { // 文件服务类型枚举 export enum FileServiceType { LOCAL = 'LOCAL', // 本地存储 - MINIO = 'MINIO', // MinIO对象存储 OSS = 'OSS', // 阿里云对象存储 } // 文件服务类型映射(用于数据库存储) export const FileServiceTypeMapping = { LOCAL: '1', - MINIO: '2', OSS: '3', } as const @@ -97,13 +95,11 @@ 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 09329a9..9e59338 100644 --- a/src/service/api/system/picture/types.ts +++ b/src/service/api/system/picture/types.ts @@ -59,7 +59,6 @@ export interface PictureUploadResult { // 图片服务类型枚举 export enum PictureServiceType { LOCAL = '1', // 本地存储 - MINIO = '2', // MinIO对象存储 OSS = '3', // 阿里云对象存储 } @@ -90,6 +89,5 @@ export const PICTURE_TYPE_OPTIONS = [ // 图片服务类型选项 export const PICTURE_SERVICE_OPTIONS = [ { label: '本地存储', value: PictureServiceType.LOCAL }, - { label: 'MinIO存储', value: PictureServiceType.MINIO }, { label: '阿里云OSS', value: PictureServiceType.OSS }, ]