web-文件接口
This commit is contained in:
@@ -7,7 +7,7 @@ import org.xyzh.common.dto.system.TbSysFile;
|
||||
/**
|
||||
* @description 文件服务接口
|
||||
* @filename FileService.java
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @copyright xyzh
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
@@ -19,7 +19,7 @@ public interface FileService {
|
||||
* @param module 所属模块
|
||||
* @param businessId 业务ID
|
||||
* @return ResultDomain<TbSysFile> 上传结果,包含文件信息
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> uploadFile(MultipartFile file, String module, String businessId);
|
||||
@@ -31,7 +31,7 @@ public interface FileService {
|
||||
* @param businessId 业务ID
|
||||
* @param uploader 上传者用户ID
|
||||
* @return ResultDomain<TbSysFile> 上传结果,包含文件信息
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> uploadFile(MultipartFile file, String module, String businessId, String uploader);
|
||||
@@ -40,7 +40,7 @@ public interface FileService {
|
||||
* @description 下载文件
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<byte[]> 文件字节数组
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<byte[]> downloadFile(String fileId);
|
||||
@@ -49,7 +49,7 @@ public interface FileService {
|
||||
* @description 删除文件(逻辑删除)
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<TbSysFile> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> deleteFile(String fileId);
|
||||
@@ -58,7 +58,7 @@ public interface FileService {
|
||||
* @description 物理删除文件(同时删除存储和数据库记录)
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<TbSysFile> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> deleteFilePhysically(String fileId);
|
||||
@@ -67,7 +67,7 @@ public interface FileService {
|
||||
* @description 根据文件ID查询文件信息
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<TbSysFile> 文件信息
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> getFileById(String fileId);
|
||||
@@ -77,7 +77,7 @@ public interface FileService {
|
||||
* @param module 所属模块
|
||||
* @param businessId 业务ID
|
||||
* @return ResultDomain<TbSysFile> 文件列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> getFilesByBusinessId(String module, String businessId);
|
||||
@@ -86,7 +86,7 @@ public interface FileService {
|
||||
* @description 根据上传者查询文件列表
|
||||
* @param uploader 上传者用户ID
|
||||
* @return ResultDomain<TbSysFile> 文件列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> getFilesByUploader(String uploader);
|
||||
@@ -95,7 +95,7 @@ public interface FileService {
|
||||
* @description 获取文件访问URL
|
||||
* @param fileId 文件ID
|
||||
* @return ResultDomain<String> 文件访问URL
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<String> getFileUrl(String fileId);
|
||||
@@ -107,7 +107,7 @@ public interface FileService {
|
||||
* @param businessId 业务ID
|
||||
* @param uploader 上传者用户ID(可选)
|
||||
* @return ResultDomain<TbSysFile> 上传结果,包含文件信息列表
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> batchUploadFiles(MultipartFile[] files, String module, String businessId, String uploader);
|
||||
@@ -116,7 +116,7 @@ public interface FileService {
|
||||
* @description 批量删除文件(逻辑删除)
|
||||
* @param fileIds 文件ID列表
|
||||
* @return ResultDomain<TbSysFile> 删除结果
|
||||
* @author system
|
||||
* @author yslg
|
||||
* @since 2025-10-16
|
||||
*/
|
||||
ResultDomain<TbSysFile> batchDeleteFiles(String[] fileIds);
|
||||
|
||||
Reference in New Issue
Block a user