iotgateway/IoTGateway.Model/SystemConfig.cs

61 lines
1.7 KiB
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
2021-12-12 06:55:48 +00:00
using WalkingTec.Mvvm.Core;
namespace IoTGateway.Model
{
[Comment("传输配置")]
2021-12-12 06:55:48 +00:00
public class SystemConfig : BasePoco
{
[Comment("网关名称")]
2024-01-08 14:18:16 +00:00
[Display(Name = "GatewayName")]
2021-12-12 06:55:48 +00:00
public string GatewayName { get; set; }
[Comment("ClientId")]
2022-08-10 08:55:44 +00:00
[Display(Name = "ClientId")]
public string ClientId { get; set; }
[Comment("Mqtt服务器")]
2024-01-08 14:18:16 +00:00
[Display(Name = "MqttServer ")]
2021-12-12 06:55:48 +00:00
public string MqttIp { get; set; }
[Comment("Mqtt端口")]
2024-01-08 14:18:16 +00:00
[Display(Name = "MqttPort")]
2021-12-12 06:55:48 +00:00
public int MqttPort { get; set; }
[Comment("Mqtt用户名")]
2024-01-08 14:18:16 +00:00
[Display(Name = "UserName")]
2021-12-12 06:55:48 +00:00
public string MqttUName { get; set; }
[Comment("Mqtt密码")]
2024-01-08 14:18:16 +00:00
[Display(Name = "Password")]
2021-12-12 06:55:48 +00:00
public string MqttUPwd { get; set; }
[Comment("输出平台")]
2024-01-08 14:18:16 +00:00
[Display(Name = "OutputPlatform")]
2022-01-24 15:10:56 +00:00
public IoTPlatformType IoTPlatformType { get; set; }
}
public enum IoTPlatformType
{
[Display(Name = "ThingsBoard")]
ThingsBoard =0,
[Display(Name = "IoTSharp")]
IoTSharp =1,
2024-01-08 14:18:16 +00:00
[Display(Name = "AliIoT")]
2022-01-24 15:10:56 +00:00
AliCloudIoT=2,
2024-01-08 14:18:16 +00:00
[Display(Name = "TencentIoTHub")]
2022-01-24 15:10:56 +00:00
TencentIoTHub =3,
2024-01-08 14:18:16 +00:00
[Display(Name = "BaiduIoTCore")]
2022-01-24 15:10:56 +00:00
BaiduIoTCore =4,
2024-01-08 14:18:16 +00:00
[Display(Name = "OneNet")]
2022-04-20 06:05:44 +00:00
OneNET = 5,
[Display(Name = "ThingsCloud")]
2022-06-06 07:15:19 +00:00
ThingsCloud = 6,
2024-01-08 14:18:16 +00:00
[Display(Name = "HuaWeiCloud")]
HuaWei = 7,
[Display(Name = "IoTGateway")]
2025-01-13 01:08:33 +00:00
IoTGateway = 8,
[Display(Name = "ThingsPanel")]
ThingsPanel = 9
2021-12-12 06:55:48 +00:00
}
}