-
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.
* chore(version): 의존버전 업그레이드 * refactor(user): user choice 테이블 삭제 및 리팩토링 * refactor(team-building): start 라운드 추가 및 리팩토링 * refactor(team-building): core 및 admin 메소드 추출 및 리팩토링 * refactor(team-building): 테스트 추가 * feat(team-building): 어드민 시작 기능 추가 및 createdDate 필드 추가 * fix(team-building) : 유저 선택 정보 숨김 --------- Co-authored-by: 박다예/NSC스튜디오/NE <[email protected]>
- 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.