-
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.
Merge pull request #58 from Nexters/dev
feat(admin) : 팀빌딩 시작 기능 추가 (#57)
- Loading branch information
Showing
20 changed files
with
541 additions
and
283 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
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
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
18 changes: 12 additions & 6 deletions
18
src/main/java/com/nexters/moyeomoyeo/team_building/domain/constant/RoundStatus.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 |
---|---|---|
@@ -1,24 +1,30 @@ | ||
package com.nexters.moyeomoyeo.team_building.domain.constant; | ||
|
||
import java.util.List; | ||
import lombok.Getter; | ||
|
||
public enum RoundStatus { | ||
COMPLETE(6, null), | ||
ADJUSTED_ROUND(5, COMPLETE), | ||
FORTH_ROUND(4, ADJUSTED_ROUND), | ||
THIRD_ROUND(3, FORTH_ROUND), | ||
FOURTH_ROUND(4, ADJUSTED_ROUND), | ||
THIRD_ROUND(3, FOURTH_ROUND), | ||
SECOND_ROUND(2, THIRD_ROUND), | ||
FIRST_ROUND(1, SECOND_ROUND), | ||
START(0, FIRST_ROUND) | ||
; | ||
|
||
@Getter | ||
final private int weight; | ||
private final int order; | ||
|
||
@Getter | ||
final private RoundStatus nextStatus; | ||
private final RoundStatus nextStatus; | ||
|
||
RoundStatus(int weight, RoundStatus nextStatus) { | ||
this.weight = weight; | ||
RoundStatus(int order, RoundStatus nextStatus) { | ||
this.order = order; | ||
this.nextStatus = nextStatus; | ||
} | ||
|
||
public static boolean isPickUserPossible(RoundStatus roundStatus) { | ||
return List.of(FIRST_ROUND, SECOND_ROUND, THIRD_ROUND, FOURTH_ROUND).contains(roundStatus); | ||
} | ||
} |
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
40 changes: 0 additions & 40 deletions
40
src/main/java/com/nexters/moyeomoyeo/team_building/domain/entity/UserChoice.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.