INceePlanService.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 高考划线计划管理服务
  5. /// </summary>
  6. public interface INceePlanService
  7. {
  8. #region 创建更新
  9. /// <summary>
  10. /// 添加计划
  11. /// </summary>
  12. /// <param name="input"></param>
  13. /// <returns></returns>
  14. Task Add(AddNceePlanInput input);
  15. /// <summary>
  16. /// 更新计划
  17. /// </summary>
  18. /// <param name="input"></param>
  19. /// <returns></returns>
  20. Task Update(UpdateNceePlanInput input);
  21. /// <summary>
  22. /// 删除计划
  23. /// </summary>
  24. /// <param name="input"></param>
  25. /// <returns></returns>
  26. Task Del(BaseId input);
  27. #endregion
  28. #region 状态变更
  29. /// <summary>
  30. /// 开始监测
  31. /// </summary>
  32. /// <param name="input"></param>
  33. /// <returns></returns>
  34. Task Start(BaseId input);
  35. /// <summary>
  36. /// 结束监测
  37. /// </summary>
  38. /// <param name="input"></param>
  39. /// <returns></returns>
  40. Task Stop(BaseId input);
  41. /// <summary>
  42. /// 取消监测
  43. /// </summary>
  44. /// <param name="input"></param>
  45. /// <returns></returns>
  46. Task Cancel(BaseId input);
  47. #endregion
  48. #region 查询统计
  49. /// <summary>
  50. /// 根据ID获取计划
  51. /// </summary>
  52. /// <param name="id"></param>
  53. /// <returns></returns>
  54. Task<NceePlanOutput> GetById(int id);
  55. /// <summary>
  56. /// 分页查询计划列表
  57. /// </summary>
  58. /// <param name="input"></param>
  59. /// <returns></returns>
  60. Task<PageResult<NceePlanOutput>> QueryPageList(NceePlanPageInput input);
  61. /// <summary>
  62. /// 获取我的单据状态数量
  63. /// </summary>
  64. /// <returns></returns>
  65. Task<List<StatusCount>> QueryStatusCount(NceePlanPageInput input);
  66. #endregion
  67. }