From 59fa5bd014bc1544043391f34ae2bf90ae973ec5 Mon Sep 17 00:00:00 2001 From: Seonkyu_Kim Date: Thu, 27 Feb 2025 15:44:15 +0900 Subject: [PATCH] =?UTF-8?q?[=E2=99=BB=EF=B8=8F]=20PUSH=20API=20=EB=A6=AC?= =?UTF-8?q?=ED=8C=A9=ED=86=A0=EB=A7=81=20=EC=A7=84=ED=96=89=20=EC=A4=91=5F?= =?UTF-8?q?2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program/Common/Model/Status.cs | 6 +++--- Program/V1/Controllers/PushController.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Program/Common/Model/Status.cs b/Program/Common/Model/Status.cs index acbf040..6259732 100644 --- a/Program/Common/Model/Status.cs +++ b/Program/Common/Model/Status.cs @@ -44,17 +44,17 @@ public static class APIResponse public static APIResponseStatus InvalidInputError() { - return Send("001", "입력 값이 유효하지 않습니다.", ""); + return Send("100", "입력 값이 유효하지 않습니다.", ""); } public static APIResponseStatus NotFoundError() { - return Send("002", "알맞은 값을 찾을 수 없습니다.", ""); + return Send("200", "알맞은 값을 찾을 수 없습니다.", ""); } public static APIResponseStatus InternalSeverError() { - return Send("003", "통신에 오류가 발생하였습니다.", ""); + return Send("300", "통신에 오류가 발생하였습니다.", ""); } public static APIResponseStatus UnknownError() diff --git a/Program/V1/Controllers/PushController.cs b/Program/V1/Controllers/PushController.cs index 5eaa6b5..c3b1428 100644 --- a/Program/V1/Controllers/PushController.cs +++ b/Program/V1/Controllers/PushController.cs @@ -15,8 +15,8 @@ public class PushController : ControllerBase { private readonly IWebHostEnvironment _env; - private readonly Logger _logger; - public PushController(IWebHostEnvironment env, Logger logger) + private readonly ILogger _logger; + public PushController(IWebHostEnvironment env, ILogger logger) { _env = env; _logger = logger;