SPMS_API/SPMS.Application/DTOs/Service/ServiceListResponseDto.cs
SEAN 1ca4980293 improvement: 태그 관리 API 프론트엔드 연동 수정 (#267)
- TagSummaryDto에 tag_index 필드 추가 (서비스별 Id 순서 1-based 동적 계산)
- ServiceSummaryDto/ServiceResponseDto에 service_id 필드 추가
- ServiceCodeMiddleware OPTIONAL_FOR_ADMIN에 /v1/in/tag 경로 추가

Closes #267
2026-03-02 13:43:14 +09:00

24 lines
829 B
C#

namespace SPMS.Application.DTOs.Service;
public class ServiceListResponseDto
{
public List<ServiceSummaryDto> Items { get; set; } = new();
public int TotalCount { get; set; }
public int Page { get; set; }
public int PageSize { get; set; }
public int TotalPages => (int)Math.Ceiling((double)TotalCount / PageSize);
}
public class ServiceSummaryDto
{
public long ServiceId { get; set; }
public string ServiceCode { get; set; } = string.Empty;
public string ServiceName { get; set; } = string.Empty;
public string? Description { get; set; }
public string SubTier { get; set; } = string.Empty;
public string Status { get; set; } = string.Empty;
public DateTime CreatedAt { get; set; }
public int DeviceCount { get; set; }
public PlatformSummaryDto? Platforms { get; set; }
}