using System.Collections.Generic;
using CncModels.Entity;
using CncModels.Dto.CollectAddress;
using CncModels.Dto;

namespace CncRepository.Interface
{
    /// <summary>
    /// 采集地址仓储接口
    /// </summary>
    public interface ICollectAddressRepository
    {
        CollectAddress GetById(int id);
        PagedResult<CollectAddressListItem> GetList(CollectAddressQuery query);
        int Create(CollectAddress entity);
        bool Update(CollectAddress entity);
        bool Delete(int id);
        int BatchDelete(List<int> ids);
        bool ToggleEnabled(int id);
        List<CollectAddress> GetEnabledList();
        int GetMachineCount(int collectAddressId);
    }
}
