-
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
Showing
4 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
src/main/java/org/sopt/app/application/meeting/MeetingCategory.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,6 @@ | ||
package org.sopt.app.application.meeting; | ||
|
||
public enum MeetingCategory { | ||
STUDY, | ||
EVENT | ||
} |
73 changes: 73 additions & 0 deletions
73
src/main/java/org/sopt/app/application/meeting/MeetingResponse.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,73 @@ | ||
package org.sopt.app.application.meeting; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public record MeetingResponse( | ||
Long meetingId, | ||
String title, | ||
MeetingCategory category, | ||
MeetingStatus status, | ||
String imageUrl, | ||
Boolean canJoinOnlyActiveGeneration | ||
) { | ||
@Deprecated | ||
public static MeetingResponse eventActiveDummy(Long id) { | ||
return MeetingResponse.builder() | ||
.meetingId(id) | ||
.title("[35기 솝커톤] 서버 파트 신청") | ||
.category(MeetingCategory.EVENT) | ||
.status(MeetingStatus.ACTIVE) | ||
.imageUrl("https://makers-web-img.s3.ap-northeast-2.amazonaws.com/meeting/2024/11/14/78d48e33-f1d7-474f-a357-117b75a8cb90.png") | ||
.canJoinOnlyActiveGeneration(false) | ||
.build(); | ||
} | ||
|
||
@Deprecated | ||
public static MeetingResponse studyRecruitingDummy(Long id) { | ||
return MeetingResponse.builder() | ||
.meetingId(id) | ||
.title("모집중이고 활동 기수만 참여하는 스터디") | ||
.category(MeetingCategory.STUDY) | ||
.status(MeetingStatus.RECRUITING) | ||
.imageUrl("https://makers-web-img.s3.ap-northeast-2.amazonaws.com/meeting/2024/11/14/78d48e33-f1d7-474f-a357-117b75a8cb90.png") | ||
.canJoinOnlyActiveGeneration(true) | ||
.build(); | ||
} | ||
|
||
@Deprecated | ||
public static MeetingResponse studyPreRecruitingDummy(Long id) { | ||
return MeetingResponse.builder() | ||
.meetingId(id) | ||
.title("모집 이전이고 모든 기수가 참여하는 스터디") | ||
.category(MeetingCategory.STUDY) | ||
.status(MeetingStatus.PRE_RECRUITING) | ||
.imageUrl("https://makers-web-img.s3.ap-northeast-2.amazonaws.com/meeting/2024/11/14/78d48e33-f1d7-474f-a357-117b75a8cb90.png") | ||
.canJoinOnlyActiveGeneration(false) | ||
.build(); | ||
} | ||
|
||
@Deprecated | ||
public static MeetingResponse studyClosedDummy(Long id) { | ||
return MeetingResponse.builder() | ||
.meetingId(id) | ||
.title("모집이 끝나고 모든 기수가 참여하는 스터디") | ||
.category(MeetingCategory.STUDY) | ||
.status(MeetingStatus.CLOSED) | ||
.imageUrl("https://makers-web-img.s3.ap-northeast-2.amazonaws.com/meeting/2024/11/14/78d48e33-f1d7-474f-a357-117b75a8cb90.png") | ||
.canJoinOnlyActiveGeneration(false) | ||
.build(); | ||
} | ||
|
||
@Deprecated | ||
public static MeetingResponse studyActiveDummy(Long id) { | ||
return MeetingResponse.builder() | ||
.meetingId(id) | ||
.title("활동중이고 활동 기수만 참여하는 스터디") | ||
.category(MeetingCategory.STUDY) | ||
.status(MeetingStatus.ACTIVE) | ||
.imageUrl("https://makers-web-img.s3.ap-northeast-2.amazonaws.com/meeting/2024/11/14/78d48e33-f1d7-474f-a357-117b75a8cb90.png") | ||
.canJoinOnlyActiveGeneration(true) | ||
.build(); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/org/sopt/app/application/meeting/MeetingStatus.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,8 @@ | ||
package org.sopt.app.application.meeting; | ||
|
||
public enum MeetingStatus { | ||
RECRUITING, | ||
PRE_RECRUITING, | ||
CLOSED, | ||
ACTIVE | ||
} |
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