test #257

Merged
klaus merged 15 commits from test into main 2025-02-09 13:36:21 +00:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit bbf3fc04b6 - Show all commits

View File

@ -0,0 +1,3 @@
package kr.co.vividnext.sodalive.member.auth
data class AuthResponse(val gender: Int)

View File

@ -73,7 +73,7 @@ class AuthService(
}
@Transactional
fun authenticate(certificate: AuthVerifyCertificate, memberId: Long) {
fun authenticate(certificate: AuthVerifyCertificate, memberId: Long): AuthResponse {
val memberIds = repository.getActiveMemberIdsByDi(di = certificate.di)
if (memberIds.size >= 3) {
throw SodaException(
@ -96,6 +96,7 @@ class AuthService(
auth.member = member
repository.save(auth)
return AuthResponse(gender = certificate.gender)
} else {
throw SodaException("${nowYear - 19}년 1월 1일 이전 출생자만 본인인증이 가능합니다.")
}