UserInfo.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace NEIntelligentControl2.Models.User
  7. {
  8. /// <summary>
  9. /// 用户信息
  10. /// </summary>
  11. public class UserInfo
  12. {
  13. /// <summary>
  14. /// 用户ID
  15. /// </summary>
  16. public int Id { get; set; }
  17. /// <summary>
  18. /// 用户登录名称
  19. /// </summary>
  20. public string UserName { get; set; }
  21. /// <summary>
  22. /// 用户权限
  23. /// </summary>
  24. public UserLevel Level { get; set; } = UserLevel.Normal;
  25. /// <summary>
  26. /// 用户名称(姓名)
  27. /// </summary>
  28. public string Name { get; set; }
  29. /// <summary>
  30. /// 用户电话
  31. /// </summary>
  32. public string Telephone { get; set; }
  33. /// <summary>
  34. /// 凭据
  35. /// </summary>
  36. public string Token { get; set; }
  37. /// <summary>
  38. /// 用户密码
  39. /// </summary>
  40. public string Password { get; set; }
  41. /// <summary>
  42. /// 密码是否安全(必须包含 大小写、数字、特殊字符 中的3种)
  43. /// </summary>
  44. public bool IsPasswordSecurity { get; set; }
  45. /// <summary>
  46. /// 用户指纹1
  47. /// </summary>
  48. public string Finger1 { get; set; }
  49. /// <summary>
  50. /// 用户指纹2
  51. /// </summary>
  52. public string Finger2 { get; set; }
  53. /// <summary>
  54. /// 用户指纹3
  55. /// </summary>
  56. public string Finger3 { get; set; }
  57. /// <summary>
  58. /// 用户指纹4
  59. /// </summary>
  60. public string Finger4 { get; set; }
  61. /// <summary>
  62. /// 用户指纹5
  63. /// </summary>
  64. public string Finger5 { get; set; }
  65. /// <summary>
  66. /// 用户指纹6
  67. /// </summary>
  68. public string Finger6 { get; set; }
  69. /// <summary>
  70. /// 用户指纹7
  71. /// </summary>
  72. public string Finger7 { get; set; }
  73. /// <summary>
  74. /// 用户指纹8
  75. /// </summary>
  76. public string Finger8 { get; set; }
  77. /// <summary>
  78. /// 用户指纹9
  79. /// </summary>
  80. public string Finger9 { get; set; }
  81. /// <summary>
  82. /// 用户指纹10
  83. /// </summary>
  84. public string Finger10 { get; set; }
  85. }
  86. /// <summary>
  87. /// 用户权限
  88. /// </summary>
  89. public enum UserLevel
  90. {
  91. /// <summary>
  92. /// 管理员用户
  93. /// </summary>
  94. Administrator = 1,
  95. /// <summary>
  96. /// 常规用户
  97. /// </summary>
  98. Normal = 2
  99. }
  100. }