UserManager新增分部类,定义访问令牌,用于定时任务解析当前登录用户信息
This commit is contained in:
@@ -21,7 +21,7 @@ namespace JNPF.Common.Core.Manager;
|
||||
/// <summary>
|
||||
/// 用户管理 .
|
||||
/// </summary>
|
||||
public class UserManager : IUserManager, IScoped
|
||||
public partial class UserManager : IUserManager, IScoped
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户表仓储.
|
||||
@@ -76,7 +76,6 @@ public class UserManager : IUserManager, IScoped
|
||||
public UserEntity User
|
||||
{
|
||||
get => _repository.GetSingle(u => u.Id == UserId);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
27
common/Tnb.Common.Core/Manager/User/UserManager.part.cs
Normal file
27
common/Tnb.Common.Core/Manager/User/UserManager.part.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using JNPF.Common.Const;
|
||||
using JNPF.Common.Enums;
|
||||
using JNPF.Common.Extension;
|
||||
using JNPF.Common.Manager;
|
||||
using JNPF.Common.Models.Authorize;
|
||||
using JNPF.Common.Models.User;
|
||||
using JNPF.Common.Net;
|
||||
using JNPF.Common.Security;
|
||||
using JNPF.DataEncryption;
|
||||
using JNPF.DependencyInjection;
|
||||
using JNPF.Systems.Entitys.Entity.Permission;
|
||||
using JNPF.Systems.Entitys.Permission;
|
||||
using JNPF.Systems.Entitys.System;
|
||||
using Mapster;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using SqlSugar;
|
||||
using System.Security.Claims;
|
||||
|
||||
namespace JNPF.Common.Core.Manager;
|
||||
|
||||
/// <summary>
|
||||
/// 用户管理 .
|
||||
/// </summary>
|
||||
public partial class UserManager
|
||||
{
|
||||
public static string AsscessToken { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user