Skip to content

Commit

Permalink
refactor: 코멘트 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
5uhwann committed Jan 8, 2025
1 parent dcbbd96 commit 3a5d30e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {

Expand Down

0 comments on commit 3a5d30e

Please sign in to comment.