|
|
|
@ -50,7 +50,12 @@ public class AttachmentController {
|
|
|
|
@GetMapping("/search")
|
|
|
|
@GetMapping("/search")
|
|
|
|
public ResponseEntity<Page<MinioAttachmentEntity>> search(
|
|
|
|
public ResponseEntity<Page<MinioAttachmentEntity>> search(
|
|
|
|
@ParameterObject @ModelAttribute BaseSearchRequest request,
|
|
|
|
@ParameterObject @ModelAttribute BaseSearchRequest request,
|
|
|
|
@RequestParam(value = "refType", required = false) String refType) {
|
|
|
|
@Parameter(
|
|
|
|
|
|
|
|
description = "첨부파일 구분자. 예: WORKFLOW_STEP, DATASET, TRAINING_SCRIPT",
|
|
|
|
|
|
|
|
example = "WORKFLOW_STEP"
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
@RequestParam(value = "refType", required = false) String refType
|
|
|
|
|
|
|
|
) {
|
|
|
|
Page<MinioAttachmentEntity> page = minioAttachmentService.search(request, refType);
|
|
|
|
Page<MinioAttachmentEntity> page = minioAttachmentService.search(request, refType);
|
|
|
|
return ResponseEntity.ok(page);
|
|
|
|
return ResponseEntity.ok(page);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|