controller获取消防读取数据

master
CZ 5 months ago
parent 47447648c1
commit 4040e07857

@ -7,14 +7,14 @@ namespace Service.FireControl.Client;
public class FireControlMgr public class FireControlMgr
{ {
public static Subzone2 Subzone2 { get; set; } public static Subzone2 Subzone2 = new Subzone2();
public static Subzone3 Subzone3 { get; set; } public static Subzone3 Subzone3 = new Subzone3();
public static Subzone4 Subzone4 { get; set; } public static Subzone4 Subzone4 = new Subzone4();
public static Subzone5 Subzone5 { get; set; } public static Subzone5 Subzone5 = new Subzone5();
public static Subzone6 Subzone6 { get; set; } public static Subzone6 Subzone6 = new Subzone6();
public static Subzone7 Subzone7 { get; set; } public static Subzone7 Subzone7 = new Subzone7();
public static Subzone8 Subzone8 { get; set; } public static Subzone8 Subzone8 = new Subzone8();
public static Subzone9 Subzone9 { get; set; } public static Subzone9 Subzone9 = new Subzone9();
public static FireControlClient? FireControlClient { get; set; } public static FireControlClient? FireControlClient { get; set; }

@ -1,6 +1,7 @@
using HybirdFrameworkCore.Entity; using HybirdFrameworkCore.Entity;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Service.FireControl.Client; using Service.FireControl.Client;
using Service.FireControl.Msg;
namespace WebStarter.Controllers; namespace WebStarter.Controllers;
@ -178,5 +179,84 @@ public class FireControlController
{ {
return Result<bool>.Success(FireControlMgr.AutomaticModeOff()); return Result<bool>.Success(FireControlMgr.AutomaticModeOff());
} }
/// <summary>
/// 获取读取到的信息
/// </summary>
/// <returns></returns>
[HttpGet("GetSubzone2")]
public Result<Subzone2> GetSubzone2()
{
return Result<Subzone2>.Success(FireControlMgr.Subzone2);
}
/// <summary>
/// 获取读取到的信息
/// </summary>
/// <returns></returns>
[HttpGet("GetSubzone3")]
public Result<Subzone3> GetSubzone3()
{
return Result<Subzone3>.Success(FireControlMgr.Subzone3);
}
/// <summary>
/// 获取读取到的信息
/// </summary>
/// <returns></returns>
[HttpGet("GetSubzone4")]
public Result<Subzone4> GetSubzone4()
{
return Result<Subzone4>.Success(FireControlMgr.Subzone4);
}
/// <summary>
/// 获取读取到的信息
/// </summary>
/// <returns></returns>
[HttpGet("GetSubzone5")]
public Result<Subzone5> GetSubzone5()
{
return Result<Subzone5>.Success(FireControlMgr.Subzone5);
}
/// <summary>
/// 获取读取到的信息
/// </summary>
/// <returns></returns>
[HttpGet("GetSubzone2")]
public Result<Subzone6> GetSubzone6()
{
return Result<Subzone6>.Success(FireControlMgr.Subzone6);
}
/// <summary>
/// 获取读取到的信息
/// </summary>
/// <returns></returns>
[HttpGet("GetSubzone7")]
public Result<Subzone7> GetSubzone7()
{
return Result<Subzone7>.Success(FireControlMgr.Subzone7);
}
/// <summary>
/// 获取读取到的信息
/// </summary>
/// <returns></returns>
[HttpGet("GetSubzone2")]
public Result<Subzone8> GetSubzone8()
{
return Result<Subzone8>.Success(FireControlMgr.Subzone8);
}
/// <summary>
/// 获取读取到的信息
/// </summary>
/// <returns></returns>
[HttpGet("GetSubzone9")]
public Result<Subzone9> GetSubzone9()
{
return Result<Subzone9>.Success(FireControlMgr.Subzone9);
}
} }
Loading…
Cancel
Save