
using CloudBuilder.Core.Authorization;
using CloudBuilder.Core.DatabaseAccessor.Entity;
using CloudBuilder.Security.Entity;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace CloudBuilder.Security.Data
{
    /// <summary>
    /// 排除实体类标记
    /// </summary>
    [NotMapped]
    [TypeScript]
    public class SecurityFunctionDisplayData : SecurityFunctionEntity
    {
        public const string PERMISSION_NAME = "PermissionName";

        public SecurityFunctionDisplayData()
        {
        }
        public SecurityFunctionDisplayData(SecurityFunctionEntity entity)
        {
            CopyFrom(entity);
        }

        public string? FunctionNameParent { get; set; }

        public int Orderby { get; set; }

        public string? PermissionName { get; set; }

        public List<string>? SonSecurityFunctions { get; set; }
    }
}

