44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
|
|
using JiShe.ServicePro.Enums;
|
|||
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|
|||
|
|
namespace JiShe.IoT.DeviceAggregation.Dto
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 设备聚合新增设备
|
|||
|
|
/// </summary>
|
|||
|
|
public class CreateDeviceAggregationInput
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 表通信地址
|
|||
|
|
/// </summary>
|
|||
|
|
[Required(ErrorMessage = "设备地址不能为空")]
|
|||
|
|
public string DeviceAddress { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 物联网平台类型
|
|||
|
|
/// </summary>
|
|||
|
|
[Required(ErrorMessage = "物联网平台类型不能为空")]
|
|||
|
|
public IoTPlatformTypeEnum IoTPlatform { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 电表密码
|
|||
|
|
/// </summary>
|
|||
|
|
[Required(ErrorMessage = "电表密码不能为空")]
|
|||
|
|
public string PlatformPassword { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 集中器在物联网平台中对应的产品Id
|
|||
|
|
/// </summary>
|
|||
|
|
public string IoTPlatformProductId { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 集中器在物联网平台中对应的设备Id或者名称
|
|||
|
|
/// </summary>
|
|||
|
|
public string IoTPlatformDeviceOpenInfo { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 物联网平台中对应的账号Id
|
|||
|
|
/// </summary>
|
|||
|
|
public string IoTPlatformAccountId { get; set; }
|
|||
|
|
}
|
|||
|
|
}
|