Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ [FEAT] 그룹 이미지 응답 추가 #146

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/java/com/carely/backend/domain/Group.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class Group extends BaseEntity {
private String description;
private String schedule;
private String ownerId;
private String groupImage;

// @Enumerated(EnumType.STRING)
// private UserType userType;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/carely/backend/dto/group/GetGroupDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public static class GroupList {
private String description;
private Integer headCount; // 인원수
private LocalDateTime lastNews;
private String groupImage;
// private UserType userType;
// private Boolean isLiked;
// private Boolean isWriter;
Expand All @@ -63,6 +64,7 @@ public static GroupList toDTO(Group e, LocalDateTime lastNews) {
.groupId(e.getId())
.groupName(e.getGroupName())
.city(e.getCity())
.groupImage(e.getGroupImage())
.description(e.getDescription())
.headCount(e.getJoinGroups() != null ? e.getJoinGroups().size() : 0) // JoinGroup을 사용한 인원수 계산
// .userType(e.getUserType())
Expand All @@ -84,6 +86,7 @@ public static class Detail {
private String city;
private String description;
private String schedule;
private String groupImage;
private Integer headCount; // 인원수
// private Boolean isLiked;
// private Boolean isWriter;
Expand All @@ -97,6 +100,7 @@ public static Detail toDTO(Group e) {
.groupId(e.getId())
.groupName(e.getGroupName())
.city(e.getCity())
.groupImage(e.getGroupImage())
.description(e.getDescription())
.schedule(e.getSchedule())
.headCount(e.getJoinGroups() != null ? e.getJoinGroups().size() : 0) // JoinGroup을 사용한 인원수 계산
Expand Down
Loading