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; }