using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Hosting.Server; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseController; using WIDESEAWCS_DTO.TaskInfo; using WIDESEAWCS_DTO.Telescopic; using WIDESEAWCS_ITaskInfoService; using WIDESEAWCS_Model.Models; using WIDESEAWCS_TaskInfoService; namespace WIDESEAWCS_Server.Controllers.SerialPort { [Route("api/[controller]")] [ApiController] public class AlarmResetHsyController : ApiBaseController { public AlarmResetHsyController(IAlarmResetHsyServer service) : base(service) { } [HttpPost,Route("AddAlarmHsy")] public WebResponseContent AddAlarmHsy(int deptid,string alarmContent, bool resetStatus) { return Service.AddAlarmHsy(deptid,alarmContent, resetStatus); } /// /// 查看表的全部信息,按照状态为ture,时间最新来排序 /// /// [HttpPost, Route("GetWebSocketInfo")] public WebResponseContent GetWebSocketInfo() { return Service.GetWebSocketInfo(); } /// /// 将表中状态全部为true的改为false /// /// [HttpPost, Route("BecomeTrue")] public WebResponseContent BecomeTrue() { return Service.BecomeTrue(); } /// /// 接收上游系统信息 /// /// /// [HttpPost, Route("UpstreamInspectionRoad")] public WebResponseContent UpstreamInspectionRoad([FromBody]UpstreamIDTO upstreamIDTO) { return Service.UpstreamInspectionRoad(upstreamIDTO); } /// /// 删除轨道站的报警信号 /// /// [HttpPost, Route("DeleteAllinform")] public WebResponseContent DeleteAllinform() { return Service.DeleteAllinform(); } } }