Merge remote-tracking branch 'base-version/main' into dev

# Conflicts:
#	zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/controller/admin/user/vo/profile/UserProfileUpdateReqVO.java
This commit is contained in:
chenbowen
2025-10-27 10:01:15 +08:00
15 changed files with 109 additions and 23 deletions

View File

@@ -43,6 +43,11 @@ public interface FileApi {
CommonResult<FileRespDTO> getFile(@Parameter(description = "文件编号", required = true, example = "1024")
@RequestParam("fileId") @NotNull(message = "文件编号不能为空") Long fileId);
@GetMapping(PREFIX + "/info")
@Operation(summary = "根据文件编号获取文件信息")
CommonResult<FileRespDTO> getFileInfo(@Parameter(description = "文件编号", required = true, example = "1024")
@RequestParam("fileId") @NotNull(message = "文件编号不能为空") Long fileId);
/**
* 删除文件
*

View File

@@ -16,6 +16,15 @@ public class FileRespDTO {
@Schema(description = "文件目录", example = "xxx")
private String directory;
@Schema(description = "文件访问地址", example = "https://www.iocoder.cn/xxx.png")
private String url;
@Schema(description = "文件预览地址", example = "https://www.iocoder.cn/preview/xxx")
private String previewUrl;
@Schema(description = "是否加密", example = "false")
private Boolean encrypted;
@Schema(description = "文件的 MIME 类型", example = "image/png")
private String type;