修改了文件表结构(删除了文件表中的path字段)
This commit is contained in:
parent
059d1f0418
commit
a859e28480
|
@ -19,7 +19,6 @@ import java.io.Serializable;
|
|||
@Schema(description = "文件添加请求体", requiredProperties = {
|
||||
"name",
|
||||
"type",
|
||||
"path",
|
||||
"size",
|
||||
"fileView",
|
||||
"biz",
|
||||
|
@ -40,13 +39,6 @@ public class FileInfoAddRequest implements Serializable {
|
|||
@Schema(description = "文件类型", example = "png")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 文件路径
|
||||
*/
|
||||
@NotBlank(message = "文件路径不能为空")
|
||||
@Schema(description = "文件路径", example = "user_avatar/file.png")
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* 文件大小(KB)
|
||||
*/
|
||||
|
|
|
@ -18,7 +18,6 @@ import java.io.Serializable;
|
|||
"id",
|
||||
"name",
|
||||
"type",
|
||||
"path",
|
||||
"size",
|
||||
"fileView",
|
||||
"biz",
|
||||
|
@ -46,13 +45,6 @@ public class FileInfoUpdateRequest implements Serializable {
|
|||
@Schema(description = "文件类型", example = "png")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 文件路径
|
||||
*/
|
||||
@NotBlank(message = "文件路径不能为空")
|
||||
@Schema(description = "文件路径", example = "user_avatar/file.png")
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* 文件大小(KB)
|
||||
*/
|
||||
|
|
|
@ -38,11 +38,6 @@ public class FileInfo implements Serializable {
|
|||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 文件路径
|
||||
*/
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* 文件大小(KB)
|
||||
*/
|
||||
|
|
|
@ -32,12 +32,6 @@ public class FileInfoVO implements Serializable {
|
|||
@Schema(description = "文件类型", example = "png")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 文件路径
|
||||
*/
|
||||
@Schema(description = "文件路径", example = "user_avatar/file.png")
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* 文件大小(KB)
|
||||
*/
|
||||
|
|
|
@ -96,7 +96,7 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo>
|
|||
fileInfo = FileInfo.builder()
|
||||
.name(fileName)
|
||||
.type(fileType)
|
||||
.path(filePath)
|
||||
.path(fileName)
|
||||
.size(fileSize)
|
||||
.fileView(view)
|
||||
.biz(biz)
|
||||
|
|
Loading…
Reference in New Issue
Block a user