NceeCourseCombAppService.cs 907 B

1234567891011121314151617181920212223242526272829
  1. namespace YBEE.EQM.Application;
  2. /// <summary>
  3. /// 高中选科组合管理服务
  4. /// </summary>
  5. [ApiDescriptionSettings(Name = "ncee-course-comb")]
  6. [Route("ncee/course/comb")]
  7. public class NceeCourseCombAppService(INceeCourseCombService courseCombService) : IDynamicApiController
  8. {
  9. private readonly INceeCourseCombService _nceeCourseCombService = courseCombService;
  10. /// <summary>
  11. /// 根据ID获取高中选科组合
  12. /// </summary>
  13. /// <param name="id"></param>
  14. /// <returns></returns>
  15. public async Task<NceeCourseCombOutput> GetById([FromQuery][Required] short id)
  16. {
  17. return await _nceeCourseCombService.GetById(id);
  18. }
  19. /// <summary>
  20. /// 获取所有高中选科组合
  21. /// </summary>
  22. /// <returns></returns>
  23. public async Task<List<NceeCourseCombOutput>> GetAllList()
  24. {
  25. return await _nceeCourseCombService.GetAllList();
  26. }
  27. }