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.
19 lines
593 B
19 lines
593 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Infrastructure.Domain;
|
|
|
|
namespace Application.Domain.Entities
|
|
{
|
|
[Display(Name = "权限")]
|
|
public class Permission : BaseEntity, IDisableUpdate, IDisableDelete
|
|
{
|
|
public string Name { get; set; }
|
|
|
|
public string Number { get; set; }
|
|
public Guid? CategoryId { get; set; }
|
|
public PermissionCategory Category { get; set; } = new PermissionCategory();
|
|
|
|
public List<RolePermission> RolePermissions { get; set; } = new List<RolePermission>();
|
|
}
|
|
} |