using YBEE.EQM.Core; namespace YBEE.EQM.Application; /// /// 高中模拟划线计划管理服务 /// [ApiDescriptionSettings(Name = "ncee-plan")] [Route("ncee/plan")] public class NceePlanAppService(INceePlanService nceePlanService) : IDynamicApiController { #region 创建更新 /// /// 添加计划 /// /// /// public async Task Add(AddNceePlanInput input) { await nceePlanService.Add(input); } /// /// 更新计划 /// /// /// public async Task Update(UpdateNceePlanInput input) { await nceePlanService.Update(input); } /// /// 更新配置 /// /// /// public async Task UpdateConfig(UpdateNceePlanConfigInput input) { await nceePlanService.UpdateConfig(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 }