using YBEE.EQM.Core;
namespace YBEE.EQM.Application;
///
/// 学校班级信息管理服务
///
[ApiDescriptionSettings(Name = "base-school-class")]
[Route("base/school/class")]
public class SchoolClassAppService : IDynamicApiController
{
private readonly ISchoolClassService _schoolClassService;
public SchoolClassAppService(ISchoolClassService schoolClassService)
{
_schoolClassService = schoolClassService;
}
///
/// 添加学校班级
///
///
///
public async Task Add(AddSchoolClassInput input)
{
await _schoolClassService.Add(input);
}
///
/// 批量添加学校班级
///
///
///
public async Task BatchAdd(BatchAddSchoolClassInput input)
{
await _schoolClassService.BatchAdd(input);
}
///
/// 根据ID获取学校班级信息
///
///
///
public async Task GetById([FromQuery][Required] long id)
{
return await _schoolClassService.GetById(id);
}
///
/// 根据级获取学校班级列表
///
///
///
public async Task> GetListByGradeBeginYear([FromQuery][Required] short gradeBeginYear)
{
return await _schoolClassService.GetListByGradeBeginYear(gradeBeginYear);
}
///
/// 分页查询班级列表
///
///
///
public async Task> QueryPageList(SchoolClassPageInput input)
{
return await _schoolClassService.QueryPageList(input);
}
}