[♻️] PUSH API 리팩토링 진행 중_2
This commit is contained in:
parent
29072037a0
commit
59fa5bd014
|
@ -44,17 +44,17 @@ public static class APIResponse
|
||||||
|
|
||||||
public static APIResponseStatus<string> InvalidInputError()
|
public static APIResponseStatus<string> InvalidInputError()
|
||||||
{
|
{
|
||||||
return Send("001", "입력 값이 유효하지 않습니다.", "");
|
return Send("100", "입력 값이 유효하지 않습니다.", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static APIResponseStatus<string> NotFoundError()
|
public static APIResponseStatus<string> NotFoundError()
|
||||||
{
|
{
|
||||||
return Send("002", "알맞은 값을 찾을 수 없습니다.", "");
|
return Send("200", "알맞은 값을 찾을 수 없습니다.", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static APIResponseStatus<string> InternalSeverError()
|
public static APIResponseStatus<string> InternalSeverError()
|
||||||
{
|
{
|
||||||
return Send("003", "통신에 오류가 발생하였습니다.", "");
|
return Send("300", "통신에 오류가 발생하였습니다.", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static APIResponseStatus<string> UnknownError()
|
public static APIResponseStatus<string> UnknownError()
|
||||||
|
|
|
@ -15,8 +15,8 @@ public class PushController : ControllerBase
|
||||||
{
|
{
|
||||||
|
|
||||||
private readonly IWebHostEnvironment _env;
|
private readonly IWebHostEnvironment _env;
|
||||||
private readonly Logger<PushController> _logger;
|
private readonly ILogger<PushController> _logger;
|
||||||
public PushController(IWebHostEnvironment env, Logger<PushController> logger)
|
public PushController(IWebHostEnvironment env, ILogger<PushController> logger)
|
||||||
{
|
{
|
||||||
_env = env;
|
_env = env;
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user