Merge pull request '[🐛] 제대로 안잡혀서 2차 수정' (#5) from seonkyu.kim/AcaMate_API:main into debug
All checks were successful
Back/pipeline/head This commit looks good

Reviewed-on: https://git.ipstein.myds.me/AcaMate/AcaMate_API/pulls/5
This commit is contained in:
김선규 2024-11-29 01:59:02 +00:00
commit 71c487a108
2 changed files with 6 additions and 6 deletions

View File

@ -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 = "알 수 없는 오류가 발생하였습니다.."

View File

@ -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 = "정상"