using CommunityToolkit.Mvvm.ComponentModel; namespace Plugin.DeviceConfig.Entity { /// /// 设备组模板实体 /// public partial class DeviceGroupTemplate : ObservableObject { /// /// 无参构造函数(用于数据绑定) /// public DeviceGroupTemplate() { } /// /// 模板唯一标识(主键) /// [ObservableProperty] private string templateId = string.Empty; /// /// 设备类型 /// [ObservableProperty] private string deviceType = string.Empty; /// /// 驱动类型 /// [ObservableProperty] private string driverType = string.Empty; /// /// 传输方式 /// [ObservableProperty] private string transport = string.Empty; /// /// 设备数量 /// [ObservableProperty] private int deviceCount; /// /// 每设备通道数 /// [ObservableProperty] private int channelsPerDevice; /// /// 地址规则(如IP模板 192.168.10.{0}) /// [ObservableProperty] private string addressRule = string.Empty; /// /// 起始Slot /// [ObservableProperty] private int slotStart; } }