

using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using Aurora.Infrastructure.User;
using Aurora.Infrastructure.Permission;
using Aurora.Common.Permission;

namespace Aurora.Common.User
{

    public class UserContext : IUserContext
    { 
        /// <summary>
        /// 用户登录用户Code
        /// </summary>
        public string UserCode { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 用户名 编码
        /// </summary>
        // public string NameAndCode { get { return $"{CurrentUserName} {CurrentUserCode}"; } }
        /// <summary>
        /// 角色Code
        /// </summary>
        public string RoleCode { get; set; }
        /// <summary>
        /// 角色Name
        /// </summary>
        public string RoleName { get; set; }

        public List<IFunctionPermission> RolePermission { get; set; }
    }
}
