|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
using HybirdFrameworkCore.Entity;
|
|
|
|
|
using Entity.Api.Resp;
|
|
|
|
|
using HybirdFrameworkCore.Entity;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using Service.FireControl;
|
|
|
|
|
using Service.FireControl.Client;
|
|
|
|
|
using Service.FireControl.Msg;
|
|
|
|
|
|
|
|
|
@ -23,7 +25,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Success(FireControlMgr.WriteExtinguisherOn(id));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 分区灭火器关
|
|
|
|
|
/// </summary>
|
|
|
|
@ -35,7 +37,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Success(FireControlMgr.WriteExtinguisherOff(id));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 复位开
|
|
|
|
|
/// </summary>
|
|
|
|
@ -47,7 +49,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Success(FireControlMgr.ResettingOn());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 复位关
|
|
|
|
|
/// </summary>
|
|
|
|
@ -59,7 +61,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Success(FireControlMgr.ResettingOff());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 报警消音开
|
|
|
|
|
/// </summary>
|
|
|
|
@ -71,7 +73,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Success(FireControlMgr.MuteAlarmToneOn());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 报警消音关
|
|
|
|
|
/// </summary>
|
|
|
|
@ -83,7 +85,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Success(FireControlMgr.MuteAlarmToneOff());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 自检关
|
|
|
|
|
/// </summary>
|
|
|
|
@ -95,7 +97,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Success(FireControlMgr.SelfInspectionOn());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 自检关
|
|
|
|
|
/// </summary>
|
|
|
|
@ -107,7 +109,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Success(FireControlMgr.SelfInspectionOff());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 声光报警开
|
|
|
|
|
/// </summary>
|
|
|
|
@ -119,7 +121,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Success(FireControlMgr.AudibleVisualAlarmOn());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 声光报警关
|
|
|
|
|
/// </summary>
|
|
|
|
@ -131,7 +133,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Success(FireControlMgr.AudibleVisualAlarmOff());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 手动模式开
|
|
|
|
|
/// </summary>
|
|
|
|
@ -143,7 +145,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Success(FireControlMgr.ManualModeOn());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 手动模式关
|
|
|
|
|
/// </summary>
|
|
|
|
@ -155,7 +157,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Success(FireControlMgr.ManualModeOff());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 自动模式关
|
|
|
|
|
/// </summary>
|
|
|
|
@ -167,7 +169,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Success(FireControlMgr.AutomaticModeOn());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 自动模式关
|
|
|
|
|
/// </summary>
|
|
|
|
@ -185,11 +187,11 @@ public class FireControlController
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet("GetSubzone2")]
|
|
|
|
|
public Result<Subzone2> GetSubzone2()
|
|
|
|
|
public Result<Service.FireControl.Msg.Subzone2> GetSubzone2()
|
|
|
|
|
{
|
|
|
|
|
return Result<Subzone2>.Success(FireControlMgr.Subzone2);
|
|
|
|
|
return Result<Service.FireControl.Msg.Subzone2>.Success(FireControlMgr.Subzone2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取读取到的信息
|
|
|
|
|
/// </summary>
|
|
|
|
@ -199,7 +201,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<Subzone3>.Success(FireControlMgr.Subzone3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取读取到的信息
|
|
|
|
|
/// </summary>
|
|
|
|
@ -209,17 +211,17 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<Subzone4>.Success(FireControlMgr.Subzone4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取读取到的信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet("GetSubzone5")]
|
|
|
|
|
public Result<Subzone5> GetSubzone5()
|
|
|
|
|
public Result<Service.FireControl.Msg.Subzone5> GetSubzone5()
|
|
|
|
|
{
|
|
|
|
|
return Result<Subzone5>.Success(FireControlMgr.Subzone5);
|
|
|
|
|
return Result<Service.FireControl.Msg.Subzone5>.Success(FireControlMgr.Subzone5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取读取到的信息
|
|
|
|
|
/// </summary>
|
|
|
|
@ -229,17 +231,17 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<Subzone6>.Success(FireControlMgr.Subzone6);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取读取到的信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet("GetSubzone7")]
|
|
|
|
|
public Result<Subzone7> GetSubzone7()
|
|
|
|
|
public Result<Service.FireControl.Msg.Subzone7> GetSubzone7()
|
|
|
|
|
{
|
|
|
|
|
return Result<Subzone7>.Success(FireControlMgr.Subzone7);
|
|
|
|
|
return Result<Service.FireControl.Msg.Subzone7>.Success(FireControlMgr.Subzone7);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取读取到的信息
|
|
|
|
|
/// </summary>
|
|
|
|
@ -249,7 +251,7 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<Subzone8>.Success(FireControlMgr.Subzone8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取读取到的信息
|
|
|
|
|
/// </summary>
|
|
|
|
@ -259,4 +261,16 @@ public class FireControlController
|
|
|
|
|
{
|
|
|
|
|
return Result<Subzone9>.Success(FireControlMgr.Subzone9);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[HttpGet("FireResp")]
|
|
|
|
|
public Result<FireResp> FireResp()
|
|
|
|
|
{
|
|
|
|
|
FireResp FireResp = new FireResp();
|
|
|
|
|
FireResp.Subzone2 = FireAutoMapper.Subzone2(FireControlMgr.Subzone2);
|
|
|
|
|
FireResp.Subzone5 = FireAutoMapper.Subzone5(FireControlMgr.Subzone5);
|
|
|
|
|
FireResp.Subzone7 = FireAutoMapper.Subzone7(FireControlMgr.Subzone7);
|
|
|
|
|
|
|
|
|
|
return Result<FireResp>.Success(FireResp);
|
|
|
|
|
}
|
|
|
|
|
}
|