Skip to content

Commit

Permalink
Merge pull request #448 from kkkapuq/feature/#445_add_crew_info
Browse files Browse the repository at this point in the history
Refactor : 크루 조회에 필요한 값 추가
  • Loading branch information
kkkapuq authored Apr 30, 2024
2 parents 1eb9deb + b96132c commit 2e1aa77
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@ public record CrewResponse(
String headName,
int memberCount,
int capacity,
List<Region> region,
int minAge,
int maxAge,
String gender,
List<Region> regions,
String description,
String icon,
CrewStatus status,
String headProfileImage,
String question,
boolean permissionRequired,
boolean answerRequired,
@JsonFormat(shape = JsonFormat.Shape.STRING)
LocalDateTime createdAt,
@JsonFormat(shape = JsonFormat.Shape.STRING)
Expand All @@ -36,12 +41,17 @@ public static CrewResponse of(CrewDto crewDto, boolean isMember, List<String> us
crewDto.userDto().nickname(),
crewDto.memberCount(),
crewDto.capacity(),
crewDto.minAge(),
crewDto.maxAge(),
crewDto.gender().name(),
crewDto.regions(),
crewDto.description(),
crewDto.icon(),
crewDto.status(),
crewDto.userDto().profileImage(),
crewDto.question(),
crewDto.permissionRequired(),
crewDto.answerRequired(),
crewDto.createdAt(),
crewDto.updatedAt(),
crewDto.tags(),
Expand Down

0 comments on commit 2e1aa77

Please sign in to comment.