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