SPMS_API/SPMS.Domain/Interfaces/IServiceRepository.cs
seonkyu.kim c8a3d616c3 feat: IP 화이트리스트 관리 API 구현 (#50)
- IP 목록 조회, 추가, 삭제 API 구현
- IPv4 형식 검증 추가
- 중복 IP 체크 로직 추가

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-10 00:52:41 +09:00

20 lines
705 B
C#

using SPMS.Domain.Entities;
using SPMS.Domain.Enums;
namespace SPMS.Domain.Interfaces;
public interface IServiceRepository : IRepository<Service>
{
Task<Service?> GetByServiceCodeAsync(string serviceCode);
Task<Service?> GetByApiKeyAsync(string apiKey);
Task<Service?> GetByIdWithIpsAsync(long id);
Task<Service?> GetByServiceCodeWithIpsAsync(string serviceCode);
Task<IReadOnlyList<Service>> GetByStatusAsync(ServiceStatus status);
// ServiceIp methods
Task<ServiceIp?> GetServiceIpByIdAsync(long ipId);
Task<bool> ServiceIpExistsAsync(long serviceId, string ipAddress);
Task AddServiceIpAsync(ServiceIp serviceIp);
void DeleteServiceIp(ServiceIp serviceIp);
}