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.
23 lines
628 B
23 lines
628 B
using Infrastructure.Application;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace IoT.Shared.Application.Models
|
|
{
|
|
[Display(Name = "角色")]
|
|
public class EditRoleModel : EditModel
|
|
{
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
[Display(Name = "名称")]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "机构")]
|
|
[SelectList]
|
|
public Guid? OrganId { get; set; }
|
|
|
|
[Display(Name = "权限")]
|
|
[MultiSelectList]
|
|
public List<Guid> Permissions { get; set; } = new List<Guid>();
|
|
}
|
|
} |