SysUserOutput.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 用户输出参数
  5. /// </summary>
  6. public class SysUserOutput
  7. {
  8. /// <summary>
  9. /// 主键
  10. /// </summary>
  11. [Required]
  12. public int Id { get; set; }
  13. /// <summary>
  14. /// 名称
  15. /// </summary>
  16. [Required]
  17. public string Name { get; set; }
  18. /// <summary>
  19. /// 机构ID
  20. /// </summary>
  21. [Required]
  22. public short SysOrgId { get; set; }
  23. /// <summary>
  24. /// 头像地址
  25. /// </summary>
  26. public string Avatar { get; set; }
  27. /// <summary>
  28. /// 手机
  29. /// </summary>
  30. public string Mobile { get; set; }
  31. /// <summary>
  32. /// 电子邮箱
  33. /// </summary>
  34. public string Email { get; set; }
  35. /// <summary>
  36. /// 工号
  37. /// </summary>
  38. public string JobNumber { get; set; }
  39. /// <summary>
  40. /// 备注
  41. /// </summary>
  42. public string Remark { get; set; }
  43. /// <summary>
  44. /// 账号
  45. /// </summary>
  46. public string Account { get; set; }
  47. /// <summary>
  48. /// 最后登录IP
  49. /// </summary>
  50. public string LastLoginIp { get; set; }
  51. /// <summary>
  52. /// 最后登录时间
  53. /// </summary>
  54. public DateTime? LastLoginTime { get; set; }
  55. /// <summary>
  56. /// 用户自定义配置
  57. /// </summary>
  58. public string Config { get; set; }
  59. /// <summary>
  60. /// 是否已激活
  61. /// </summary>
  62. [Required]
  63. public bool IsActivated { get; set; }
  64. /// <summary>
  65. /// 激活时间
  66. /// </summary>
  67. public DateTime? ActivateTime { get; set; }
  68. /// <summary>
  69. /// 状态
  70. /// </summary>
  71. public virtual CommonStatus Status { get; set; }
  72. /// <summary>
  73. /// 多对多(角色)
  74. /// </summary>
  75. public List<SysRoleOutput> SysRoles { get; set; }
  76. /// <summary>
  77. /// 一对一引用(机构)
  78. /// </summary>
  79. public SysOrg SysOrg { get; set; }
  80. }
  81. /// <summary>
  82. /// 最小用户输出信息
  83. /// </summary>
  84. public class SysUserLiteOutput
  85. {
  86. /// <summary>
  87. /// 用户ID
  88. /// </summary>
  89. [Required]
  90. public int Id { get; set; }
  91. /// <summary>
  92. /// 名称
  93. /// </summary>
  94. [Required]
  95. public string Name { get; set; }
  96. }
  97. public class SysUserSimpleOutput
  98. {
  99. /// <summary>
  100. /// 用户ID
  101. /// </summary>
  102. [Required]
  103. public int Id { get; set; }
  104. /// <summary>
  105. /// 名称
  106. /// </summary>
  107. [Required]
  108. public string Name { get; set; }
  109. /// <summary>
  110. /// 账号
  111. /// </summary>
  112. [Required]
  113. public string Account { get; set; }
  114. /// <summary>
  115. /// 手机
  116. /// </summary>
  117. public string Mobile { get; set; }
  118. /// <summary>
  119. /// 电子邮箱
  120. /// </summary>
  121. public string Email { get; set; }
  122. /// <summary>
  123. /// 工号
  124. /// </summary>
  125. public string JobNumber { get; set; }
  126. /// <summary>
  127. /// 机构ID
  128. /// </summary>
  129. [Required]
  130. public short SysOrgId { get; set; }
  131. /// <summary>
  132. /// 机构
  133. /// </summary>
  134. [Required]
  135. public SysOrgLiteOutput SysOrg { get; set; }
  136. }