using System;
using CncModels.Entity;
using CncModels.Dto;

namespace CncRepository.Interface
{
    /// <summary>
    /// 日志库：原始采集记录仓储接口
    /// </summary>
    public interface ICollectRawRepository
    {
        CollectRaw GetById(long id);

        PagedResult<CollectRaw> GetByAddressId(int collectAddressId, int page, int pageSize);

        PagedResult<CollectRaw> GetAll(int page, int pageSize);

        CollectRaw GetLatestByAddressId(int collectAddressId);

        long Create(CollectRaw entity);

        int DeleteBeforeDate(DateTime date);
    }
}
