IExamDataPublishService.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 监测发布内容管理服务
  5. /// </summary>
  6. public interface IExamDataPublishService
  7. {
  8. #region 创建更新
  9. /// <summary>
  10. /// 添加发布内容
  11. /// </summary>
  12. /// <param name="input"></param>
  13. /// <returns></returns>
  14. Task Add(AddExamDataPublishInput input);
  15. /// <summary>
  16. /// 更新发布内容
  17. /// </summary>
  18. /// <param name="input"></param>
  19. /// <returns></returns>
  20. Task Update(UpdateExamDataPublishInput 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 Publish(BaseId input);
  35. /// <summary>
  36. /// 取消
  37. /// </summary>
  38. /// <param name="input"></param>
  39. /// <returns></returns>
  40. Task Unpublish(BaseId input);
  41. #endregion
  42. #region 查询
  43. /// <summary>
  44. /// 根据ID获取监测数据发布内容
  45. /// </summary>
  46. /// <param name="id"></param>
  47. /// <returns></returns>
  48. Task<ExamDataPublishOutput> GetById(int id);
  49. /// <summary>
  50. /// 根据监测计划ID获取数据发布内容列表
  51. /// </summary>
  52. /// <param name="examPlanId"></param>
  53. /// <returns></returns>
  54. Task<List<ExamDataPublishOutput>> GetListByExamPlanId(int examPlanId);
  55. #endregion
  56. }