[Feature] ApiResponse<T> 공통 응답 포맷 구현 #14

Closed
opened 2026-02-09 04:56:18 +00:00 by seonkyu.kim · 0 comments
Owner

설명

모든 API에서 사용할 통일된 응답 포맷 ApiResponse<T>를 구현한다.

ErrorCodes.cs는 Issue #10에서 이미 구현 완료되었으므로, 이 이슈에서는 ApiResponse 래퍼 클래스만 구현한다.

응답 형식

{
  "result": true | false,
  "code": "000",
  "msg": "",
  "data": {}
}

체크리스트

  • SPMS.Domain/Common/ApiResponse.cs — 공통 응답 래퍼 클래스
  • ApiResponse<T>.Success(data) 정적 팩토리 메서드
  • ApiResponse<T>.Fail(code, msg) 정적 팩토리 메서드
  • 빌드 성공 확인

참조

  • Documents/Error_Codes.md — 에러 코드 체계
  • SPMS.Domain/Common/ErrorCodes.cs — 에러 코드 상수 (구현 완료)
## 설명 모든 API에서 사용할 통일된 응답 포맷 `ApiResponse<T>`를 구현한다. ErrorCodes.cs는 Issue #10에서 이미 구현 완료되었으므로, 이 이슈에서는 ApiResponse 래퍼 클래스만 구현한다. ## 응답 형식 ```json { "result": true | false, "code": "000", "msg": "", "data": {} } ``` ## 체크리스트 - [x] `SPMS.Domain/Common/ApiResponse.cs` — 공통 응답 래퍼 클래스 - [x] `ApiResponse<T>.Success(data)` 정적 팩토리 메서드 - [x] `ApiResponse<T>.Fail(code, msg)` 정적 팩토리 메서드 - [x] 빌드 성공 확인 ## 참조 - `Documents/Error_Codes.md` — 에러 코드 체계 - `SPMS.Domain/Common/ErrorCodes.cs` — 에러 코드 상수 (구현 완료)
seonkyu.kim added the
Priority
Urgent
Status
Available
Type
Feature
labels 2026-02-09 04:56:35 +00:00
seonkyu.kim self-assigned this 2026-02-09 04:56:39 +00:00
seonkyu.kim added this to the Phase 1: 인프라 & 공통 모듈 milestone 2026-02-09 04:56:41 +00:00
seonkyu.kim added
Status
In Progress
and removed
Status
Available
labels 2026-02-09 05:00:27 +00:00
seonkyu.kim added
Status
Done
and removed
Status
In Progress
labels 2026-02-09 05:28:13 +00:00
Sign in to join this conversation.
No description provided.