web-文件接口

This commit is contained in:
2025-10-16 10:45:44 +08:00
parent 6858899c4c
commit 40ef609ea3
191 changed files with 2379 additions and 1593 deletions

View File

@@ -1,6 +1,6 @@
/**
* @description 智能体相关类型定义
* @author system
* @author yslg
* @since 2025-10-15
*/

View File

@@ -0,0 +1,94 @@
/**
* @description 文件相关类型定义
* @author yslg
* @since 2025-10-16
*/
import { BaseDTO } from '../base';
/**
* 系统文件
*/
export interface SysFile extends BaseDTO {
/** 文件ID */
fileID?: string;
/** 文件名 */
fileName?: string;
/** 原始文件名 */
originalName?: string;
/** 文件路径 */
filePath?: string;
/** 访问URL */
fileUrl?: string;
/** 文件大小(字节) */
fileSize?: number;
/** 文件类型 */
fileType?: string;
/** MIME类型 */
mimeType?: string;
/** 存储类型local-本地存储、minio-MinIO存储、oss-阿里云OSS等 */
storageType?: string;
/** 所属模块 */
module?: string;
/** 业务ID */
businessID?: string;
/** 上传者 */
uploader?: string;
}
/**
* 文件上传参数
*/
export interface FileUploadParam {
/** 文件对象 */
file: File;
/** 所属模块 */
module?: string;
/** 业务ID */
businessId?: string;
/** 上传者用户ID */
uploader?: string;
}
/**
* 批量文件上传参数
*/
export interface BatchFileUploadParam {
/** 文件对象数组 */
files: File[];
/** 所属模块 */
module?: string;
/** 业务ID */
businessId?: string;
/** 上传者用户ID */
uploader?: string;
}
/**
* 文件查询参数
*/
export interface FileQueryParam {
/** 所属模块 */
module?: string;
/** 业务ID */
businessId?: string;
/** 上传者 */
uploader?: string;
/** 文件类型 */
fileType?: string;
/** 存储类型 */
storageType?: string;
}
/**
* 存储类型枚举
*/
export enum StorageType {
/** 本地存储 */
LOCAL = 'local',
/** MinIO存储 */
MINIO = 'minio',
/** 阿里云OSS */
OSS = 'oss'
}

View File

@@ -28,6 +28,9 @@ export * from './auth';
// 资源相关
export * from './resource';
// 文件相关
export * from './file';
// 学习相关
export * from './study';

View File

@@ -1,6 +1,6 @@
/**
* @description 资源相关类型定义
* @author system
* @author yslg
* @since 2025-10-15
*/

View File

@@ -1,6 +1,6 @@
/**
* @description 学习相关类型定义
* @author system
* @author yslg
* @since 2025-10-15
*/

View File

@@ -1,6 +1,6 @@
/**
* @description 用户中心相关类型定义
* @author system
* @author yslg
* @since 2025-10-15
*/