From 96e196aeebf73c0d5ae8df1853a2dcdca8026af2 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Tue, 20 Feb 2024 11:21:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86=E9=83=A8?= =?UTF-8?q?=E5=88=86=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/bug/controller/BugAttachmentController.java | 4 ++-- .../io/metersphere/bug/dto/request/BugCommentEditRequest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugAttachmentController.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugAttachmentController.java index 83eaf22d31..0c3478c167 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugAttachmentController.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugAttachmentController.java @@ -78,7 +78,7 @@ public class BugAttachmentController { @Operation(summary = "缺陷管理-附件-预览") @RequiresPermissions(PermissionConstants.PROJECT_BUG_READ) @CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project") - public ResponseEntity preview(@Validated @RequestBody BugFileSourceRequest request) throws Exception { + public ResponseEntity preview(@Validated @RequestBody BugFileSourceRequest request) { if (request.getAssociated()) { // 文件库 return fileMetadataService.downloadPreviewImgById(request.getFileId()); @@ -92,7 +92,7 @@ public class BugAttachmentController { @Operation(summary = "缺陷管理-附件-下载") @RequiresPermissions(PermissionConstants.PROJECT_BUG_READ) @CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project") - public ResponseEntity download(@Validated @RequestBody BugFileSourceRequest request) throws Exception { + public ResponseEntity download(@Validated @RequestBody BugFileSourceRequest request) { if (request.getAssociated()) { // 文件库 return fileMetadataService.downloadById(request.getFileId()); diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/dto/request/BugCommentEditRequest.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/dto/request/BugCommentEditRequest.java index cb3cd0fce2..234ee2a49d 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/dto/request/BugCommentEditRequest.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/dto/request/BugCommentEditRequest.java @@ -30,7 +30,7 @@ public class BugCommentEditRequest implements Serializable { @Schema(description = "评论内容", requiredMode = Schema.RequiredMode.REQUIRED) private String content; - @Schema(description = "任务事件(仅评论: ’COMMENT‘; 评论并@: ’AT‘; 回复评论/回复并@: ’REPLAY‘;)", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "任务事件(仅评论: ’COMMENT‘; 评论并@: ’AT‘; 回复评论/回复并@: ’REPLY‘;)", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{bug_comment.event.not_blank}", groups = {Created.class}) private String event; }