From 2674b210d43e5121c9c973227ba80c8c7a85e5c6 Mon Sep 17 00:00:00 2001 From: gahyuun Date: Fri, 11 Oct 2024 23:31:28 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20response=20code=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/api/constant.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 app/utils/api/constant.ts diff --git a/app/utils/api/constant.ts b/app/utils/api/constant.ts new file mode 100644 index 0000000..6f32c4c --- /dev/null +++ b/app/utils/api/constant.ts @@ -0,0 +1,26 @@ +export const RESPONSE_CODE = { + // USER + UNREGISTERED_USER: '', + INVALIDATED_STUDENT_NUMBER_TYPE: '', + INVALIDATED_PASSWORD_TPYE: '', + MISMATCHED_PASSWORD: '', + NOT_FOUND_AUTHID: '', + INVALIDATED_AUTHID_TYPE: '', + INCORRECT_PASSWORD: '', + DUPLICATED_STUDENT_NUMBER: '', + DUPLICATED_AUTHID: '', + UNSUPPORTED_STUDENT_NUMBER: '', + INVALIDATED_AUTH_TOKEN: '', + + // COMMON + INTERNAL_SEVER_ERROR: '예상치 못한 에러가 발생했습니다.', + + // RESULT + INVALIDATED_GRADUATION_CATEGORY: '', + UNFITTED_GRADUATION_CATEGORY: '', + + // LECTURE (아래 세개 모두 PDF Parsing에서 발생하는 에러) + INCORRECT_STUDENT_NUMBER: '', + NON_EXISTED_LECTURE: '', + UNSUPPORTED_STUDENT_CATEGORY: '', +} as const; From 7cb048041aebc7f0a4c70b09f00ba24c70dcef19 Mon Sep 17 00:00:00 2001 From: gahyuun Date: Sat, 12 Oct 2024 21:44:40 +0900 Subject: [PATCH 2/2] chore: RESPONSE_CODE -> ERROR_CODE --- app/utils/api/constant.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/api/constant.ts b/app/utils/api/constant.ts index 6f32c4c..6685462 100644 --- a/app/utils/api/constant.ts +++ b/app/utils/api/constant.ts @@ -1,4 +1,4 @@ -export const RESPONSE_CODE = { +export const ERROR_CODE = { // USER UNREGISTERED_USER: '', INVALIDATED_STUDENT_NUMBER_TYPE: '',