- IP 목록 조회, 추가, 삭제 API 구현 - IPv4 형식 검증 추가 - 중복 IP 체크 로직 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
705 B
C#
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);
|
|
}
|