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

namespace CncService.Interface
{
    /// <summary>
    /// 车间管理服务接口
    /// </summary>
    public interface IWorkshopService
    {
        /// <summary>获取车间列表</summary>
        List<WorkshopListItem> GetList(string keyword);

        /// <summary>按ID获取车间</summary>
        Workshop GetById(int id);

        /// <summary>新增车间</summary>
        int Create(CreateWorkshopRequest request);

        /// <summary>编辑车间</summary>
        bool Update(int id, UpdateWorkshopRequest request);

        /// <summary>删除车间</summary>
        bool Delete(int id);

        /// <summary>启停车间</summary>
        bool ToggleEnabled(int id);

        /// <summary>获取车间下机床数量</summary>
        int GetMachineCount(int workshopId);
    }
}
