Skip to content

Commit

Permalink
Fix: 활동 상세 dto 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongho427 committed May 19, 2024
1 parent 138d315 commit cf3f4a2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class ActivityDetailsRes {

private List<Personality> personalities;

private List<String> activityImgs;
private String imageUrl;

public static ActivityDetailsRes of(Activity activity) {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MM월 dd일 EEEE", new Locale("ko", "KR"));
Expand All @@ -46,13 +46,13 @@ public static ActivityDetailsRes of(Activity activity) {
.id(activity.getId())
.title(activity.getTitle())
.agency(activity.getAgency())
.agency(activity.getAgencyType().getDescription())
.agencyType(activity.getAgencyType().getDescription())
.location(activity.getLocation())
.time(activity.getTime().format(formatter))
.currentParticipants(activity.getCurrentParticipants())
.maxParticipants(activity.getMaxParticipants())
.personalities(activity.getPersonalities())
.activityImgs(activity.getActivityImgs())
.imageUrl(activity.getImageUrl())
.build();
}
}

0 comments on commit cf3f4a2

Please sign in to comment.