From a859e2848094369f1311b6e223928b8012c61f28 Mon Sep 17 00:00:00 2001 From: chen-xin-zhi <3588068430@qq.com> Date: Tue, 3 Jun 2025 19:42:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=A1=A8=E7=BB=93=E6=9E=84=EF=BC=88=E5=88=A0=E9=99=A4=E4=BA=86?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=A1=A8=E4=B8=AD=E7=9A=84path=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../promotion/model/dto/fileInfo/FileInfoAddRequest.java | 8 -------- .../model/dto/fileInfo/FileInfoUpdateRequest.java | 8 -------- .../com/greenorange/promotion/model/entity/FileInfo.java | 5 ----- .../promotion/model/vo/fileInfo/FileInfoVO.java | 6 ------ .../promotion/service/file/impl/FileInfoServiceImpl.java | 2 +- 5 files changed, 1 insertion(+), 28 deletions(-) diff --git a/src/main/java/com/greenorange/promotion/model/dto/fileInfo/FileInfoAddRequest.java b/src/main/java/com/greenorange/promotion/model/dto/fileInfo/FileInfoAddRequest.java index 57cdc29..686cf07 100644 --- a/src/main/java/com/greenorange/promotion/model/dto/fileInfo/FileInfoAddRequest.java +++ b/src/main/java/com/greenorange/promotion/model/dto/fileInfo/FileInfoAddRequest.java @@ -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) */ diff --git a/src/main/java/com/greenorange/promotion/model/dto/fileInfo/FileInfoUpdateRequest.java b/src/main/java/com/greenorange/promotion/model/dto/fileInfo/FileInfoUpdateRequest.java index 90ba3bc..dbc0ef8 100644 --- a/src/main/java/com/greenorange/promotion/model/dto/fileInfo/FileInfoUpdateRequest.java +++ b/src/main/java/com/greenorange/promotion/model/dto/fileInfo/FileInfoUpdateRequest.java @@ -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) */ diff --git a/src/main/java/com/greenorange/promotion/model/entity/FileInfo.java b/src/main/java/com/greenorange/promotion/model/entity/FileInfo.java index 3b72046..937a60b 100644 --- a/src/main/java/com/greenorange/promotion/model/entity/FileInfo.java +++ b/src/main/java/com/greenorange/promotion/model/entity/FileInfo.java @@ -38,11 +38,6 @@ public class FileInfo implements Serializable { */ private String type; - /** - * 文件路径 - */ - private String path; - /** * 文件大小(KB) */ diff --git a/src/main/java/com/greenorange/promotion/model/vo/fileInfo/FileInfoVO.java b/src/main/java/com/greenorange/promotion/model/vo/fileInfo/FileInfoVO.java index 442d68b..26cacfb 100644 --- a/src/main/java/com/greenorange/promotion/model/vo/fileInfo/FileInfoVO.java +++ b/src/main/java/com/greenorange/promotion/model/vo/fileInfo/FileInfoVO.java @@ -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) */ diff --git a/src/main/java/com/greenorange/promotion/service/file/impl/FileInfoServiceImpl.java b/src/main/java/com/greenorange/promotion/service/file/impl/FileInfoServiceImpl.java index b3b6893..43a60de 100644 --- a/src/main/java/com/greenorange/promotion/service/file/impl/FileInfoServiceImpl.java +++ b/src/main/java/com/greenorange/promotion/service/file/impl/FileInfoServiceImpl.java @@ -96,7 +96,7 @@ public class FileInfoServiceImpl extends ServiceImpl fileInfo = FileInfo.builder() .name(fileName) .type(fileType) - .path(filePath) + .path(fileName) .size(fileSize) .fileView(view) .biz(biz)