[Improvement] 태그 관리 API 프론트엔드 연동 수정 (tag_index, service_id, 전체조회) #267

Closed
opened 2026-03-02 04:40:43 +00:00 by seonkyu.kim · 0 comments
Owner

배경

프론트엔드 태그 관리 페이지 연동 과정에서 3가지 문제 발견

수정 항목

1. tag_index 추가

  • TagSummaryDtotag_index 필드 추가
  • TagService.GetListAsync에서 서비스별 Id 순서 기준 1-based 순번 동적 계산
  • DB 변경 없음 (동적 계산이므로 삭제 시 자동 재정렬)

2. service_id 노출

  • ServiceSummaryDtoservice_id 필드 추가
  • ServiceResponseDtoservice_id 필드 추가
  • ServiceManagementServiceMapToSummaryDto, MapToDto 매핑 수정

3. X-Service-Code 없이 전체 태그 조회

  • ServiceCodeMiddleware의 OPTIONAL_FOR_ADMIN에 /v1/in/tag 경로 추가
  • TagController/TagService는 이미 serviceId null 처리 구현 완료

수정 파일

  • SPMS.Application/DTOs/Tag/TagListResponseDto.cs
  • SPMS.Application/Services/TagService.cs
  • SPMS.Application/DTOs/Service/ServiceListResponseDto.cs
  • SPMS.Application/DTOs/Service/ServiceResponseDto.cs
  • SPMS.Application/Services/ServiceManagementService.cs
  • SPMS.API/Middlewares/ServiceCodeMiddleware.cs
## 배경 프론트엔드 태그 관리 페이지 연동 과정에서 3가지 문제 발견 ## 수정 항목 ### 1. tag_index 추가 - [x] `TagSummaryDto`에 `tag_index` 필드 추가 - [x] `TagService.GetListAsync`에서 서비스별 Id 순서 기준 1-based 순번 동적 계산 - DB 변경 없음 (동적 계산이므로 삭제 시 자동 재정렬) ### 2. service_id 노출 - [x] `ServiceSummaryDto`에 `service_id` 필드 추가 - [x] `ServiceResponseDto`에 `service_id` 필드 추가 - [x] `ServiceManagementService`의 `MapToSummaryDto`, `MapToDto` 매핑 수정 ### 3. X-Service-Code 없이 전체 태그 조회 - [x] `ServiceCodeMiddleware`의 OPTIONAL_FOR_ADMIN에 `/v1/in/tag` 경로 추가 - TagController/TagService는 이미 serviceId null 처리 구현 완료 ## 수정 파일 - `SPMS.Application/DTOs/Tag/TagListResponseDto.cs` - `SPMS.Application/Services/TagService.cs` - `SPMS.Application/DTOs/Service/ServiceListResponseDto.cs` - `SPMS.Application/DTOs/Service/ServiceResponseDto.cs` - `SPMS.Application/Services/ServiceManagementService.cs` - `SPMS.API/Middlewares/ServiceCodeMiddleware.cs`
seonkyu.kim added the
Priority
High
Status
In Progress
Type
Improvement
labels 2026-03-02 04:40:53 +00:00
seonkyu.kim self-assigned this 2026-03-02 04:40:53 +00:00
seonkyu.kim added this to the Phase 3: 운영 기능 milestone 2026-03-02 04:40:54 +00:00
seonkyu.kim added
Status
Done
and removed
Status
In Progress
labels 2026-03-02 05:02:33 +00:00
Sign in to join this conversation.
No description provided.