namespace YBEE.EQM.Application; /// /// 监测年级管理服务 /// [ApiDescriptionSettings(Name = "exam-grade")] [Route("exam/grade")] public class ExamGradeAppService : IDynamicApiController { private readonly IExamGradeService _examGradeService; public ExamGradeAppService(IExamGradeService examGradeService) { _examGradeService = examGradeService; } /// /// 批量添加监测年级 /// /// /// public async Task AddList(AddExamGradeListInput input) { await _examGradeService.AddList(input); } /// /// 移出监测年级 /// /// /// public async Task Remove(DelExamGradeInput input) { await _examGradeService.Remove(input); } /// /// 根据ID获取监测年级 /// /// /// public async Task GetById(int id) { return await _examGradeService.GetById(id); } /// /// 根据监测计划ID获取全部监测年级 /// /// /// public async Task> GetListByExamPlanId([FromQuery][Required] int examPlanId) { return await _examGradeService.GetListByExamPlanId(examPlanId); } }