using YBEE.EQM.Core; namespace YBEE.EQM.Application; /// /// 学期信息管理服务 /// [ApiDescriptionSettings(Name = "base-semester")] [Route("base/semester")] public class SemesterAppService : IDynamicApiController { private readonly ISemesterService _semesterService; public SemesterAppService(ISemesterService semesterService) { _semesterService = semesterService; } /// /// 添加学期 /// /// public async Task Add() { await _semesterService.Add(); } /// /// 设置当前学期 /// /// /// public async Task SetCurrent(BaseId input) { await _semesterService.SetCurrent(input); } /// /// 根据ID获取单个学期 /// /// /// public async Task GetById([FromQuery][Required] int id) { return await _semesterService.GetById(id); } /// /// 获取当前学期 /// /// public async Task GetCurrent() { return await _semesterService.GetCurrent(); } /// /// 获取全部学期信息列表 /// /// public async Task> GetAllList() { return await _semesterService.GetAllList(); } }