-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
70 additions
and
230 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
44 changes: 44 additions & 0 deletions
44
src/main/java/in/koreatech/koin/domain/dept/model/Dept.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,44 @@ | ||
package in.koreatech.koin.domain.dept.model; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum Dept { | ||
ARCHITECTURAL_ENGINEERING("건축공학부", List.of(72L), "https://cms3.koreatech.ac.kr/arch/1083/subview.do"), | ||
EMPLOYMENT_SERVICE_POLICY_DEPARTMENT("고용서비스정책학과", List.of(85L), "https://www.koreatech.ac.kr/kor/CMS/UnivOrganMgr/subMain.do?mCode=MN451"), | ||
MECHANICAL_ENGINEERING("기계공학부", List.of(20L), "https://cms3.koreatech.ac.kr/me/795/subview.do"), | ||
DESIGN_ENGINEERING("디자인공학부", List.of(51L), "https://cms3.koreatech.ac.kr/ide/1047/subview.do"), | ||
MECHATRONICS_ENGINEERING("메카트로닉스공학부", List.of(40L), "https://www.koreatech.ac.kr/kor/CMS/UnivOrganMgr/subMain.do?mCode=MN076"), | ||
INDUSTRIAL_MANAGEMENT("산업경영학부", List.of(80L), "https://cms3.koreatech.ac.kr/sim/1167/subview.do"), | ||
NEW_ENERGY_MATERIALS_CHEMICAL_ENGINEERING("에너지신소재화학공학부", List.of(74L), "https://cms3.koreatech.ac.kr/ace/992/subview.do"), | ||
ELECTRICAL_AND_ELECTRONIC_COMMUNICATION_ENGINEERING("전기전자통신공학부", List.of(61L), "https://cms3.koreatech.ac.kr/ite/842/subview.do"), | ||
COMPUTER_SCIENCE("컴퓨터공학부", List.of(35L, 36L), "https://cse.koreatech.ac.kr/page_izgw21"), | ||
; | ||
|
||
private final String name; | ||
private final List<Long> numbers; | ||
private final String curriculumLink; | ||
|
||
Dept(String name, List<Long> numbers, String curriculumLink) { | ||
this.name = name; | ||
this.numbers = numbers; | ||
this.curriculumLink = curriculumLink; | ||
} | ||
|
||
public static Optional<Dept> findByNumber(Long number) { | ||
for (Dept dept : Dept.values()) { | ||
if (dept.numbers.contains(number)) { | ||
return Optional.of(dept); | ||
} | ||
} | ||
return Optional.empty(); | ||
} | ||
|
||
public static List<Dept> findAll() { | ||
return Arrays.stream(values()).toList(); | ||
} | ||
} |
47 changes: 0 additions & 47 deletions
47
src/main/java/in/koreatech/koin/domain/dept/model/DeptInfo.java
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
src/main/java/in/koreatech/koin/domain/dept/model/DeptNum.java
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
src/main/java/in/koreatech/koin/domain/dept/model/DeptNumId.java
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/main/java/in/koreatech/koin/domain/dept/repository/DeptInfoRepository.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/main/java/in/koreatech/koin/domain/dept/repository/DeptNumRepository.java
This file was deleted.
Oops, something went wrong.
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