refactor: 将VariableMqttAlias改为MqttAlias,将VariableMqttAliasItemViewModel改为MqttAliasItem

This commit is contained in:
2025-10-06 17:39:03 +08:00
parent a3af5dd0cc
commit 6cff70cd87
26 changed files with 50 additions and 56 deletions

View File

@@ -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; }

View File

@@ -62,7 +62,7 @@ public partial class MqttServerItemViewModel : ObservableObject
private string _messageFooter;
[ObservableProperty]
private ObservableCollection<VariableMqttAliasItemViewModel> _variableAliases = new();
private ObservableCollection<MqttAliasItem> _variableAliases = new();
}

View File

@@ -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)。