File tree Expand file tree Collapse file tree 4 files changed +68
-1
lines changed
src/main/java/back/kalender/domain/schedule Expand file tree Collapse file tree 4 files changed +68
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public class ScheduleController {
6464 content = @ Content (examples = @ ExampleObject (value = """
6565 {
6666 "error": {
67- "code": "INVALID_INPUT_VALUE ",
67+ "code": "002 ",
6868 "status": "400",
6969 "message": "유효하지 않은 입력값입니다."
7070 }
Original file line number Diff line number Diff line change @@ -31,4 +31,25 @@ public record DailyScheduleItem(
3131 @ Schema (description = "일정 장소 (선택 사항)" , example = "KBS 신관 공개홀" )
3232 Optional <String > location
3333) {
34+ public DailyScheduleItem (
35+ Long scheduleId ,
36+ String artistName ,
37+ String title ,
38+ ScheduleCategory scheduleCategory ,
39+ LocalDateTime scheduleTime ,
40+ Long performanceId ,
41+ String link ,
42+ String location
43+ ) {
44+ this (
45+ scheduleId ,
46+ artistName ,
47+ title ,
48+ scheduleCategory ,
49+ scheduleTime ,
50+ Optional .ofNullable (performanceId ),
51+ Optional .ofNullable (link ),
52+ Optional .ofNullable (location )
53+ );
54+ }
3455}
Original file line number Diff line number Diff line change @@ -35,4 +35,27 @@ public record MonthlyScheduleItem(
3535 @ Schema (description = "일정 장소 (선택 사항)" , example = "고척 스카이돔" )
3636 Optional <String > location
3737) {
38+ public MonthlyScheduleItem (
39+ Long scheduleId ,
40+ Long artistId ,
41+ String artistName ,
42+ String title ,
43+ ScheduleCategory scheduleCategory ,
44+ LocalDateTime scheduleTime ,
45+ Long performanceId ,
46+ LocalDate date ,
47+ String location
48+ ) {
49+ this (
50+ scheduleId ,
51+ artistId ,
52+ artistName ,
53+ title ,
54+ scheduleCategory ,
55+ scheduleTime ,
56+ Optional .ofNullable (performanceId ),
57+ date ,
58+ Optional .ofNullable (location )
59+ );
60+ }
3861}
Original file line number Diff line number Diff line change @@ -34,4 +34,27 @@ public record UpcomingEventItem(
3434 @ Schema (description = "일정 장소 (선택 사항)" , example = "코엑스 라이브플라자" )
3535 Optional <String > location
3636) {
37+ public UpcomingEventItem (
38+ Long scheduleId ,
39+ String artistName ,
40+ String title ,
41+ ScheduleCategory scheduleCategory ,
42+ LocalDateTime scheduleTime ,
43+ Long performanceId ,
44+ String link ,
45+ Long daysUntilEvent ,
46+ String location
47+ ) {
48+ this (
49+ scheduleId ,
50+ artistName ,
51+ title ,
52+ scheduleCategory ,
53+ scheduleTime ,
54+ Optional .ofNullable (performanceId ),
55+ Optional .ofNullable (link ),
56+ daysUntilEvent ,
57+ Optional .ofNullable (location )
58+ );
59+ }
3760}
You can’t perform that action at this time.
0 commit comments