Skip to content

Commit

Permalink
불필요한 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
plgafhd committed Feb 7, 2025
1 parent 56b89bd commit 06da804
Showing 1 changed file with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ object ErrorCode {
const val INVALID_EMAIL = 0x300F
const val VACANCY_PREV_SEMESTER = 0x9C45
const val VACANCY_DUPLICATE = 0x9FC4
const val EMAIL_ALREADY_USING = 0x9FC5
const val INVALID_NICKNAME = 0x9C48

/* 401 - Request was invalid */
Expand Down Expand Up @@ -398,25 +397,10 @@ object ErrorCode {
const val EMAIL_NOT_FOUND = 0x4006
}

private fun detailToString(detail: String?): String {
return when (detail) {
"LOCAL" -> "로컬"
"FACEBOOK" -> "페이스북"
"GOOGLE" -> "구글"
"KAKAO" -> "카카오"
else -> ""
}
}

@JsonClass(generateAdapter = true)
data class ErrorDTO(
@Json(name = "errcode") val code: Int? = null,
@Json(name = "message") val message: String? = null,
@Json(name = "displayMessage") val displayMessage: String? = null,
@Json(name = "ext") val ext: Map<String, String>? = null,
@Json(name = "detail") val detail: ErrorDetail? = null,
) {
data class ErrorDetail(
@Json(name = "socialProvider") val socialProvider: String? = null,
)
}
)

0 comments on commit 06da804

Please sign in to comment.