using Entity.Api.Resp; using HybirdFrameworkCore.Entity; using Microsoft.AspNetCore.Mvc; using Service.FireControl; using Service.FireControl.Client; using Service.FireControl.Msg; namespace WebStarter.Controllers; /// /// 消防控制 /// [ApiController] [Route("api/[controller]")] public class FireControlController { [HttpGet("FireMsgResp")] public Result FireResp() { FireMsgResp FireMsgResp = new FireMsgResp(); if (FireControlMgr.FireMsg != null) { FireMsgResp = FireAutoMapper.FireMsgResp(FireControlMgr.FireMsg); } return Result.Success(FireMsgResp); } }