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.

26 lines
620 B

5 months ago
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(@"充电机未连接");
5 months ago
// return;
5 months ago
}
5 months ago
return PadarMgr._PadarClient.PadarControl(controlType);
5 months ago
}
}