LoginUser.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using ERP.Framework.Enum;
  2. using Newtonsoft.Json;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace ERP.Framework.Security.Core
  9. {
  10. public class LoginUser
  11. {
  12. /// <summary>
  13. /// 用户Id
  14. /// </summary>
  15. public long UserId { get; set; }
  16. /// <summary>
  17. ///
  18. /// </summary>
  19. public string UserName { get; set; } = string.Empty;
  20. /// <summary>
  21. /// 用户状态
  22. /// </summary>
  23. public StatusEnum UserStatus { get; set; }
  24. /// <summary>
  25. /// 部门Id
  26. /// </summary>
  27. public long DeptId { get; set; }
  28. /// <summary>
  29. /// 部门名称
  30. /// </summary>
  31. public string DeptName { get; set; } = string.Empty;
  32. /// <summary>
  33. /// 角色标识
  34. /// </summary>
  35. public List<string> RoleKeys { get; set; } = new();
  36. /// <summary>
  37. /// 权限标识
  38. /// </summary>
  39. public List<string> Permission { get; set; } = new();
  40. /// <summary>
  41. /// 头像
  42. /// </summary>
  43. public string? Avatar { get; set; }
  44. /// <summary>w
  45. /// 邮箱
  46. /// </summary>
  47. public string? Email { get; set; }
  48. }
  49. }