forked from AcaMate/AcaMate_API
[🐛] 제대로 안잡혀서 2차 수정
This commit is contained in:
parent
73cfac228d
commit
da0e142a79
|
@ -2,7 +2,7 @@ namespace AcaMate.Common.Models;
|
||||||
|
|
||||||
public class APIResponseStatus<T>
|
public class APIResponseStatus<T>
|
||||||
{
|
{
|
||||||
public Status Status { get; set; }
|
public Status status { get; set; }
|
||||||
public T data { get; set; }
|
public T data { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public static class ErrorResponse
|
||||||
|
|
||||||
public static readonly APIResponseStatus<string> InvalidInputError = new APIResponseStatus<string>
|
public static readonly APIResponseStatus<string> InvalidInputError = new APIResponseStatus<string>
|
||||||
{
|
{
|
||||||
Status = new Status()
|
status = new Status()
|
||||||
{
|
{
|
||||||
code = "001",
|
code = "001",
|
||||||
message = "입력 값이 유효하지 않습니다."
|
message = "입력 값이 유효하지 않습니다."
|
||||||
|
@ -33,7 +33,7 @@ public static class ErrorResponse
|
||||||
|
|
||||||
public static readonly APIResponseStatus<string> NotFoundError = new APIResponseStatus<string>
|
public static readonly APIResponseStatus<string> NotFoundError = new APIResponseStatus<string>
|
||||||
{
|
{
|
||||||
Status = new Status()
|
status = new Status()
|
||||||
{
|
{
|
||||||
code = "002",
|
code = "002",
|
||||||
message = "알맞은 값을 찾을 수 없습니다."
|
message = "알맞은 값을 찾을 수 없습니다."
|
||||||
|
@ -42,7 +42,7 @@ public static class ErrorResponse
|
||||||
|
|
||||||
public static readonly APIResponseStatus<string> InternalSeverError = new APIResponseStatus<string>
|
public static readonly APIResponseStatus<string> InternalSeverError = new APIResponseStatus<string>
|
||||||
{
|
{
|
||||||
Status = new Status()
|
status = new Status()
|
||||||
{
|
{
|
||||||
code = "003",
|
code = "003",
|
||||||
message = "통신에 오류가 발생하였습니다."
|
message = "통신에 오류가 발생하였습니다."
|
||||||
|
@ -52,7 +52,7 @@ public static class ErrorResponse
|
||||||
|
|
||||||
public static readonly APIResponseStatus<string> UnknownError = new APIResponseStatus<string>
|
public static readonly APIResponseStatus<string> UnknownError = new APIResponseStatus<string>
|
||||||
{
|
{
|
||||||
Status = new Status()
|
status = new Status()
|
||||||
{
|
{
|
||||||
code = "999",
|
code = "999",
|
||||||
message = "알 수 없는 오류가 발생하였습니다.."
|
message = "알 수 없는 오류가 발생하였습니다.."
|
||||||
|
|
|
@ -39,7 +39,7 @@ public class AppController : ControllerBase
|
||||||
|
|
||||||
var response = new APIResponseStatus<Version>
|
var response = new APIResponseStatus<Version>
|
||||||
{
|
{
|
||||||
Status = new Status()
|
status = new Status()
|
||||||
{
|
{
|
||||||
code = "000",
|
code = "000",
|
||||||
message = "정상"
|
message = "정상"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user