1. 修复非永久地址的改动导致无法正常获取用户头像的 bug
2. 修复代码生成器执行同步时,没有依据导入进行简写匹配转化
This commit is contained in:
@@ -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);
|
||||
|
||||
/**
|
||||
* 删除文件
|
||||
*
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user