-
Notifications
You must be signed in to change notification settings - Fork 0
feat(application): Application 공통 기반 구성 #24 #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4799e12
feat(application): Application 공통 기반 구성 #24
wlyoon921 86889af
fix(application): 원서 접근 검증 및 성적 저장 로직 보완 #24
wlyoon921 ce8ffca
fix(application): 인증 사용자 기준 원서 처리 보완 #24
wlyoon921 16e1488
fix(application): 인증 사용자 전달 경계 정리 #24
wlyoon921 801dfa3
fix(application): 성적산출 계산 기준 보완 #24
wlyoon921 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
5 changes: 5 additions & 0 deletions
5
...kotlin/hs/kr/entrydsm/application/application/exception/ApplicantAccessDeniedException.kt
This file contains hidden or 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,5 @@ | ||
| package hs.kr.entrydsm.application.application.exception | ||
|
|
||
| class ApplicantAccessDeniedException( | ||
| applicantId: Long, | ||
| ) : RuntimeException("Applicant access denied: $applicantId") |
5 changes: 5 additions & 0 deletions
5
...ain/kotlin/hs/kr/entrydsm/application/application/exception/ApplicantNotFoundException.kt
This file contains hidden or 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,5 @@ | ||
| package hs.kr.entrydsm.application.application.exception | ||
|
|
||
| class ApplicantNotFoundException( | ||
| applicantId: Long, | ||
| ) : RuntimeException("Applicant not found: $applicantId") |
3 changes: 3 additions & 0 deletions
3
...otlin/hs/kr/entrydsm/application/application/exception/AuthenticationRequiredException.kt
This file contains hidden or 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,3 @@ | ||
| package hs.kr.entrydsm.application.application.exception | ||
|
|
||
| class AuthenticationRequiredException : RuntimeException("authentication is required") |
25 changes: 25 additions & 0 deletions
25
...ication/src/main/kotlin/hs/kr/entrydsm/application/application/port/in/ApplicationPort.kt
This file contains hidden or 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,25 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in` | ||
|
|
||
| import hs.kr.entrydsm.application.application.port.`in`.command.CreateApplicantCommand | ||
| import hs.kr.entrydsm.application.application.port.`in`.command.SubmitApplicationCommand | ||
| import hs.kr.entrydsm.application.application.port.`in`.command.UpdateFamilyCommand | ||
| import hs.kr.entrydsm.application.application.port.`in`.command.UpdateIntroductionCommand | ||
| import hs.kr.entrydsm.application.application.port.`in`.command.UpdateMiddleSchoolCommand | ||
| import hs.kr.entrydsm.application.application.port.`in`.command.UpdatePersonalCommand | ||
| import hs.kr.entrydsm.application.application.port.`in`.command.UpdateStudyPlanCommand | ||
| import hs.kr.entrydsm.application.application.port.`in`.command.UpdateTypeCommand | ||
| import hs.kr.entrydsm.application.application.port.`in`.result.CreateApplicantResult | ||
| import hs.kr.entrydsm.application.application.port.`in`.result.LandingResult | ||
|
|
||
| interface ApplicationPort { | ||
| fun createApplicant(command: CreateApplicantCommand): CreateApplicantResult | ||
| fun updateType(command: UpdateTypeCommand) | ||
| fun updatePersonal(command: UpdatePersonalCommand) | ||
| fun updateFamily(command: UpdateFamilyCommand) | ||
| fun updateMiddleSchool(command: UpdateMiddleSchoolCommand) | ||
| fun updateIntroduction(command: UpdateIntroductionCommand) | ||
| fun updateStudyPlan(command: UpdateStudyPlanCommand) | ||
| fun submit(command: SubmitApplicationCommand) | ||
| fun getLanding(accountId: Long?): LandingResult | ||
| } | ||
|
|
17 changes: 17 additions & 0 deletions
17
...lication/src/main/kotlin/hs/kr/entrydsm/application/application/port/in/EvaluationPort.kt
This file contains hidden or 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,17 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in` | ||
|
|
||
| import hs.kr.entrydsm.application.application.port.`in`.command.CalculateEvaluationCommand | ||
| import hs.kr.entrydsm.application.application.port.`in`.command.SaveAcademicRecordCommand | ||
| import hs.kr.entrydsm.application.application.port.`in`.command.SaveCertificatesCommand | ||
| import hs.kr.entrydsm.application.application.port.`in`.command.SaveGedScoresCommand | ||
| import hs.kr.entrydsm.application.application.port.`in`.command.SaveSubjectGradesCommand | ||
| import hs.kr.entrydsm.application.application.port.`in`.result.AcademicRecordResult | ||
|
|
||
| interface EvaluationPort { | ||
| fun saveSubjectGrades(command: SaveSubjectGradesCommand) | ||
| fun saveGedScores(command: SaveGedScoresCommand) | ||
| fun saveAcademicRecord(command: SaveAcademicRecordCommand): AcademicRecordResult | ||
| fun saveCertificates(command: SaveCertificatesCommand) | ||
| fun calculateResult(command: CalculateEvaluationCommand) | ||
| } | ||
|
|
5 changes: 5 additions & 0 deletions
5
...tlin/hs/kr/entrydsm/application/application/port/in/command/CalculateEvaluationCommand.kt
This file contains hidden or 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,5 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.command | ||
|
|
||
| data class CalculateEvaluationCommand( | ||
| val userId: Long? = null, | ||
| ) |
5 changes: 5 additions & 0 deletions
5
...n/kotlin/hs/kr/entrydsm/application/application/port/in/command/CreateApplicantCommand.kt
This file contains hidden or 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,5 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.command | ||
|
|
||
| data class CreateApplicantCommand( | ||
| val userId: Long? = null, | ||
| ) |
10 changes: 10 additions & 0 deletions
10
...otlin/hs/kr/entrydsm/application/application/port/in/command/SaveAcademicRecordCommand.kt
This file contains hidden or 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,10 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.command | ||
|
|
||
| data class SaveAcademicRecordCommand( | ||
| val userId: Long? = null, | ||
| val absentCount: Int, | ||
| val earlyLeaveCount: Int, | ||
| val lateCount: Int, | ||
| val classAbsenceCount: Int, | ||
| val volunteerTime: Int, | ||
| ) |
7 changes: 7 additions & 0 deletions
7
.../kotlin/hs/kr/entrydsm/application/application/port/in/command/SaveCertificatesCommand.kt
This file contains hidden or 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,7 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.command | ||
|
|
||
| data class SaveCertificatesCommand( | ||
| val userId: Long? = null, | ||
| val isDsmAlgorithmAwarded: Boolean, | ||
| val isProgrammingCertified: Boolean, | ||
| ) |
8 changes: 8 additions & 0 deletions
8
...ain/kotlin/hs/kr/entrydsm/application/application/port/in/command/SaveGedScoresCommand.kt
This file contains hidden or 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,8 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.command | ||
|
|
||
| import hs.kr.entrydsm.application.domain.model.GedScores | ||
|
|
||
| data class SaveGedScoresCommand( | ||
| val userId: Long? = null, | ||
| val gedScores: GedScores, | ||
| ) |
10 changes: 10 additions & 0 deletions
10
...kotlin/hs/kr/entrydsm/application/application/port/in/command/SaveSubjectGradesCommand.kt
This file contains hidden or 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,10 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.command | ||
|
|
||
| import hs.kr.entrydsm.application.domain.enum.SchoolSemester | ||
| import hs.kr.entrydsm.application.domain.model.SubjectGrades | ||
|
|
||
| data class SaveSubjectGradesCommand( | ||
| val userId: Long? = null, | ||
| val schoolSemester: SchoolSemester, | ||
| val subjectGrades: SubjectGrades, | ||
| ) |
6 changes: 6 additions & 0 deletions
6
...kotlin/hs/kr/entrydsm/application/application/port/in/command/SubmitApplicationCommand.kt
This file contains hidden or 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,6 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.command | ||
|
|
||
| data class SubmitApplicationCommand( | ||
| val userId: Long? = null, | ||
| ) | ||
|
|
16 changes: 16 additions & 0 deletions
16
...main/kotlin/hs/kr/entrydsm/application/application/port/in/command/UpdateFamilyCommand.kt
This file contains hidden or 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,16 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.command | ||
|
|
||
| import hs.kr.entrydsm.application.domain.enum.Gender | ||
| import hs.kr.entrydsm.application.domain.enum.GuardianRelation | ||
|
|
||
| data class UpdateFamilyCommand( | ||
| val applicantId: Long, | ||
| val userId: Long? = null, | ||
| val guardianName: String, | ||
| val guardianPhoneNumber: String, | ||
| val guardianGender: Gender, | ||
| val guardianRelation: GuardianRelation, | ||
| val zipCode: String, | ||
| val addressBase: String, | ||
| val addressDetail: String, | ||
| ) |
8 changes: 8 additions & 0 deletions
8
...otlin/hs/kr/entrydsm/application/application/port/in/command/UpdateIntroductionCommand.kt
This file contains hidden or 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,8 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.command | ||
|
|
||
| data class UpdateIntroductionCommand( | ||
| val applicantId: Long, | ||
| val userId: Long? = null, | ||
| val introduction: String, | ||
| ) | ||
|
|
11 changes: 11 additions & 0 deletions
11
...otlin/hs/kr/entrydsm/application/application/port/in/command/UpdateMiddleSchoolCommand.kt
This file contains hidden or 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,11 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.command | ||
|
|
||
| data class UpdateMiddleSchoolCommand( | ||
| val applicantId: Long, | ||
| val userId: Long? = null, | ||
| val schoolName: String, | ||
| val studentNumber: String, | ||
| val schoolPhone: String, | ||
| val teacherName: String, | ||
| ) | ||
|
|
16 changes: 16 additions & 0 deletions
16
...in/kotlin/hs/kr/entrydsm/application/application/port/in/command/UpdatePersonalCommand.kt
This file contains hidden or 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,16 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.command | ||
|
|
||
| import hs.kr.entrydsm.application.domain.enum.Gender | ||
| import hs.kr.entrydsm.application.domain.enum.SpecialAdmissionType | ||
| import java.time.LocalDate | ||
|
|
||
| data class UpdatePersonalCommand( | ||
| val applicantId: Long, | ||
| val userId: Long? = null, | ||
| val photoFileId: Long, | ||
| val name: String, | ||
| val phoneNumber: String, | ||
| val gender: Gender, | ||
| val birthdate: LocalDate, | ||
| val specialAdmissionType: SpecialAdmissionType, | ||
| ) |
8 changes: 8 additions & 0 deletions
8
...n/kotlin/hs/kr/entrydsm/application/application/port/in/command/UpdateStudyPlanCommand.kt
This file contains hidden or 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,8 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.command | ||
|
|
||
| data class UpdateStudyPlanCommand( | ||
| val applicantId: Long, | ||
| val userId: Long? = null, | ||
| val studyPlan: String, | ||
| ) | ||
|
|
15 changes: 15 additions & 0 deletions
15
...c/main/kotlin/hs/kr/entrydsm/application/application/port/in/command/UpdateTypeCommand.kt
This file contains hidden or 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,15 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.command | ||
|
|
||
| import hs.kr.entrydsm.application.domain.enum.AdmissionType | ||
| import hs.kr.entrydsm.application.domain.enum.GraduationType | ||
| import hs.kr.entrydsm.application.domain.enum.Region | ||
| import java.time.YearMonth | ||
|
|
||
| data class UpdateTypeCommand( | ||
| val applicantId: Long, | ||
| val userId: Long? = null, | ||
| val admissionType: AdmissionType, | ||
| val region: Region, | ||
| val graduationType: GraduationType, | ||
| val graduationDate: YearMonth?, | ||
| ) |
10 changes: 10 additions & 0 deletions
10
...main/kotlin/hs/kr/entrydsm/application/application/port/in/result/AcademicRecordResult.kt
This file contains hidden or 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,10 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.result | ||
|
|
||
| data class AcademicRecordResult( | ||
| val absentCount: Int, | ||
| val earlyLeaveCount: Int, | ||
| val lateCount: Int, | ||
| val classAbsenceCount: Int, | ||
| val volunteerTime: Int, | ||
| ) | ||
|
|
6 changes: 6 additions & 0 deletions
6
...ain/kotlin/hs/kr/entrydsm/application/application/port/in/result/CreateApplicantResult.kt
This file contains hidden or 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,6 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.result | ||
|
|
||
| data class CreateApplicantResult( | ||
| val applicantId: Long, | ||
| ) | ||
|
|
6 changes: 6 additions & 0 deletions
6
...on/src/main/kotlin/hs/kr/entrydsm/application/application/port/in/result/LandingResult.kt
This file contains hidden or 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,6 @@ | ||
| package hs.kr.entrydsm.application.application.port.`in`.result | ||
|
|
||
| data class LandingResult( | ||
| val applicantName: String?, | ||
| ) | ||
|
|
9 changes: 9 additions & 0 deletions
9
...on/src/main/kotlin/hs/kr/entrydsm/application/application/port/out/ApplicantRepository.kt
This file contains hidden or 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,9 @@ | ||
| package hs.kr.entrydsm.application.application.port.out | ||
|
|
||
| import hs.kr.entrydsm.application.domain.model.Applicant | ||
|
|
||
| interface ApplicantRepository { | ||
| fun save(applicant: Applicant): Applicant | ||
| fun findById(id: Long): Applicant? | ||
| fun findByAccountId(accountId: Long): Applicant? | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.