From fdbb7e4c133ab7bcb7052e7530846b9554eb742a Mon Sep 17 00:00:00 2001 From: JaeHyeonSim Date: Sun, 25 Feb 2024 00:18:24 +0900 Subject: [PATCH] =?UTF-8?q?:recycle:=20refactor:=20=EB=84=A4=EC=9D=B4?= =?UTF-8?q?=EB=B0=8D=20=EB=93=B1=20=ED=94=BC=EB=93=9C=EB=B0=B1=20=EC=82=AC?= =?UTF-8?q?=ED=95=AD=20=EB=B0=98=EC=98=81=20[#46]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/study/dongamboard/api/Utils.kt | 2 +- app/src/main/java/com/study/dongamboard/type/UserRole.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/study/dongamboard/api/Utils.kt b/app/src/main/java/com/study/dongamboard/api/Utils.kt index 29501c2..2188536 100644 --- a/app/src/main/java/com/study/dongamboard/api/Utils.kt +++ b/app/src/main/java/com/study/dongamboard/api/Utils.kt @@ -41,7 +41,7 @@ class Utils(context: Context) { ResponseStatus.NOT_FOUND.code -> errorMsg = ResponseStatus.NOT_FOUND.message ResponseStatus.CONFLICT.code -> errorMsg = ResponseStatus.CONFLICT.message ResponseStatus.INTERNET_SERVER_ERROR.code -> errorMsg = ResponseStatus.INTERNET_SERVER_ERROR.message - else -> errorMsg = "알 수 없는 오류" + else -> errorMsg = statusCode.toString() } if (DEBUG) { Log.e(TAG, "$statusCode $errorMsg") diff --git a/app/src/main/java/com/study/dongamboard/type/UserRole.kt b/app/src/main/java/com/study/dongamboard/type/UserRole.kt index f9a054b..97b7949 100644 --- a/app/src/main/java/com/study/dongamboard/type/UserRole.kt +++ b/app/src/main/java/com/study/dongamboard/type/UserRole.kt @@ -1,6 +1,6 @@ package com.study.dongamboard.type enum class UserRole { - USER, - ADMIN + ROLE_USER, + ROLE_ADMIN } \ No newline at end of file