IRepository<T> Generic CRUD, IUnitOfWork 트랜잭션, 도메인별 특화 Repository 인터페이스 7종 정의 (Service, Admin, Device, Message, PushLog, File, Stat)
12 lines
378 B
C#
12 lines
378 B
C#
using SPMS.Domain.Entities;
|
|
using SPMS.Domain.Enums;
|
|
|
|
namespace SPMS.Domain.Interfaces;
|
|
|
|
public interface IDeviceRepository : IRepository<Device>
|
|
{
|
|
Task<Device?> GetByServiceAndTokenAsync(long serviceId, string deviceToken);
|
|
Task<int> GetActiveCountByServiceAsync(long serviceId);
|
|
Task<IReadOnlyList<Device>> GetByPlatformAsync(long serviceId, Platform platform);
|
|
}
|