UserInfo.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. public class UserInfo
  2. {
  3. public string Token { get; set; }
  4. /// <summary>
  5. /// 用户Id
  6. /// </summary>
  7. public int Id { get; set; }
  8. /// <summary>
  9. /// 用户名
  10. /// </summary>
  11. public string Name { get; set; }
  12. /// <summary>
  13. /// 客户Id
  14. /// </summary>
  15. public int CustomerId { get; set; }
  16. /// <summary>
  17. /// 登陆帐号
  18. /// </summary>
  19. public string LoginAccount { get; set; }
  20. /// <summary>
  21. /// 客户公司名
  22. /// </summary>
  23. public string CustomeCompanyName { get; set; }
  24. /// <summary>
  25. /// 电话
  26. /// </summary>
  27. public string Phone { get; set; }
  28. /// <summary>
  29. /// 邮箱
  30. /// </summary>
  31. public string Email { get; set; }
  32. /// <summary>
  33. /// 公司地址
  34. /// </summary>
  35. public string Stree { get; set; }
  36. /// <summary>
  37. /// 开户时间
  38. /// </summary>
  39. public DateTime CreateTime { get; set; }
  40. /// <summary>
  41. /// 是否管理员
  42. /// </summary>
  43. public bool IsAdmin { get; set; }
  44. /// <summary>
  45. /// 是否客户
  46. /// </summary>
  47. public bool IsCustomer { get; set; }
  48. /// <summary>
  49. /// 登陆系统
  50. /// </summary>
  51. public int UserSystem
  52. {
  53. get; set;
  54. }
  55. /// <summary>
  56. /// 登陆角色
  57. /// </summary>
  58. public string[] RoleNames { get; set; }
  59. /// <summary>
  60. /// 权限Url表
  61. /// </summary>
  62. public Menu[] Permissions
  63. {
  64. get; set;
  65. }
  66. public Menu[] Menus
  67. {
  68. get; set;
  69. }
  70. public string token { get; set; }
  71. }
  72. public class Menu
  73. {
  74. public string Name
  75. {
  76. get; set;
  77. }
  78. public string Url
  79. {
  80. get; set;
  81. }
  82. }