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

namespace CncRepository.Interface
{
    /// <summary>
    /// 工人仓储接口
    /// </summary>
    public interface IWorkerRepository
    {
        Worker GetById(int id);
        PagedResult<WorkerListItem> GetList(WorkerQuery query);
        int Create(Worker entity);
        bool Update(Worker entity);
        bool Delete(int id);
        int BatchDelete(List<int> ids);
        bool ToggleEnabled(int id);
        Worker GetByCode(string code);
        List<Worker> GetAll();
    }
}
