-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: isManualConfirmed 제거 및 도메인 로직 확인 (#377)
* refactor: isManualConfirmed 칼럼 삭제 및 관련 로직 분리 * refactor: 더미 데이터 수정 --------- Co-authored-by: fromitive <fromitive@gmail.com>
- Loading branch information
1 parent
e924260
commit b46bdd0
Showing
11 changed files
with
381 additions
and
421 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
58 changes: 0 additions & 58 deletions
58
backend/src/main/java/com/zzang/chongdae/offering/domain/OfferingCondition.java
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
backend/src/main/java/com/zzang/chongdae/offering/domain/OfferingJoinedCount.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,27 @@ | ||
package com.zzang.chongdae.offering.domain; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class OfferingJoinedCount { | ||
|
||
private final int totalCount; | ||
private final int currentCount; | ||
|
||
public OfferingStatus decideOfferingStatus() { | ||
return OfferingStatus.decideByJoinedCount(this); | ||
} | ||
|
||
public boolean isCountFull() { | ||
return this.totalCount == this.currentCount; | ||
} | ||
|
||
public boolean isCountAlmostFull() { | ||
if (totalCount <= 3) { | ||
return (totalCount - currentCount) < 2; | ||
} | ||
return (totalCount - currentCount) < 3; | ||
} | ||
} |
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
Oops, something went wrong.