namespace Ropin.Environmentally.AlarmService.Model { public class CofingSetModel { public RabbitMQModel RabbitMQ { get; set; } public string PublicPushMessageAPI { get; set; } } public class RabbitMQModel { //消息队列名称 public string QueueName { get; set; } //IP地址 public string HostName { get; set; } //端口号 public int Port { get; set; } //用户账号 public string UserName { get; set; } //用户密码 public string Password { get; set; } public string VirtualHost { get; set; } // 获取或设置交换机名称。 public string ExchangeName { get; set; } // 路由键 public string RoutingKey { get; set; } } }