|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 消防控制
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ApiController]
|
|
|
|
|
[Route("api/[controller]")]
|
|
|
|
|
public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
[HttpGet("FireMsgResp")]
|
|
|
|
|
public Result<FireMsgResp> FireResp()
|
|
|
|
|
{
|
|
|
|
|
FireMsgResp FireMsgResp = new FireMsgResp();
|
|
|
|
|
|
|
|
|
|
if (FireControlMgr.FireMsg != null)
|
|
|
|
|
{
|
|
|
|
|
FireMsgResp = FireAutoMapper.FireMsgResp(FireControlMgr.FireMsg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Result<FireMsgResp>.Success(FireMsgResp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|