-
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.
- Loading branch information
Showing
26 changed files
with
149 additions
and
61 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
src/main/kotlin/com/vacgom/backend/application/auth/AuthService.kt
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
5 changes: 0 additions & 5 deletions
5
src/main/kotlin/com/vacgom/backend/application/auth/dto/ResourceIdResponse.kt
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
src/main/kotlin/com/vacgom/backend/application/auth/dto/request/MemberInfoRequest.kt
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,8 @@ | ||
package com.vacgom.backend.application.auth.dto.request | ||
|
||
import com.vacgom.backend.domain.member.constants.HealthCondition | ||
|
||
data class MemberInfoRequest( | ||
val nickname: String, | ||
val healthConditions: MutableList<HealthCondition> | ||
) |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/com/vacgom/backend/application/auth/dto/request/SignUpRequest.kt
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,6 @@ | ||
package com.vacgom.backend.application.auth.dto.request | ||
|
||
data class SignUpRequest( | ||
val memberInfo: MemberInfoRequest, | ||
val vaccinationInfo: VaccinationInfoRequest | ||
) |
8 changes: 8 additions & 0 deletions
8
src/main/kotlin/com/vacgom/backend/application/auth/dto/request/VaccinationInfoRequest.kt
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,8 @@ | ||
package com.vacgom.backend.application.auth.dto.request | ||
|
||
data class VaccinationInfoRequest( | ||
val name: String, | ||
val birth: String, | ||
val sex: String, | ||
val vaccineList: MutableList<Vaccines> | ||
) |
14 changes: 14 additions & 0 deletions
14
src/main/kotlin/com/vacgom/backend/application/auth/dto/request/Vaccines.kt
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,14 @@ | ||
package com.vacgom.backend.application.auth.dto.request | ||
|
||
import java.time.LocalDate | ||
|
||
data class Vaccines( | ||
val vaccineType: String, //DTap | ||
val inoculationOrder: Long, // 4 | ||
val inoculationOrderString: String, // 4차(추가) | ||
val date: LocalDate, // 2024-03-21 | ||
val agency: String, // 광명시보건소 | ||
val vaccineName: String?, // 보령정제피디티백신 | ||
val vaccineBrandName: String?, // (주)보령바이오파마 | ||
val lotNumber: String?, //AC14B097BB | ||
) |
2 changes: 1 addition & 1 deletion
2
...kend/application/auth/dto/AuthResponse.kt → ...ication/auth/dto/response/AuthResponse.kt
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
2 changes: 1 addition & 1 deletion
2
...nd/application/auth/dto/MemberResponse.kt → ...ation/auth/dto/response/MemberResponse.kt
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
2 changes: 1 addition & 1 deletion
2
...pplication/auth/dto/OauthTokenResponse.kt → ...n/auth/dto/response/OauthTokenResponse.kt
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
5 changes: 5 additions & 0 deletions
5
src/main/kotlin/com/vacgom/backend/application/auth/dto/response/ResourceIdResponse.kt
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,5 @@ | ||
package com.vacgom.backend.application.auth.dto.response | ||
|
||
data class ResourceIdResponse( | ||
val id: Long | ||
) |
2 changes: 1 addition & 1 deletion
2
...end/application/auth/dto/TokenResponse.kt → ...cation/auth/dto/response/TokenResponse.kt
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
11 changes: 0 additions & 11 deletions
11
src/main/kotlin/com/vacgom/backend/application/member/dto/request/SignUpRequest.kt
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
src/main/kotlin/com/vacgom/backend/domain/auth/oauth/OauthConnector.kt
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: 15 additions & 3 deletions
18
src/main/kotlin/com/vacgom/backend/domain/member/constants/Sex.kt
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,6 +1,18 @@ | ||
package com.vacgom.backend.domain.member.constants | ||
|
||
enum class Sex { | ||
MALE, | ||
FEMALE | ||
import com.vacgom.backend.exception.member.MemberError | ||
import com.vacgom.backend.global.exception.error.BusinessException | ||
|
||
enum class Sex( | ||
val value: String | ||
) { | ||
MALE("M"), | ||
FEMALE("F"); | ||
|
||
companion object { | ||
fun getSexByValue(value: String): Sex { | ||
return entries.find { it.value == value } | ||
?: throw BusinessException(MemberError.INVALID_SEX_REQUESTED) | ||
} | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
src/main/kotlin/com/vacgom/backend/exception/vaccine/VaccineError.kt
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,13 @@ | ||
package com.vacgom.backend.exception.vaccine | ||
|
||
import com.vacgom.backend.global.exception.error.ErrorCode | ||
import org.springframework.http.HttpStatus | ||
|
||
enum class VaccineError( | ||
override val message: String, | ||
override val status: HttpStatus, | ||
override val code: String | ||
) : ErrorCode { | ||
UNKNOWN_VACCINE_REQUESTED("확인되지 않은 백신이 요청되었습니다.", HttpStatus.BAD_REQUEST, "VI_001"), | ||
} | ||
|
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
4 changes: 2 additions & 2 deletions
4
src/main/kotlin/com/vacgom/backend/infrastructure/auth/oauth/kakao/KakaoConnector.kt
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
7 changes: 7 additions & 0 deletions
7
...ain/kotlin/com/vacgom/backend/infrastructure/vaccine/persistence/InoculationRepository.kt
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,7 @@ | ||
package com.vacgom.backend.infrastructure.vaccine.persistence | ||
|
||
import com.vacgom.backend.domain.vaccine.Inoculation | ||
import org.springframework.data.jpa.repository.JpaRepository | ||
import java.util.* | ||
|
||
interface InoculationRepository : JpaRepository<Inoculation, UUID> |
2 changes: 1 addition & 1 deletion
2
src/main/kotlin/com/vacgom/backend/presentation/auth/OAuthController.kt
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