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

namespace CncRepository.Interface
{
    /// <summary>
    /// 车间仓储接口
    /// </summary>
    public interface IWorkshopRepository
    {
        Workshop GetById(int id);
        List<Workshop> GetAll();
        PagedResult<Workshop> GetList(string keyword);
        int Create(Workshop entity);
        bool Update(Workshop entity);
        bool Delete(int id);
        bool ToggleEnabled(int id);
        int GetMachineCount(int workshopId);
    }
}
