Admin.cs 1.5 KB

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