-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#13 API Response Code(결과코드) Enum 변경 처리
- 하드코딩 결과코드(BaseResponse.setCode) 일괄변경 - 테스트 코드 일괄변경
- Loading branch information
1 parent
7df39f1
commit 2230a20
Showing
11 changed files
with
207 additions
and
144 deletions.
There are no files selected for viewing
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,61 @@ | ||
package kr.co.hconnect.common; | ||
|
||
/** | ||
* API 결과코드 정보 | ||
*/ | ||
public enum ApiResponseCode { | ||
|
||
/** | ||
* 정상 처리 | ||
*/ | ||
SUCCESS("00"), | ||
/** | ||
* 로그인 비밀번호 불일치 | ||
*/ | ||
NOT_MATCH_PATIENT_PASSWORD("10"), | ||
/** | ||
* 환자정보가 존재하지 않는 경우 | ||
*/ | ||
NOT_FOUND_PATIENT_INFO("11"), | ||
/** | ||
* 동일한 환자정보가 존재하는 경우 | ||
*/ | ||
DUPLICATE_PATIENT_INFO("12"), | ||
/** | ||
* 동일한 로그인ID 존재하는 경우 | ||
*/ | ||
DUPLICATE_PATIENT_LOGIN_ID("13"), | ||
/** | ||
* 격리상태 내역이 존재하지 않는 경우 | ||
*/ | ||
NOT_FOUND_QUARANTINE_INFO("14"), | ||
|
||
/** | ||
* 내원중인 격리/입소내역이 존재하지 않는 경우 | ||
*/ | ||
NOT_FOUND_ADMISSION_INFO("21"), | ||
/** | ||
* 내원중인 격리/입소내역이 중복된 경우 | ||
*/ | ||
DUPLICATE_ACTIVE_ADMISSION_INFO("22"), | ||
|
||
|
||
/** | ||
* 유효하지 않은 요청 파라메터 코드 | ||
*/ | ||
CODE_INVALID_REQUEST_PARAMETER("99"); | ||
|
||
private final String code; | ||
|
||
/** | ||
* 생성자 | ||
* @param code 반환 코드 | ||
*/ | ||
ApiResponseCode(String code) { | ||
this.code = code; | ||
} | ||
|
||
public String getCode() { | ||
return code; | ||
} | ||
} |
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
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
Oops, something went wrong.