40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
using JiShe.ServicePro.Enums;
|
|
using JiShe.ServicePro.OpenAPIModels;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace JiShe.IoT.BusinessSystemAggregation.Dto
|
|
{
|
|
/// <summary>
|
|
/// 业务系统批量创建设备信息
|
|
/// </summary>
|
|
public class BatchCreateDeviceBusinessSystemInput
|
|
{
|
|
/// <summary>
|
|
/// 设备信息集合
|
|
/// </summary>
|
|
[Required(ErrorMessage = "设备信息不能为空")]
|
|
public List<OpenApiDeviceInfoInput> DeviceInfos { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物联网平台类型
|
|
/// </summary>
|
|
[Required(ErrorMessage = "物联网平台类型不能为空")]
|
|
public IoTPlatformTypeEnum IoTPlatform { get; set; }
|
|
|
|
/// <summary>
|
|
/// 集中器在物联网平台中对应的产品Id
|
|
/// </summary>
|
|
[Required(ErrorMessage = "产品Id不能为空")]
|
|
public string IoTPlatformProductId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设备类型,用来区分主设备是网关设备还是直连设备
|
|
/// </summary>
|
|
public DeviceTypeEnum? DeviceType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设备来源类型
|
|
/// </summary>
|
|
public DeviceSourceTypeEnum? DeviceSourceType { get; set; }
|
|
}
|
|
} |