You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
690 B

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