using HybirdFrameworkCore.Entity; using Microsoft.AspNetCore.Mvc; using Service.FireControl.Client; namespace WebStarter.Controllers; /// /// 消防控制 /// [ApiController] [Route("api/[controller]")] public class FireControlController { /// /// 分区灭火器开 /// /// /// /// [HttpGet("WriteExtinguisherOn/{id}")] public Result WriteExtinguisherOn(int id) { return Result.Success(FireControlMgr.WriteExtinguisherOn(id)); } /// /// 分区灭火器关 /// /// /// /// [HttpGet("WriteExtinguisherOff/{id}")] public Result WriteExtinguisherOff(int id) { return Result.Success(FireControlMgr.WriteExtinguisherOff(id)); } /// /// 复位开 /// /// /// /// [HttpGet("ResettingOn")] public Result ResettingOn() { return Result.Success(FireControlMgr.ResettingOn()); } /// /// 复位关 /// /// /// /// [HttpGet("ResettingOff")] public Result ResettingOff() { return Result.Success(FireControlMgr.ResettingOff()); } /// /// 报警消音开 /// /// /// /// [HttpGet("MuteAlarmToneOn")] public Result MuteAlarmToneOn() { return Result.Success(FireControlMgr.MuteAlarmToneOn()); } /// /// 报警消音关 /// /// /// /// [HttpGet("MuteAlarmToneOff")] public Result MuteAlarmToneOff() { return Result.Success(FireControlMgr.MuteAlarmToneOff()); } /// /// 自检关 /// /// /// /// [HttpGet("SelfInspectionOn")] public Result SelfInspectionOn() { return Result.Success(FireControlMgr.SelfInspectionOn()); } /// /// 自检关 /// /// /// /// [HttpGet("SelfInspectionOff")] public Result SelfInspectionOff() { return Result.Success(FireControlMgr.SelfInspectionOff()); } /// /// 声光报警开 /// /// /// /// [HttpGet("AudibleVisualAlarmOn")] public Result AudibleVisualAlarmOn() { return Result.Success(FireControlMgr.AudibleVisualAlarmOn()); } /// /// 声光报警关 /// /// /// /// [HttpGet("AudibleVisualAlarmOff")] public Result AudibleVisualAlarmOff() { return Result.Success(FireControlMgr.AudibleVisualAlarmOff()); } /// /// 手动模式开 /// /// /// /// [HttpGet("ManualModeOn")] public Result ManualModeOn() { return Result.Success(FireControlMgr.ManualModeOn()); } /// /// 手动模式关 /// /// /// /// [HttpGet("ManualModeOff")] public Result ManualModeOff() { return Result.Success(FireControlMgr.ManualModeOff()); } /// /// 自动模式关 /// /// /// /// [HttpGet("AutomaticModeOn")] public Result AutomaticModeOn() { return Result.Success(FireControlMgr.AutomaticModeOn()); } /// /// 自动模式关 /// /// /// /// [HttpGet("AutomaticModeOff")] public Result AutomaticModeOff() { return Result.Success(FireControlMgr.AutomaticModeOff()); } }