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.

22 lines
584 B

using HybirdFrameworkCore.Autofac.Attribute;
using HybirdFrameworkCore.Entity;
using Service.Padar.Client;
namespace Service.Padar;
[Scope]
public class PadarService
{
/// <summary>
/// 雷达控制
/// </summary>
/// <param name="controlType">0-关闭雷达 1-开启雷达</param>
public Result<bool> PadarControl(byte controlType)
{
if (PadarMgr._PadarClient == null || !PadarMgr._PadarClient.Connected)
{
Result<bool>.Fail(@"充电机未连接");
}
return PadarMgr._PadarClient.PadarControl(controlType);
}
}