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.
22 lines
778 B
22 lines
778 B
using Infrastructure.Domain;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace IoT.Shared.Application.Domain.Entities
|
|
{
|
|
[Display(Name = "权限")]
|
|
[Scope(ScopeAttribute.PlatformAll | ScopeAttribute.OrganAll)]
|
|
[Group("基础设置", "Admin")]
|
|
public class Permission : BaseEntity
|
|
{
|
|
public string Name { get; set; }
|
|
public string Number { get; set; }
|
|
public bool IsReadOnly { get; set; }
|
|
public PermissionType Type { get; set; }
|
|
public Guid? CategoryId { get; set; }
|
|
public PermissionCategory Category { get; set; } = new PermissionCategory();
|
|
public List<OrganRolePermission> RolePermissions { get; set; } = new List<OrganRolePermission>();
|
|
}
|
|
}
|