using YBEE.EQM.Core;
namespace YBEE.EQM.Application;
///
/// 高中模拟划线计划管理服务
///
[ApiDescriptionSettings(Name = "ncee-plan")]
[Route("ncee/plan")]
public class NceePlanAppService : IDynamicApiController
{
private readonly INceePlanService _nceePlanService;
public NceePlanAppService(INceePlanService nceePlanService)
{
_nceePlanService = nceePlanService;
}
#region 创建更新
///
/// 添加计划
///
///
///
public async Task Add(AddNceePlanInput input)
{
await _nceePlanService.Add(input);
}
///
/// 更新计划
///
///
///
public async Task Update(UpdateNceePlanInput input)
{
await _nceePlanService.Update(input);
}
///
/// 删除计划
///
///
///
public async Task Del(BaseId input)
{
await _nceePlanService.Del(input);
}
#endregion
#region 状态变更
///
/// 开始监测
///
///
///
public async Task Start(BaseId input)
{
await _nceePlanService.Start(input);
}
///
/// 结束监测
///
///
///
public async Task Stop(BaseId input)
{
await _nceePlanService.Stop(input);
}
///
/// 取消监测
///
///
///
public async Task Cancel(BaseId input)
{
await _nceePlanService.Cancel(input);
}
#endregion
#region 查询统计
///
/// 根据ID获取计划
///
///
///
public async Task GetById(int id)
{
return await _nceePlanService.GetById(id);
}
///
/// 分页查询计划列表
///
///
///
public async Task> QueryPageList(NceePlanPageInput input)
{
return await _nceePlanService.QueryPageList(input);
}
///
/// 获取我的单据状态数量
///
///
public async Task> QueryStatusCount(NceePlanPageInput input)
{
return await _nceePlanService.QueryStatusCount(input);
}
#endregion
}