30 lines
872 B
C#
30 lines
872 B
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>
|
|
/// 集中器在物联网平台中对应的产品Id
|
|
/// </summary>
|
|
[Required(ErrorMessage = "产品Id不能为空")]
|
|
public string IoTPlatformProductId { get; set; }
|
|
|
|
}
|
|
} |