优化登录权限存储jwt
This commit is contained in:
@@ -13,13 +13,12 @@ namespace ZR.Model.System
|
||||
public long UserId { get; set; }
|
||||
public long DeptId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string NickName { get; set; }
|
||||
/// <summary>
|
||||
/// 角色集合
|
||||
/// </summary>
|
||||
public List<string> RoleIds { get; set; }
|
||||
/// <summary>
|
||||
/// 角色集合
|
||||
/// 角色集合(数据权限过滤使用)
|
||||
/// </summary>
|
||||
public List<SysRole> Roles { get; set; }
|
||||
/// <summary>
|
||||
@@ -30,13 +29,6 @@ namespace ZR.Model.System
|
||||
{
|
||||
}
|
||||
|
||||
public LoginUser(long userId, string userName, List<string> roleIds, List<string> permissions)
|
||||
{
|
||||
UserId = userId;
|
||||
UserName = userName;
|
||||
RoleIds = roleIds;
|
||||
Permissions = permissions;
|
||||
}
|
||||
public LoginUser(SysUser user, List<SysRole> roles, List<string> permissions)
|
||||
{
|
||||
UserId = user.UserId;
|
||||
|
||||
Reference in New Issue
Block a user