using YBEE.EQM.Core;
namespace YBEE.EQM.Application;
///
/// 学制管理服务
///
[ApiDescriptionSettings(Name = "base-education-stage-years")]
[Route("base/education-stage/years")]
public class EducationStageYearsAppService : IDynamicApiController
{
private readonly IEducationStageYearsService _educationStageYearsService;
public EducationStageYearsAppService(IEducationStageYearsService educationStageYearsService)
{
_educationStageYearsService = educationStageYearsService;
}
///
/// 根据学段获取学制
///
///
///
public async Task GetByEducationStage([FromQuery][Required] EducationStage educationStage)
{
return await _educationStageYearsService.GetByEducationStage(educationStage);
}
///
/// 获取学制列表
///
///
public async Task> GetAllList()
{
return await _educationStageYearsService.GetAllList();
}
}