using Hncore.Infrastructure.Data;
using Hncore.Infrastructure.DDD;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Data;
using System.Linq.Expressions;
using Microsoft.EntityFrameworkCore;
using Hncore.Infrastructure.WebApi;
using Hncore.Pass.Manage.Request;

namespace Hncore.Pass.Manage.Domain  
{
    public class Permission : AggregateRoot<int>

    {

        /// <summary>
        /// 用户数据库ID
        /// <summary>
        public override int Id { get; set; }

    
        /// <summary>
        /// 创建时间
        /// <summary>
        public  DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// <summary>
        public  DateTime UpdateTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// <summary>
        public int CreatorId { get; set; }

        /// <summary>
        /// 更新人ID
        /// <summary>
        public int UpdatorId { get; set; }

        /// <summary>
        /// 软删除标记，0.代表正常，1.代表已删除
        /// <summary>
        public   int DeleteTag { get; set; }

        /// <summary>
        /// 权限编码
        /// <summary>
        public string Permissioncode { get; set; }


        public string Parentcode { get; set; }

        public string Permissionlabel { get; set; }

        public string Permissionurl { get; set; }
   
        /// <summary>
        /// 图标[50]
        /// </summary>
        public string Icon  { get; set; }
        /// <summary>
        /// 激活图标
        /// </summary>
        public string Iconactivate  { get; set; }

        /// <summary>
        /// 是否查看
        /// </summary>
        public int AllowView  { get; set;  }


        /// <summary>
        /// 是否添加
        /// </summary>
        public int  AllowAdd   { get; set; }


        /// <summary>
        /// 是否修改
        /// </summary>
        public int AllowEdit  { get; set; }


        /// <summary>
        /// 是否删除
        /// </summary>
        public int AllowDel { get; set; }

        /// <summary>
        /// 显示排序
        /// </summary>
        public int Sortorder  { get; set; }
        /// <summary>
        /// 是否收费
        /// </summary>
        public bool Ischarge { get; set; }
        /// <summary>
        /// 模块编码
        /// </summary>
        public string Nodecode { get; set; }

        /// <summary>
        /// 是否新功能
        /// </summary>
        public bool isnew { get; set; }

        /// <summary>
        /// 系统标识
        /// </summary>
        public int  Systemid  { get; set; }

        /// <summary>
        /// app权限编码
        /// </summary>
        public string Appcodes { get; set; }

    }
}
