-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
5 changed files
with
148 additions
and
10 deletions.
There are no files selected for viewing
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
71 changes: 71 additions & 0 deletions
71
src/main/java/likelion/MZConnent/dto/club/response/MyClubDetailResponse.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,71 @@ | ||
package likelion.MZConnent.dto.club.response; | ||
|
||
import likelion.MZConnent.domain.club.ClubRole; | ||
import likelion.MZConnent.domain.member.Age; | ||
import likelion.MZConnent.domain.member.Gender; | ||
import likelion.MZConnent.dto.club.SelfIntroductionDto; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.time.LocalDate; | ||
import java.util.List; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class MyClubDetailResponse { | ||
private Long clubId; | ||
private String title; | ||
private LocalDate meetingDate; | ||
private String content; | ||
private int currentParticipant; | ||
private MyClubCultureDto culture; | ||
private List<MyClubMemberDto> members; | ||
|
||
@Builder | ||
public MyClubDetailResponse(Long clubId, String title, LocalDate meetingDate, String content, int currentParticipant, MyClubCultureDto culture, List<MyClubMemberDto> members) { | ||
this.clubId = clubId; | ||
this.title = title; | ||
this.meetingDate = meetingDate; | ||
this.content = content; | ||
this.currentParticipant = currentParticipant; | ||
this.culture = culture; | ||
this.members = members; | ||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public static class MyClubCultureDto { | ||
private Long cultureId; | ||
private String name; | ||
|
||
@Builder | ||
public MyClubCultureDto(Long cultureId, String name) { | ||
this.cultureId = cultureId; | ||
this.name = name; | ||
} | ||
} | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public static class MyClubMemberDto { | ||
private Long userId; | ||
private String username; | ||
private String profileImageUrl; | ||
private Age age; | ||
private Gender gender; | ||
private ClubRole role; | ||
private List<SelfIntroductionDto> selfIntroductions; | ||
|
||
@Builder | ||
public MyClubMemberDto(Long userId, String username, String profileImageUrl, Age age, Gender gender, ClubRole role, List<SelfIntroductionDto> selfIntroductions) { | ||
this.userId = userId; | ||
this.username = username; | ||
this.profileImageUrl = profileImageUrl; | ||
this.age = age; | ||
this.gender = gender; | ||
this.role = role; | ||
this.selfIntroductions = selfIntroductions; | ||
} | ||
} | ||
} |
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
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
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