refactor: 将VariableMqttAlias改为MqttAlias,将VariableMqttAliasItemViewModel改为MqttAliasItem
This commit is contained in:
@@ -3,7 +3,7 @@ using DMS.Application.DTOs;
|
||||
|
||||
namespace DMS.WPF.ViewModels.Items;
|
||||
|
||||
public partial class VariableMqttAliasItemViewModel : ObservableObject
|
||||
public partial class MqttAliasItem : ObservableObject
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
@@ -62,7 +62,7 @@ public partial class MqttServerItemViewModel : ObservableObject
|
||||
private string _messageFooter;
|
||||
|
||||
[ObservableProperty]
|
||||
private ObservableCollection<VariableMqttAliasItemViewModel> _variableAliases = new();
|
||||
private ObservableCollection<MqttAliasItem> _variableAliases = new();
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ public partial class VariableItemViewModel : ObservableObject
|
||||
/// 一个变量可以有多个MQTT别名。
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
private List<VariableMqttAliasItemViewModel>? _mqttAliases=new List<VariableMqttAliasItemViewModel>();
|
||||
private List<MqttAliasItem>? _mqttAliases=new List<MqttAliasItem>();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置变量的信号类型 (如:AI, DI, AO, DO)。
|
||||
|
||||
Reference in New Issue
Block a user