zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Domain/Aggregates/DeviceAggregate/IDeviceRepository.cs
2023-12-05 17:22:48 +08:00

12 lines
655 B
C#

using ZeroFramework.DeviceCenter.Domain.Constants;
using ZeroFramework.DeviceCenter.Domain.Repositories;
namespace ZeroFramework.DeviceCenter.Domain.Aggregates.DeviceAggregate
{
public interface IDeviceRepository : IRepository<Device, long>
{
Task<List<Device>> GetListAsync(int? productId, int? deviceGroupId, DeviceStatus? status, string? deviceName, int pageNumber = 1, int pageSize = PagingConstants.DefaultPageSize, CancellationToken cancellationToken = default);
Task<int> GetCountAsync(int? productId, int? deviceGroupId, DeviceStatus? status, string? deviceName, CancellationToken cancellationToken = default);
}
}