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<IAlarmResetHsyServer, AlarmResetHsyController>
|
{
|
public AlarmResetHsyController(IAlarmResetHsyServer service) : base(service)
|
{
|
|
}
|
[HttpPost, Route("AddAlarmHsy")]
|
public WebResponseContent AddAlarmHsy(string alarmContent, bool resetStatus)
|
{
|
return Service.AddAlarmHsy(alarmContent, resetStatus);
|
}
|
|
|
/// <summary>
|
/// 查看表的全部信息,按照状态为ture,时间最新来排序
|
/// </summary>
|
/// <returns></returns>
|
[HttpPost, Route("GetWebSocketInfo")]
|
public WebResponseContent GetWebSocketInfo()
|
{
|
return Service.GetWebSocketInfo();
|
}
|
|
/// <summary>
|
/// 将表中状态全部为true的改为false
|
/// </summary>
|
/// <param name="status"></param>
|
[HttpPost, Route("BecomeTrue")]
|
public WebResponseContent BecomeTrue(string account)
|
{
|
return Service.BecomeTrue(account);
|
}
|
|
|
/// <summary>
|
/// 接收上游系统信息
|
/// </summary>
|
/// <param name="upstreamIDTO"></param>
|
/// <returns></returns>
|
[HttpPost, Route("UpstreamInspectionRoad")]
|
public WebResponseContent UpstreamInspectionRoad([FromBody]UpstreamIDTO upstreamIDTO)
|
{
|
return Service.UpstreamInspectionRoad(upstreamIDTO);
|
}
|
|
|
}
|
}
|