IExamDataReportService.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. using Furion.JsonSerialization;
  2. using YBEE.EQM.Core;
  3. namespace YBEE.EQM.Application;
  4. /// <summary>
  5. /// 监测数据上报类型管理服务
  6. /// </summary>
  7. public interface IExamDataReportService
  8. {
  9. #region 创建更新
  10. /// <summary>
  11. /// 添加上报类型
  12. /// </summary>
  13. /// <param name="input"></param>
  14. /// <returns></returns>
  15. Task Add(AddExamDataReportInput input);
  16. /// <summary>
  17. /// 更新上报类型
  18. /// </summary>
  19. /// <param name="input"></param>
  20. /// <returns></returns>
  21. Task Update(UpdateExamDataReportInput input);
  22. /// <summary>
  23. /// 删除上报类型
  24. /// </summary>
  25. /// <param name="input"></param>
  26. /// <returns></returns>
  27. Task Del(BaseId input);
  28. /// <summary>
  29. /// 添加附件
  30. /// </summary>
  31. /// <param name="input"></param>
  32. /// <returns></returns>
  33. Task AddAttachment(AddAttachmentInput input);
  34. /// <summary>
  35. /// 删除附件
  36. /// </summary>
  37. /// <param name="input"></param>
  38. /// <returns></returns>
  39. Task DelAttachment(DeleteAttachmentInput input);
  40. #endregion
  41. #region 状态处理
  42. /// <summary>
  43. /// 开始
  44. /// </summary>
  45. /// <param name="input"></param>
  46. /// <returns></returns>
  47. Task Start(BaseId input);
  48. /// <summary>
  49. /// 结束
  50. /// </summary>
  51. /// <param name="input"></param>
  52. /// <returns></returns>
  53. Task Stop(BaseId input);
  54. /// <summary>
  55. /// 取消
  56. /// </summary>
  57. /// <param name="input"></param>
  58. /// <returns></returns>
  59. Task Cancel(BaseId input);
  60. #endregion
  61. #region 查询
  62. /// <summary>
  63. /// 根据ID获取监测数据上报类型
  64. /// </summary>
  65. /// <param name="id"></param>
  66. /// <returns></returns>
  67. Task<ExamDataReportOutput> GetById(int id);
  68. /// <summary>
  69. /// 根据监测计划ID获取数据上报类型列表
  70. /// </summary>
  71. /// <param name="examPlanId"></param>
  72. /// <returns></returns>
  73. Task<List<ExamDataReportOutput>> GetListByExamPlanId(int examPlanId);
  74. #endregion
  75. }