fix(缺陷管理): 修复缺陷管理部分缺陷
This commit is contained in:
parent
d3461b2b5f
commit
96e196aeeb
|
@ -78,7 +78,7 @@ public class BugAttachmentController {
|
|||
@Operation(summary = "缺陷管理-附件-预览")
|
||||
@RequiresPermissions(PermissionConstants.PROJECT_BUG_READ)
|
||||
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
|
||||
public ResponseEntity<byte[]> preview(@Validated @RequestBody BugFileSourceRequest request) throws Exception {
|
||||
public ResponseEntity<byte[]> 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<byte[]> download(@Validated @RequestBody BugFileSourceRequest request) throws Exception {
|
||||
public ResponseEntity<byte[]> download(@Validated @RequestBody BugFileSourceRequest request) {
|
||||
if (request.getAssociated()) {
|
||||
// 文件库
|
||||
return fileMetadataService.downloadById(request.getFileId());
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue