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