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/Application/Domain/Entities/Admin/Permission.cs

26 lines
746 B

using Infrastructure.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Application.Domain.Entities
{
[Display(Name = "权限", Order = 41)]
[Scope]
[AdminModule]
public class Permission : BaseEntity
{
[Required]
public string Name { get; set; }
[Required]
public string Number { get; set; }
public bool IsReadOnly { get; set; }
public bool Hide { get; set; }
public PermissionType Type { get; set; }
public Guid? CategoryId { get; set; }
public PermissionCategory Category { get; set; }
public List<RolePermission> RolePermissions { get; set; } = new List<RolePermission>();
}
}