IExamDataReportService.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 监测数据上报类型管理服务
  5. /// </summary>
  6. public interface IExamDataReportService
  7. {
  8. #region 创建更新
  9. /// <summary>
  10. /// 添加上报类型
  11. /// </summary>
  12. /// <param name="input"></param>
  13. /// <returns></returns>
  14. Task Add(AddExamDataReportInput input);
  15. /// <summary>
  16. /// 更新上报类型
  17. /// </summary>
  18. /// <param name="input"></param>
  19. /// <returns></returns>
  20. Task Update(UpdateExamDataReportInput 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<ExamDataReportOutput> GetById(int id);
  55. /// <summary>
  56. /// 根据监测计划ID获取数据上报类型列表
  57. /// </summary>
  58. /// <param name="examPlanId"></param>
  59. /// <returns></returns>
  60. Task<List<ExamDataReportOutput>> GetListByExamPlanId(int examPlanId);
  61. #endregion
  62. }