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
764 B
27 lines
764 B
using Infrastructure.Application;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace IoT.Shared.Application.Models
|
|
{
|
|
[Display(Name = "权限分类")]
|
|
public class EditPermissionCategoryModel : EditModel
|
|
{
|
|
[Display(Name = "上级")]
|
|
[SelectList]
|
|
public Guid? ParentId { get; set; }
|
|
|
|
[Display(Name = "名称")]
|
|
[MaxLength(24, ErrorMessage = "{0}最大长度为{1}")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "编号")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Number { get; set; }
|
|
|
|
[Display(Name = "序号")]
|
|
public int Order { get; set; }
|
|
}
|
|
}
|