using YBEE.EQM.Application; using YBEE.EQM.Core; namespace YBEE.EQM.Application; /// /// 被监测机构管理服务 /// [ApiDescriptionSettings(Name = "exam-org")] [Route("exam/org")] public class ExamOrgAppService : IDynamicApiController { private readonly IExamOrgService _examOrgService; public ExamOrgAppService(IExamOrgService examOrgService) { _examOrgService = examOrgService; } /// /// 添加机构 /// /// /// public async Task AddList(AddExamOrgListInput input) { await _examOrgService.AddList(input); } /// /// 移出机构 /// /// /// public async Task Remove(DelExamOrgInput input) { await _examOrgService.Remove(input); } /// /// 根据监测计划ID获取监测机构列表 /// /// /// public async Task> GetListByExamPlanId([FromQuery][Required] int examPlanId) { return await _examOrgService.GetListByExamPlanId(examPlanId); } /// /// 分页查询监测机构列表 /// /// /// public async Task> QueryPageList(ExamOrgPageInput input) { return await _examOrgService.QueryPageList(input); } /// /// 分页查询未加入的机构 /// /// /// public async Task> QueryNotInSysOrgPageList(ExamOrgNotInPageInput input) { return await _examOrgService.QueryNotInSysOrgPageList(input); } /// /// 分页查询机构监测计划列表 /// /// /// public async Task> QueryExamPlanPageList(ExamPlanPageInput input) { return await _examOrgService.QueryExamPlanPageList(input); } }