IGradeService.cs 903 B

123456789101112131415161718192021222324252627282930313233
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 年级信息服务
  5. /// </summary>
  6. public interface IGradeService
  7. {
  8. /// <summary>
  9. /// 根据ID获取年级信息
  10. /// </summary>
  11. /// <param name="id"></param>
  12. /// <returns></returns>
  13. Task<GradeOutput> GetById(int id);
  14. /// <summary>
  15. /// 根据学段获取年级列表
  16. /// </summary>
  17. /// <param name="stage"></param>
  18. /// <returns></returns>
  19. Task<List<GradeOutput>> GetListByEducationStage(EducationStage stage);
  20. /// <summary>
  21. /// 根据学期和学段获取年级年份
  22. /// </summary>
  23. /// <param name="input"></param>
  24. /// <returns></returns>
  25. Task<List<GradeYearOutput>> QueryGradeYearList(QueryGradeYearInput input);
  26. /// <summary>
  27. /// 获取全部年级列表
  28. /// </summary>
  29. /// <returns></returns>
  30. Task<List<GradeOutput>> GetAllList();
  31. }