From 73cfac228dc202b3a6b8d5b4895465ebf4d1430d Mon Sep 17 00:00:00 2001 From: "seonkyu.kim" Date: Fri, 29 Nov 2024 09:29:46 +0900 Subject: [PATCH] =?UTF-8?q?[=F0=9F=90=9B]=20API=20Response=20=EC=9D=98=20S?= =?UTF-8?q?tatus=EC=97=90=EC=84=9C=20=EC=B6=9C=EB=A0=A5=20KEY=20=EB=8C=80?= =?UTF-8?q?=EC=86=8C=EB=AC=B8=EC=9E=90=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program/Common/Model/Status.cs | 20 ++++++++++---------- Program/V1/Controllers/AppController.cs | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Program/Common/Model/Status.cs b/Program/Common/Model/Status.cs index 60f4939..553aa3a 100644 --- a/Program/Common/Model/Status.cs +++ b/Program/Common/Model/Status.cs @@ -8,8 +8,8 @@ public class APIResponseStatus public class Status { - public string Code { get; set; } - public string Message { get; set; } + public string code { get; set; } + public string message { get; set; } } public static class ErrorResponse @@ -26,8 +26,8 @@ public static class ErrorResponse { Status = new Status() { - Code = "001", - Message = "입력 값이 유효하지 않습니다." + code = "001", + message = "입력 값이 유효하지 않습니다." } }; @@ -35,8 +35,8 @@ public static class ErrorResponse { Status = new Status() { - Code = "002", - Message = "알맞은 값을 찾을 수 없습니다." + code = "002", + message = "알맞은 값을 찾을 수 없습니다." } }; @@ -44,8 +44,8 @@ public static class ErrorResponse { Status = new Status() { - Code = "003", - Message = "통신에 오류가 발생하였습니다." + code = "003", + message = "통신에 오류가 발생하였습니다." } }; @@ -54,8 +54,8 @@ public static class ErrorResponse { Status = new Status() { - Code = "999", - Message = "알 수 없는 오류가 발생하였습니다.." + code = "999", + message = "알 수 없는 오류가 발생하였습니다.." } }; } diff --git a/Program/V1/Controllers/AppController.cs b/Program/V1/Controllers/AppController.cs index 25de08f..b8a1e3d 100644 --- a/Program/V1/Controllers/AppController.cs +++ b/Program/V1/Controllers/AppController.cs @@ -41,8 +41,8 @@ public class AppController : ControllerBase { Status = new Status() { - Code = "000", - Message = "정상" + code = "000", + message = "정상" }, data = new Version() {