ISemesterService.cs 883 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 学期信息管理服务
  5. /// </summary>
  6. public interface ISemesterService
  7. {
  8. /// <summary>
  9. /// 添加学期
  10. /// </summary>
  11. /// <returns></returns>
  12. Task Add();
  13. /// <summary>
  14. /// 设置当前学期
  15. /// </summary>
  16. /// <param name="input"></param>
  17. /// <returns></returns>
  18. Task SetCurrent(BaseId<short> input);
  19. /// <summary>
  20. /// 根据ID获取单个学期
  21. /// </summary>
  22. /// <param name="id"></param>
  23. /// <returns></returns>
  24. Task<SemesterOutput> GetById(int id);
  25. /// <summary>
  26. /// 获取当前学期
  27. /// </summary>
  28. /// <returns></returns>
  29. Task<SemesterOutput> GetCurrent();
  30. /// <summary>
  31. /// 获取全部学期信息列表
  32. /// </summary>
  33. /// <returns></returns>
  34. Task<List<SemesterOutput>> GetAllList();
  35. }