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); } } }