Skip to content

Commit

Permalink
style: 요청 DTO 코드 컨벤션 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
xxeol2 committed Sep 8, 2023
1 parent 73a476d commit 638fc71
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
import java.time.LocalDate;
import java.util.Objects;

public record FestivalCreateRequest(String name, LocalDate startDate, LocalDate endDate, String thumbnail) {
public record FestivalCreateRequest(
String name,
LocalDate startDate,
LocalDate endDate,
String thumbnail) {

public Festival toEntity() {
if (Objects.isNull(thumbnail) || thumbnail.isBlank()) {
Expand Down
9 changes: 5 additions & 4 deletions backend/src/main/java/com/festago/dto/StageCreateRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

import java.time.LocalDateTime;

public record StageCreateRequest(LocalDateTime startTime,
String lineUp,
LocalDateTime ticketOpenTime,
Long festivalId) {
public record StageCreateRequest(
LocalDateTime startTime,
String lineUp,
LocalDateTime ticketOpenTime,
Long festivalId) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
import com.festago.domain.TicketType;
import java.time.LocalDateTime;

public record TicketCreateRequest(Long stageId, TicketType ticketType, Integer amount, LocalDateTime entryTime) {
public record TicketCreateRequest(
Long stageId,
TicketType ticketType,
Integer amount,
LocalDateTime entryTime) {

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.festago.dto;

public record TicketValidationRequest(String code) {
public record TicketValidationRequest(
String code) {

}
3 changes: 2 additions & 1 deletion backend/src/main/java/com/festago/dto/TicketingRequest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.festago.dto;

public record TicketingRequest(Long ticketId) {
public record TicketingRequest(
Long ticketId) {

}

0 comments on commit 638fc71

Please sign in to comment.