Skip to content

Commit

Permalink
feat: 멤버 실명 응답 스펙 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
h-beeen committed Mar 23, 2024
1 parent 65f21f8 commit 8790566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ import com.vacgom.backend.member.domain.Member
class MeResponse(
val id: String,
val nickname: String?,
val name: String,
val healthConditions: List<HealthConditionResponse>,
) {
companion object {
fun of(member: Member): MeResponse {
return MeResponse(
id = member.id.toString(),
nickname = member.nickname?.nickname,
name = member.memberDetails!!.name,
healthConditions = member.healthProfiles.map { HealthConditionResponse.of(it.healthCondition) },
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.vacgom.backend.member.presentation
import com.vacgom.backend.auth.application.dto.response.MeResponse
import com.vacgom.backend.disease.domain.constants.HealthCondition
import com.vacgom.backend.global.exception.error.BusinessException
import com.vacgom.backend.global.exception.error.GlobalError
import com.vacgom.backend.global.security.annotation.AuthId
import com.vacgom.backend.member.application.MemberService
import com.vacgom.backend.member.application.dto.request.UpdateHealthConditionRequest
Expand Down

0 comments on commit 8790566

Please sign in to comment.