1
yanjinhui
2025-06-12 10c497ad3b1802e1c8feed8df0a290a407ec72bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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(int deptid,string alarmContent, bool resetStatus)
        {
            return Service.AddAlarmHsy(deptid,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()
        {
            return Service.BecomeTrue();
        }
 
 
        /// <summary>
        /// 接收上游系统信息
        /// </summary>
        /// <param name="upstreamIDTO"></param>
        /// <returns></returns>
        [HttpPost, Route("UpstreamInspectionRoad")]
        public WebResponseContent UpstreamInspectionRoad([FromBody]UpstreamIDTO upstreamIDTO)
        {
            return Service.UpstreamInspectionRoad(upstreamIDTO);
        }
 
        /// <summary>
        /// 删除轨道站的报警信号
        /// </summary>
        /// <returns></returns>
        [HttpPost, Route("DeleteAllinform")]
        public WebResponseContent DeleteAllinform()
        {
            return Service.DeleteAllinform();
        }
 
 
    }
}