-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
248295e
commit ff484f1
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
src/main/java/com/beat/domain/performance/application/dto/update/CastUpdateResponse.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,12 @@ | ||
package com.beat.domain.performance.application.dto.update; | ||
|
||
public record CastUpdateResponse( | ||
Long castId, | ||
String castName, | ||
String castRole, | ||
String castPhoto | ||
) { | ||
public static CastUpdateResponse of(Long castId, String castName, String castRole, String castPhoto) { | ||
return new CastUpdateResponse(castId, castName, castRole, castPhoto); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...in/java/com/beat/domain/performance/application/dto/update/PerformanceUpdateResponse.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,37 @@ | ||
package com.beat.domain.performance.application.dto.update; | ||
|
||
import com.beat.domain.performance.domain.BankName; | ||
import com.beat.domain.performance.domain.Genre; | ||
|
||
import java.util.List; | ||
|
||
public record PerformanceUpdateResponse( | ||
Long userId, | ||
Long performanceId, | ||
String performanceTitle, | ||
Genre genre, | ||
int runningTime, | ||
String performanceDescription, | ||
String performanceAttentionNote, | ||
BankName bankName, | ||
String accountNumber, | ||
String accountHolder, | ||
String posterImage, | ||
String performanceTeamName, | ||
String performanceVenue, | ||
String performanceContact, | ||
String performancePeriod, | ||
int ticketPrice, | ||
int totalScheduleCount, | ||
List<ScheduleUpdateResponse> scheduleList, | ||
List<CastUpdateResponse> castList, | ||
List<StaffUpdateResponse> staffList | ||
) { | ||
public static PerformanceUpdateResponse of(Long userId, Long performanceId, String performanceTitle, Genre genre, int runningTime, | ||
String performanceDescription, String performanceAttentionNote, BankName bankName, String accountNumber, String accountHolder, | ||
String posterImage, String performanceTeamName, String performanceVenue, String performanceContact, String performancePeriod, | ||
int ticketPrice, int totalScheduleCount, List<ScheduleUpdateResponse> scheduleList, List<CastUpdateResponse> castList, List<StaffUpdateResponse> staffList) { | ||
return new PerformanceUpdateResponse(userId, performanceId, performanceTitle, genre, runningTime, performanceDescription, performanceAttentionNote, bankName, accountNumber, | ||
accountHolder, posterImage, performanceTeamName, performanceVenue, performanceContact, performancePeriod, ticketPrice, totalScheduleCount, scheduleList, castList, staffList); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/beat/domain/performance/application/dto/update/ScheduleUpdateResponse.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,17 @@ | ||
package com.beat.domain.performance.application.dto.update; | ||
|
||
import com.beat.domain.schedule.domain.ScheduleNumber; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
public record ScheduleUpdateResponse( | ||
Long scheduleId, | ||
LocalDateTime performanceDate, | ||
int totalTicketCount, | ||
int dueDate, | ||
ScheduleNumber scheduleNumber | ||
) { | ||
public static ScheduleUpdateResponse of(Long scheduleId, LocalDateTime performanceDate, int totalTicketCount, int dueDate, ScheduleNumber scheduleNumber) { | ||
return new ScheduleUpdateResponse(scheduleId, performanceDate, totalTicketCount, dueDate, scheduleNumber); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/beat/domain/performance/application/dto/update/StaffUpdateResponse.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,12 @@ | ||
package com.beat.domain.performance.application.dto.update; | ||
|
||
public record StaffUpdateResponse( | ||
Long staffId, | ||
String staffName, | ||
String staffRole, | ||
String staffPhoto | ||
) { | ||
public static StaffUpdateResponse of(Long staffId, String staffName, String staffRole, String staffPhoto) { | ||
return new StaffUpdateResponse(staffId, staffName, staffRole, staffPhoto); | ||
} | ||
} |