修改了文件表结构(删除了文件表中的path字段)

This commit is contained in:
chen-xin-zhi 2025-06-03 19:42:11 +08:00
parent 059d1f0418
commit a859e28480
5 changed files with 1 additions and 28 deletions

View File

@ -19,7 +19,6 @@ import java.io.Serializable;
@Schema(description = "文件添加请求体", requiredProperties = { @Schema(description = "文件添加请求体", requiredProperties = {
"name", "name",
"type", "type",
"path",
"size", "size",
"fileView", "fileView",
"biz", "biz",
@ -40,13 +39,6 @@ public class FileInfoAddRequest implements Serializable {
@Schema(description = "文件类型", example = "png") @Schema(description = "文件类型", example = "png")
private String type; private String type;
/**
* 文件路径
*/
@NotBlank(message = "文件路径不能为空")
@Schema(description = "文件路径", example = "user_avatar/file.png")
private String path;
/** /**
* 文件大小(KB) * 文件大小(KB)
*/ */

View File

@ -18,7 +18,6 @@ import java.io.Serializable;
"id", "id",
"name", "name",
"type", "type",
"path",
"size", "size",
"fileView", "fileView",
"biz", "biz",
@ -46,13 +45,6 @@ public class FileInfoUpdateRequest implements Serializable {
@Schema(description = "文件类型", example = "png") @Schema(description = "文件类型", example = "png")
private String type; private String type;
/**
* 文件路径
*/
@NotBlank(message = "文件路径不能为空")
@Schema(description = "文件路径", example = "user_avatar/file.png")
private String path;
/** /**
* 文件大小(KB) * 文件大小(KB)
*/ */

View File

@ -38,11 +38,6 @@ public class FileInfo implements Serializable {
*/ */
private String type; private String type;
/**
* 文件路径
*/
private String path;
/** /**
* 文件大小(KB) * 文件大小(KB)
*/ */

View File

@ -32,12 +32,6 @@ public class FileInfoVO implements Serializable {
@Schema(description = "文件类型", example = "png") @Schema(description = "文件类型", example = "png")
private String type; private String type;
/**
* 文件路径
*/
@Schema(description = "文件路径", example = "user_avatar/file.png")
private String path;
/** /**
* 文件大小(KB) * 文件大小(KB)
*/ */

View File

@ -96,7 +96,7 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo>
fileInfo = FileInfo.builder() fileInfo = FileInfo.builder()
.name(fileName) .name(fileName)
.type(fileType) .type(fileType)
.path(filePath) .path(fileName)
.size(fileSize) .size(fileSize)
.fileView(view) .fileView(view)
.biz(biz) .biz(biz)