Former-commit-id: 9d7e8d0106ea7b4cef56664230fdf016c8736721 Former-commit-id: 024e51a15d8152ff4bf57690b43ba9d588a4743f1.0
parent
331155f2f2
commit
6a42c223b3
@ -1,21 +0,0 @@
|
|||||||
using Infrastructure.Application;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
|
|
||||||
namespace IoT.Shared.Application.Models
|
|
||||||
{
|
|
||||||
[Display(Name = "命令")]
|
|
||||||
public class DisplayCommandModel : EditModel
|
|
||||||
{
|
|
||||||
[Display(Name = "网关")]
|
|
||||||
public string IoTGatewayId { get; set; }
|
|
||||||
|
|
||||||
[Display(Name = "设备")]
|
|
||||||
public string DeviceId { get; set; }
|
|
||||||
|
|
||||||
[Display(Name = "Api")]
|
|
||||||
public string ApiId { get; set; }
|
|
||||||
|
|
||||||
[Display(Name = "参数")]
|
|
||||||
public string QueryString { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,31 +0,0 @@
|
|||||||
using Infrastructure.Application;
|
|
||||||
using System;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
|
|
||||||
namespace IoT.Shared.Application.Models
|
|
||||||
{
|
|
||||||
[Display(Name = "场景")]
|
|
||||||
public class EditSceneModel : EditModel
|
|
||||||
{
|
|
||||||
[SelectList]
|
|
||||||
[Display(Name = "网关")]
|
|
||||||
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
||||||
public Guid? IoTGatewayId { get; set; }
|
|
||||||
|
|
||||||
[Display(Name = "名称")]
|
|
||||||
[MaxLength(24, ErrorMessage = "{0}最大长度为{1}")]
|
|
||||||
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
||||||
public string Name { get; set; }
|
|
||||||
|
|
||||||
[Display(Name = "图标")]
|
|
||||||
[DataType(DataType.ImageUrl)]
|
|
||||||
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
||||||
public string Image { get; set; } = "/images/button.svg";
|
|
||||||
|
|
||||||
[Display(Name = "隐藏")]
|
|
||||||
public bool? Hidden { get; set; }
|
|
||||||
|
|
||||||
[Display(Name = "序号")]
|
|
||||||
public int DisplayOrder { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,34 +0,0 @@
|
|||||||
using Infrastructure.Application;
|
|
||||||
using Microsoft.AspNetCore.Mvc;
|
|
||||||
using System;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
|
|
||||||
namespace IoT.Shared.Application.Models
|
|
||||||
{
|
|
||||||
[Display(Name = "定时器")]
|
|
||||||
public class EditSceneTimerModel : EditModel
|
|
||||||
{
|
|
||||||
[SelectList]
|
|
||||||
[Display(Name = "网关")]
|
|
||||||
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
||||||
public Guid? IoTGatewayId { get; set; }
|
|
||||||
|
|
||||||
[SelectList]
|
|
||||||
[Display(Name = "场景")]
|
|
||||||
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
||||||
public Guid? SceneId { get; set; }
|
|
||||||
|
|
||||||
[Display(Name = "定时器名称")]
|
|
||||||
[MaxLength(24, ErrorMessage = "{0}最大长度为{1}")]
|
|
||||||
public string Name { get; set; }
|
|
||||||
|
|
||||||
[Display(Name = "定时器规则")]
|
|
||||||
[UIHint("Cron")]
|
|
||||||
[Remote("CronValid", "Ajax", "IoTCenter")]
|
|
||||||
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
||||||
public string Cron { get; set; }
|
|
||||||
|
|
||||||
[Display(Name = "禁用")]
|
|
||||||
public bool? Disabled { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in new issue