You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/IoTCenter/Application/Models/EditGlobalSceneModel.cs

25 lines
755 B

using Infrastructure.Application;
using System.ComponentModel.DataAnnotations;
namespace IoTCenter.Application.Models
{
[Display(Name = "平台场景")]
public class EditGlobalSceneModel : EditModel
{
[Display(Name = "平台场景名称")]
[MaxLength(24, ErrorMessage = "{0}最大长度为{1}")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Name { get; set; }
[Display(Name = "图标")]
[DataType(DataType.ImageUrl)]
[Required]
public string Image { get; set; } = "/images/button.png";
[Display(Name = "隐藏")]
public bool Hidden { get; set; }
[Display(Name = "序号")]
public int DisplayOrder { get; set; }
}
}