improvement: 공통 응답/에러 포맷 고정 (#164) #198
No reviewers
SPMS/Owners
Labels
No Label
Priority
High
Priority
Low
Priority
Medium
Priority
Non
Priority
Urgent
Status
Available
Status
Done
Status
In Progress
Type
Bug
Type
Chore
Type
Design
Type
Documentation
Type
Feature
Type
Improvement
Type
Refactor
Type
Research
Type
Task
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SPMS/SPMS_API#198
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "improvement/#164-common-error-format"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 작업 요약
FieldErrorDTO 추가 및ApiResponse.ValidationFail()팩토리 메서드 확장ApiResponse포맷으로 반환return Unauthorized(...)패턴을throw SpmsException.Unauthorized(...)로 통일ValidationErrorDto→ 공통FieldError교체🔗 관련 이슈 (Related Issues)
Closes #164
🛠️ 작업 내용 (Changes)
SPMS.Domain/Common/FieldError.cs— 공통 FieldError DTO 신규 생성SPMS.Domain/Common/ApiResponse.cs— ValidationErrorData, ApiResponseExtensions.ValidationFail() 추가SPMS.API/Program.cs— InvalidModelStateResponseFactory 설정SPMS.API/Controllers/AuthController.cs— throw SpmsException.Unauthorized 통일 (2곳)SPMS.API/Controllers/ServiceController.cs— throw SpmsException.Unauthorized 통일 (1곳)SPMS.API/Controllers/ProfileController.cs— throw SpmsException.Unauthorized 통일 (2곳)SPMS.Application/DTOs/Message/MessageValidationResultDto.cs— ValidationErrorDto → FieldError 교체SPMS.Application/Services/MessageValidationService.cs— FieldError 사용으로 변경📢 리뷰어 참고 사항 (To Reviewers)
ErrorCodes.cs) 유지, PRD의DOMAIN_ACTION_REASON형식은 미적용ValidationErrorDto클래스는 삭제됨 (공통FieldError로 완전 대체)✅ 체크리스트 (Self Checklist)
📸 스크린샷 / 테스트 로그 (Screenshots/Logs)
[Improvement] WP-COM-01 공통 응답/에러 포맷 고정to improvement: 공통 응답/에러 포맷 고정 (#164)