Merge pull request '[🐛] API Response 의 Status에서 출력 KEY 대소문자 수정' (#4) from seonkyu.kim/AcaMate_API:main into debug
All checks were successful
Back/pipeline/head This commit looks good
All checks were successful
Back/pipeline/head This commit looks good
Reviewed-on: https://git.ipstein.myds.me/AcaMate/AcaMate_API/pulls/4
This commit is contained in:
commit
885557713a
|
@ -8,8 +8,8 @@ public class APIResponseStatus<T>
|
||||||
|
|
||||||
public class Status
|
public class Status
|
||||||
{
|
{
|
||||||
public string Code { get; set; }
|
public string code { get; set; }
|
||||||
public string Message { get; set; }
|
public string message { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class ErrorResponse
|
public static class ErrorResponse
|
||||||
|
@ -26,8 +26,8 @@ public static class ErrorResponse
|
||||||
{
|
{
|
||||||
Status = new Status()
|
Status = new Status()
|
||||||
{
|
{
|
||||||
Code = "001",
|
code = "001",
|
||||||
Message = "입력 값이 유효하지 않습니다."
|
message = "입력 값이 유효하지 않습니다."
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -35,8 +35,8 @@ public static class ErrorResponse
|
||||||
{
|
{
|
||||||
Status = new Status()
|
Status = new Status()
|
||||||
{
|
{
|
||||||
Code = "002",
|
code = "002",
|
||||||
Message = "알맞은 값을 찾을 수 없습니다."
|
message = "알맞은 값을 찾을 수 없습니다."
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -44,8 +44,8 @@ public static class ErrorResponse
|
||||||
{
|
{
|
||||||
Status = new Status()
|
Status = new Status()
|
||||||
{
|
{
|
||||||
Code = "003",
|
code = "003",
|
||||||
Message = "통신에 오류가 발생하였습니다."
|
message = "통신에 오류가 발생하였습니다."
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -54,8 +54,8 @@ public static class ErrorResponse
|
||||||
{
|
{
|
||||||
Status = new Status()
|
Status = new Status()
|
||||||
{
|
{
|
||||||
Code = "999",
|
code = "999",
|
||||||
Message = "알 수 없는 오류가 발생하였습니다.."
|
message = "알 수 없는 오류가 발생하였습니다.."
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,8 +41,8 @@ public class AppController : ControllerBase
|
||||||
{
|
{
|
||||||
Status = new Status()
|
Status = new Status()
|
||||||
{
|
{
|
||||||
Code = "000",
|
code = "000",
|
||||||
Message = "정상"
|
message = "정상"
|
||||||
},
|
},
|
||||||
data = new Version()
|
data = new Version()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user