IExamGradeService.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. namespace YBEE.EQM.Application;
  2. /// <summary>
  3. /// 监测年级管理服务
  4. /// </summary>
  5. public interface IExamGradeService
  6. {
  7. /// <summary>
  8. /// 批量添加监测年级
  9. /// </summary>
  10. /// <param name="input"></param>
  11. /// <returns></returns>
  12. Task AddList(AddExamGradeListInput input);
  13. /// <summary>
  14. /// 移出监测年级
  15. /// </summary>
  16. /// <param name="input"></param>
  17. /// <returns></returns>
  18. Task Remove(DelExamGradeInput input);
  19. /// <summary>
  20. /// 保存监测年级设置
  21. /// </summary>
  22. /// <param name="input"></param>
  23. /// <returns></returns>
  24. Task SaveSetting(ExamGradeSettingInput input);
  25. /// <summary>
  26. /// 根据ID获取监测年级
  27. /// </summary>
  28. /// <param name="id"></param>
  29. /// <returns></returns>
  30. Task<ExamGradeOutput> GetById(int id);
  31. /// <summary>
  32. /// 根据监测计划ID获取全部监测年级
  33. /// </summary>
  34. /// <param name="examPlanId"></param>
  35. /// <returns></returns>
  36. Task<List<ExamGradeOutput>> GetListByExamPlanId(int examPlanId);
  37. /// <summary>
  38. /// 根据监测计划和年级ID获取监测年级信息
  39. /// </summary>
  40. /// <param name="examPlanId"></param>
  41. /// <param name="gradeId"></param>
  42. /// <returns></returns>
  43. Task<ExamGradeOutput> GetByExamPlanGradeId(int examPlanId, int gradeId);
  44. }