Admin.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using System;
  2. using Datory.Annotations;
  3. namespace GxPress.Entity
  4. {
  5. /// <summary>
  6. /// 后台管理员
  7. /// </summary>
  8. [DataTable("tede_admin")]
  9. public class Admin : Datory.Entity
  10. {
  11. /// <summary>
  12. /// 账号
  13. /// </summary>
  14. [DataColumn]
  15. public string Account { get; set; }
  16. /// <summary>
  17. /// 用户名
  18. /// </summary>
  19. [DataColumn]
  20. public string Name { get; set; }
  21. /// <summary>
  22. /// 密码
  23. /// </summary>
  24. [DataColumn]
  25. public string Password { get; set; }
  26. /// <summary>
  27. /// 后台用户菜单权限
  28. /// </summary>
  29. [DataColumn]
  30. public string Menus { get; set; }
  31. /// <summary>
  32. /// 手机号码
  33. /// </summary>
  34. [DataColumn]
  35. public string Phone { get; set; }
  36. /// <summary>
  37. /// 旧密码
  38. /// </summary>
  39. /// <value></value>
  40. public string OldPassword { get; set; }
  41. /// <summary>
  42. /// 新密码
  43. /// </summary>
  44. /// <value></value>
  45. public string NewPassword { get; set; }
  46. /// <summary>
  47. /// 电子邮箱
  48. /// </summary>
  49. [DataColumn]
  50. public string Email { get; set; }
  51. /// <summary>
  52. /// 性别
  53. /// </summary>
  54. [DataColumn]
  55. public string Sex { get; set; }
  56. /// <summary>
  57. /// 角色Id
  58. /// </summary>
  59. /// <value></value>
  60. [DataColumn]
  61. public int RoleId { get; set; }
  62. /// <summary>
  63. /// 登陆ID
  64. /// </summary>
  65. /// <value></value>
  66. [DataColumn]
  67. public string Ip { get; set; }
  68. /// <summary>
  69. /// 登陆时间
  70. /// </summary>
  71. /// <value></value>
  72. [DataColumn]
  73. public DateTime LoginTime { get; set; }
  74. }
  75. }