-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
969 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
backend/emm-sale/src/main/java/com/emmsale/event/application/dto/EventDetailRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.emmsale.event.application.dto; | ||
|
||
import com.emmsale.tag.application.dto.TagRequest; | ||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
import javax.validation.constraints.Pattern; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.format.annotation.DateTimeFormat; | ||
|
||
@RequiredArgsConstructor | ||
@Getter | ||
public class EventDetailRequest { | ||
|
||
private static final String DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss"; | ||
|
||
@NotBlank(message = "행사의 이름을 입력해 주세요.") | ||
private final String name; | ||
@NotBlank(message = "행사의 장소를 입력해 주세요.") | ||
private final String location; | ||
@NotBlank(message = "행사의 상세 URL을 입력해 주세요.") | ||
@Pattern(regexp = "(http.?://).*", message = "http:// 혹은 https://로 시작하는 주소를 입력해 주세요.") | ||
private final String informationUrl; | ||
|
||
@DateTimeFormat(pattern = DATE_TIME_FORMAT) | ||
@NotNull(message = "행사의 시작 일시를 입력해 주세요.") | ||
private final LocalDateTime startDateTime; | ||
@DateTimeFormat(pattern = DATE_TIME_FORMAT) | ||
@NotNull(message = "행사의 종료 일시를 입력해 주세요.") | ||
private final LocalDateTime endDateTime; | ||
|
||
private final List<TagRequest> tags; | ||
} |
Oops, something went wrong.