improvement: 태그 관리 API 프론트엔드 연동 수정 (#267) #268

Merged
seonkyu.kim merged 1 commits from improvement/#267-tag-api-frontend-fix into develop 2026-03-02 05:01:37 +00:00
Owner

📋 작업 요약

  • 태그 목록 응답에 tag_index 필드 추가 (서비스별 순번 동적 계산)
  • 서비스 목록/상세 응답에 service_id 필드 추가
  • X-Service-Code 헤더 없이 전체 서비스 태그 조회 지원

Closes #267

🛠️ 작업 내용 (Changes)

  • SPMS.Application/DTOs/Tag/TagListResponseDto.cs — TagSummaryDto에 tag_index 필드 추가
  • SPMS.Application/Services/TagService.cs — GetListAsync에서 서비스별 Id 순서 기준 1-based 순번 동적 계산
  • SPMS.Application/DTOs/Service/ServiceListResponseDto.cs — ServiceSummaryDto에 ServiceId 추가
  • SPMS.Application/DTOs/Service/ServiceResponseDto.cs — ServiceResponseDto에 ServiceId 추가
  • SPMS.Application/Services/ServiceManagementService.cs — MapToSummaryDto, MapToDto 매핑에 ServiceId 추가
  • SPMS.API/Middlewares/ServiceCodeMiddleware.cs — OPTIONAL_FOR_ADMIN에 /v1/in/tag 경로 추가

📢 리뷰어 참고 사항 (To Reviewers)

  • tag_index는 DB 컬럼 없이 동적 계산 (서비스당 최대 10개이므로 성능 이슈 없음)
  • 태그 삭제 후 재조회 시 자동으로 순번 재정렬됨
  • TagController/TagService는 이미 serviceId null 처리가 구현되어 있어 미들웨어 수정만으로 전체 조회 지원

체크리스트 (Self Checklist)

  • 빌드(Build)가 성공적으로 수행되었는가?
  • 모든 단위 테스트(Unit Test)를 통과하였는가?
  • 불필요한 로그나 주석을 제거하였는가?
  • 컨벤션(Clean Architecture, Naming)을 준수하였는가?
  • 기밀 정보(비밀번호, 키 등)가 하드코딩 되어있지 않은가?

📸 스크린샷 / 테스트 로그 (Screenshots/Logs)

빌드 성공: 경고 0개, 오류 0개

## 📋 작업 요약 - 태그 목록 응답에 `tag_index` 필드 추가 (서비스별 순번 동적 계산) - 서비스 목록/상세 응답에 `service_id` 필드 추가 - `X-Service-Code` 헤더 없이 전체 서비스 태그 조회 지원 ## 🔗 관련 이슈 (Related Issues) Closes #267 ## 🛠️ 작업 내용 (Changes) - [x] `SPMS.Application/DTOs/Tag/TagListResponseDto.cs` — TagSummaryDto에 tag_index 필드 추가 - [x] `SPMS.Application/Services/TagService.cs` — GetListAsync에서 서비스별 Id 순서 기준 1-based 순번 동적 계산 - [x] `SPMS.Application/DTOs/Service/ServiceListResponseDto.cs` — ServiceSummaryDto에 ServiceId 추가 - [x] `SPMS.Application/DTOs/Service/ServiceResponseDto.cs` — ServiceResponseDto에 ServiceId 추가 - [x] `SPMS.Application/Services/ServiceManagementService.cs` — MapToSummaryDto, MapToDto 매핑에 ServiceId 추가 - [x] `SPMS.API/Middlewares/ServiceCodeMiddleware.cs` — OPTIONAL_FOR_ADMIN에 /v1/in/tag 경로 추가 ## 📢 리뷰어 참고 사항 (To Reviewers) - tag_index는 DB 컬럼 없이 동적 계산 (서비스당 최대 10개이므로 성능 이슈 없음) - 태그 삭제 후 재조회 시 자동으로 순번 재정렬됨 - TagController/TagService는 이미 serviceId null 처리가 구현되어 있어 미들웨어 수정만으로 전체 조회 지원 ## ✅ 체크리스트 (Self Checklist) - [x] 빌드(Build)가 성공적으로 수행되었는가? - [x] 모든 단위 테스트(Unit Test)를 통과하였는가? - [x] 불필요한 로그나 주석을 제거하였는가? - [x] 컨벤션(Clean Architecture, Naming)을 준수하였는가? - [x] 기밀 정보(비밀번호, 키 등)가 하드코딩 되어있지 않은가? ## 📸 스크린샷 / 테스트 로그 (Screenshots/Logs) 빌드 성공: 경고 0개, 오류 0개
seonkyu.kim added 1 commit 2026-03-02 04:44:17 +00:00
- TagSummaryDto에 tag_index 필드 추가 (서비스별 Id 순서 1-based 동적 계산)
- ServiceSummaryDto/ServiceResponseDto에 service_id 필드 추가
- ServiceCodeMiddleware OPTIONAL_FOR_ADMIN에 /v1/in/tag 경로 추가

Closes #267
seonkyu.kim added the
Priority
High
Status
In Progress
Type
Improvement
labels 2026-03-02 04:44:23 +00:00
seonkyu.kim self-assigned this 2026-03-02 04:44:23 +00:00
seonkyu.kim added this to the Phase 3: 운영 기능 milestone 2026-03-02 04:44:24 +00:00
seonkyu.kim requested review from Owners 2026-03-02 04:44:29 +00:00
seonkyu.kim merged commit 165328b7df into develop 2026-03-02 05:01:37 +00:00
seonkyu.kim deleted branch improvement/#267-tag-api-frontend-fix 2026-03-02 05:01:46 +00:00
seonkyu.kim added
Status
Done
and removed
Status
In Progress
labels 2026-03-02 05:02:34 +00:00
Sign in to join this conversation.
No description provided.