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/Platform/Application/Models/EditPermissionModel.cs

28 lines
771 B

using Infrastructure.Application;
using System;
using System.ComponentModel.DataAnnotations;
namespace IoT.Shared.Application.Models
{
[Display(Name = "权限")]
public class EditPermissionModel : EditModel
{
[Display(Name = "机构")]
[SelectList]
public Guid? OrganId { get; set; }
[Required(ErrorMessage = nameof(RequiredAttribute))]
[Display(Name = "分类")]
[SelectList]
public Guid? CategoryId { get; set; }
[Required(ErrorMessage = nameof(RequiredAttribute))]
[Display(Name = "名称")]
public string Name { get; set; }
[Required(ErrorMessage = nameof(RequiredAttribute))]
[Display(Name = "编号")]
public string Number { get; set; }
}
}