完成MQTT服务器的别名设置

This commit is contained in:
2025-09-06 19:41:28 +08:00
parent 5db88f5709
commit 6f0e80e1e2
9 changed files with 83 additions and 10 deletions

View File

@@ -36,7 +36,7 @@ public class MappingProfile : Profile
// VariableMqttAlias 映射
CreateMap<VariableMqttAlias, VariableMqttAliasDto>()
.ForMember(dest => dest.MqttServerName, opt => opt.Ignore())
.ForMember(dest => dest.MqttServerName, opt => opt.MapFrom(src => src.MqttServer.ServerName))
.ReverseMap();
// VariableHistory 映射