From 3a5d30e06417bab83fef707e81fe46b80e0d2a7d Mon Sep 17 00:00:00 2001 From: 5uhwann <5uhwann27@gmail.com> Date: Thu, 9 Jan 2025 02:51:21 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=BD=94=EB=A9=98=ED=8A=B8=20?= =?UTF-8?q?=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vodprocessing/controller/VodProcessingJobController.java | 2 +- .../dto/request/CreatePendingVodProcessingJobRequest.java | 4 ++-- .../dto/request/UpdateVodProcessingJobStatusRequest.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/ddingdong/ddingdongBE/domain/vodprocessing/controller/VodProcessingJobController.java b/src/main/java/ddingdong/ddingdongBE/domain/vodprocessing/controller/VodProcessingJobController.java index 58c05591..306977e2 100644 --- a/src/main/java/ddingdong/ddingdongBE/domain/vodprocessing/controller/VodProcessingJobController.java +++ b/src/main/java/ddingdong/ddingdongBE/domain/vodprocessing/controller/VodProcessingJobController.java @@ -21,7 +21,7 @@ public class VodProcessingJobController { private final FacadeVodProcessingJobService facadeVodProcessingJobService; @PostMapping() - public void createPending(@RequestBody CreatePendingVodProcessingJobRequest request) { + public void createPending(@RequestBody @Valid CreatePendingVodProcessingJobRequest request) { facadeVodProcessingJobService.create(request.toCommand()); } diff --git a/src/main/java/ddingdong/ddingdongBE/domain/vodprocessing/controller/dto/request/CreatePendingVodProcessingJobRequest.java b/src/main/java/ddingdong/ddingdongBE/domain/vodprocessing/controller/dto/request/CreatePendingVodProcessingJobRequest.java index 075124c0..c6fd4baf 100644 --- a/src/main/java/ddingdong/ddingdongBE/domain/vodprocessing/controller/dto/request/CreatePendingVodProcessingJobRequest.java +++ b/src/main/java/ddingdong/ddingdongBE/domain/vodprocessing/controller/dto/request/CreatePendingVodProcessingJobRequest.java @@ -5,10 +5,10 @@ import org.hibernate.validator.constraints.UUID; public record CreatePendingVodProcessingJobRequest( - @NotNull + @NotNull(message = "변환 작업 ID는 필수입니다") @UUID String convertJobId, - @NotNull + @NotNull(message = "userId는 필수입니다.") String userId ) { diff --git a/src/main/java/ddingdong/ddingdongBE/domain/vodprocessing/controller/dto/request/UpdateVodProcessingJobStatusRequest.java b/src/main/java/ddingdong/ddingdongBE/domain/vodprocessing/controller/dto/request/UpdateVodProcessingJobStatusRequest.java index 4d84a0db..5f9927e0 100644 --- a/src/main/java/ddingdong/ddingdongBE/domain/vodprocessing/controller/dto/request/UpdateVodProcessingJobStatusRequest.java +++ b/src/main/java/ddingdong/ddingdongBE/domain/vodprocessing/controller/dto/request/UpdateVodProcessingJobStatusRequest.java @@ -6,10 +6,10 @@ import org.hibernate.validator.constraints.UUID; public record UpdateVodProcessingJobStatusRequest( - @NotNull + @NotNull(message = "변환 작업 ID는 필수입니다") @UUID String convertJobId, - @NotNull + @NotNull(message = "상태는 필수입니다") ConvertJobStatus status ) {