using YBEE.EQM.Core; namespace YBEE.EQM.Application; /// /// 监测发布内容管理服务 /// public class ExamDataPublishAppService : IDynamicApiController { private readonly IExamDataPublishService _examDataPublishService; public ExamDataPublishAppService(IExamDataPublishService examDataPublishService) { _examDataPublishService = examDataPublishService; } #region 创建更新 /// /// 添加发布内容 /// /// /// public async Task Add(AddExamDataPublishInput input) { await _examDataPublishService.Add(input); } /// /// 更新发布内容 /// /// /// public async Task Update(UpdateExamDataPublishInput input) { await _examDataPublishService.Update(input); } /// /// 删除发布内容 /// /// /// public async Task Del(BaseId input) { await _examDataPublishService.Del(input); } #endregion #region 状态处理 /// /// 发布 /// /// /// public async Task Publish(BaseId input) { await _examDataPublishService.Publish(input); } /// /// 取消 /// /// /// public async Task Unpublish(BaseId input) { await _examDataPublishService.Unpublish(input); } #endregion #region 查询 /// /// 根据ID获取监测数据发布内容 /// /// /// public async Task GetById(int id) { return await _examDataPublishService.GetById(id); } /// /// 根据监测计划ID获取数据发布内容列表 /// /// /// public async Task> GetListByExamPlanId(int examPlanId) { return await _examDataPublishService.GetListByExamPlanId(examPlanId); } #endregion }