-
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 #271 from Myongji-Graduate/dev-35-update-info
[DEV-35] 학사안내문 업데이트 반영
- Loading branch information
Showing
12 changed files
with
232 additions
and
98 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
10 changes: 4 additions & 6 deletions
10
...ajor/exception/MajorExceptionHandler.java → ...jor/MandatoryMajorSpecialCaseHandler.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,17 +1,15 @@ | ||
package com.plzgraduate.myongjigraduatebe.graduation.domain.service.major.exception; | ||
package com.plzgraduate.myongjigraduatebe.graduation.domain.service.major; | ||
|
||
import java.util.Set; | ||
|
||
import com.plzgraduate.myongjigraduatebe.graduation.domain.service.major.MajorGraduationCategory; | ||
import com.plzgraduate.myongjigraduatebe.lecture.domain.model.Lecture; | ||
import com.plzgraduate.myongjigraduatebe.user.domain.model.User; | ||
import com.plzgraduate.myongjigraduatebe.takenlecture.domain.model.TakenLectureInventory; | ||
|
||
public interface MajorExceptionHandler { | ||
public interface MandatoryMajorSpecialCaseHandler { | ||
boolean isSupport(User user, MajorGraduationCategory majorGraduationCategory); | ||
|
||
boolean checkMandatoryCondition(TakenLectureInventory takenLectureInventory, | ||
MandatorySpecialCaseInformation getMandatorySpecialCaseInformation( | ||
User user, MajorGraduationCategory majorGraduationCategory, TakenLectureInventory takenLectureInventory, | ||
Set<Lecture> mandatoryLectures, Set<Lecture> electiveLectures); | ||
|
||
int getRemovedMandatoryTotalCredit(); | ||
} |
22 changes: 22 additions & 0 deletions
22
...te/myongjigraduatebe/graduation/domain/service/major/MandatorySpecialCaseInformation.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,22 @@ | ||
package com.plzgraduate.myongjigraduatebe.graduation.domain.service.major; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@Builder | ||
@RequiredArgsConstructor | ||
public class MandatorySpecialCaseInformation { | ||
|
||
private final boolean isCompleteMandatorySpecialCase; | ||
|
||
private final int removedMandatoryTotalCredit; | ||
|
||
public static MandatorySpecialCaseInformation of(boolean completeMandatorySpecialCase, int removedMandatoryTotalCredit) { | ||
return MandatorySpecialCaseInformation.builder() | ||
.isCompleteMandatorySpecialCase(completeMandatorySpecialCase) | ||
.removedMandatoryTotalCredit(removedMandatoryTotalCredit) | ||
.build(); | ||
} | ||
} |
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.