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.
27 lines
844 B
27 lines
844 B
using Infrastructure.Application;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace IoTCenter.Application.Models
|
|
{
|
|
[Display(Name = "节点分类")]
|
|
public class EditNodeCategoryModel : EditModel
|
|
{
|
|
[Display(Name = "分类名称")]
|
|
[MaxLength(24, ErrorMessage = "{0}最大长度为{1}")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "模板")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Template { get; set; }
|
|
|
|
[Display(Name = "序号")]
|
|
public int DisplayOrder { get; set; }
|
|
|
|
[DataType("MultiSelectList")]
|
|
[Display(Name = "节点")]
|
|
public List<Guid> Nodes { get; set; } = new List<Guid>();
|
|
}
|
|
} |