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"),AllowAnonymous] public WebResponseContent AddAlarmHsy(string alarmContent, bool resetStatus) { return Service.AddAlarmHsy(alarmContent, resetStatus); } [HttpPost, Route("GetWebSocketInfo"), AllowAnonymous] public WebResponseContent GetWebSocketInfo() { return Service.GetWebSocketInfo(); } [HttpPost, Route("BecomeTrue"), AllowAnonymous] public WebResponseContent BecomeTrue(string account) { return Service.BecomeTrue(account); } /// /// 接收上游系统信息 /// /// /// [HttpPost, Route("UpstreamInspectionRoad"), AllowAnonymous] public WebResponseContent UpstreamInspectionRoad([FromBody]UpstreamIDTO upstreamIDTO) { return Service.UpstreamInspectionRoad(upstreamIDTO); } } }