using YBEE.EQM.Core; namespace YBEE.EQM.Application; /// /// 科目基础数据管理服务 /// [ApiDescriptionSettings(Name = "base-course")] [Route("base/course")] public class CourseAppService : IDynamicApiController { private readonly ICourseService _courseService; public CourseAppService(ICourseService courseService) { _courseService = courseService; } /// /// 添加科目 /// /// /// public async Task Add(AddCourseInput input) { await _courseService.Add(input); } /// /// 更新科目 /// /// /// public async Task Update(UpdateCourseInput input) { await _courseService.Update(input); } /// /// 软删除科目 /// /// /// public async Task Del(BaseId input) { await _courseService.Del(input); } /// /// 根据ID获取单个科目 /// /// /// public async Task GetById([FromQuery][Required] int id) { return await _courseService.GetById(id); } /// /// 获取全部科目完整信息列表 /// /// public async Task> GetAllList() { return await _courseService.GetAllList(); } /// /// 获取全部科目简要信息列表 /// /// public async Task> GetAllLiteList() { return await _courseService.GetAllLiteList(); } }