-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathInviteCreateRequest.java
More file actions
51 lines (37 loc) · 1.95 KB
/
InviteCreateRequest.java
File metadata and controls
51 lines (37 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package doldol_server.doldol.invite.dto.request;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import java.time.LocalDateTime;
@Getter
public class InviteCreateRequest {
private static final String TITLE_MESSAGE = "제목은 1자 이상 40자 이하여야 합니다.";
@Schema(description = "초대장 제목", example = "돌돌이의 홈파티")
@NotBlank(message = TITLE_MESSAGE)
@Size(max = 40, message = TITLE_MESSAGE)
private String title;
@Schema(description = "행사 일시", example = "2025-12-31T18:30:00")
@NotNull(message = "일시는 필수입니다.")
private LocalDateTime eventDateTime;
@Schema(description = "행사 장소", example = "서울시 강남구 역삼동 123-45")
@NotBlank(message = "장소는 필수입니다.")
@Size(max = 120, message = "장소는 120자를 초과할 수 없습니다.")
private String location;
@Schema(description = "장소 링크", example = "https://maps.google.com/?q=서울시+강남구")
@Size(max = 500, message = "장소 링크는 500자를 초과할 수 없습니다.")
private String locationLink;
@Schema(description = "초대장 본문 문구", example = "함께 모여 즐거운 시간을 보내요!")
@NotBlank(message = "문구는 필수입니다.")
private String content;
@Schema(description = "보내는 사람 또는 단체 명", example = "돌돌팀")
@NotBlank(message = "보내는 사람은 필수입니다.")
private String sender;
@Schema(description = "초대장 테마", example = "retro")
@Size(max = 30, message = "테마는 30자를 초과할 수 없습니다.")
private String theme;
@Schema(description = "폰트 스타일", example = "Arial")
@NotBlank(message = "폰트 스타일은 필수입니다.")
private String fontStyle;
}