ICourseService.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 科目基础数据管理服务
  5. /// </summary>
  6. public interface ICourseService
  7. {
  8. /// <summary>
  9. /// 添加科目
  10. /// </summary>
  11. /// <param name="input"></param>
  12. /// <returns></returns>
  13. Task Add(AddCourseInput input);
  14. /// <summary>
  15. /// 更新科目
  16. /// </summary>
  17. /// <param name="input"></param>
  18. /// <returns></returns>
  19. Task Update(UpdateCourseInput input);
  20. /// <summary>
  21. /// 删除科目
  22. /// </summary>
  23. /// <param name="input"></param>
  24. /// <returns></returns>
  25. Task Del(BaseId input);
  26. /// <summary>
  27. /// 根据ID获取单个科目
  28. /// </summary>
  29. /// <param name="id"></param>
  30. /// <returns></returns>
  31. Task<CourseOutput> GetById(int id);
  32. /// <summary>
  33. /// 获取全部科目完整信息列表
  34. /// </summary>
  35. /// <returns></returns>
  36. Task<List<CourseOutput>> GetAllList();
  37. /// <summary>
  38. /// 获取全部科目简要信息列表
  39. /// </summary>
  40. /// <returns></returns>
  41. Task<List<CourseLiteOutput>> GetAllLiteList();
  42. }