平安校园
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

394 linhas
12 KiB

  1. //
  2. namespace SafeCampus.System;
  3. /// <summary>
  4. /// 用户信息表
  5. ///</summary>
  6. [SugarTable("sys_user", TableDescription = "用户信息表")]
  7. [Tenant(SqlSugarConst.DB_DEFAULT)]
  8. [BatchEdit]
  9. [CodeGen]
  10. public class SysUser : BaseEntity
  11. {
  12. /// <summary>
  13. /// 头像
  14. ///</summary>
  15. [SugarColumn(ColumnName = "Avatar", ColumnDescription = "头像", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  16. public virtual string Avatar { get; set; }
  17. /// <summary>
  18. /// 签名
  19. ///</summary>
  20. [SugarColumn(ColumnName = "Signature", ColumnDescription = "签名", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  21. public string Signature { get; set; }
  22. /// <summary>
  23. /// 账号
  24. ///</summary>
  25. [SugarColumn(ColumnName = "Account", ColumnDescription = "账号", Length = 200, IsNullable = false)]
  26. public virtual string Account { get; set; }
  27. /// <summary>
  28. /// 密码
  29. ///</summary>
  30. [SugarColumn(ColumnName = "Password", ColumnDescription = "密码", Length = 200, IsNullable = false)]
  31. public string Password { get; set; }
  32. /// <summary>
  33. /// 姓名
  34. ///</summary>
  35. [SugarColumn(ColumnName = "Name", ColumnDescription = "姓名", Length = 200, IsNullable = true)]
  36. public virtual string Name { get; set; }
  37. /// <summary>
  38. /// 昵称
  39. ///</summary>
  40. [SugarColumn(ColumnName = "Nickname", ColumnDescription = "昵称", Length = 200, IsNullable = true)]
  41. public string Nickname { get; set; }
  42. /// <summary>
  43. /// 性别
  44. ///</summary>
  45. [SugarColumn(ColumnName = "Gender", ColumnDescription = "性别", Length = 200, IsNullable = true)]
  46. public string Gender { get; set; }
  47. /// <summary>
  48. /// 出生日期
  49. ///</summary>
  50. [SugarColumn(ColumnName = "Birthday", ColumnDescription = "出生日期", Length = 200, IsNullable = true)]
  51. public string Birthday { get; set; }
  52. /// <summary>
  53. /// 民族
  54. ///</summary>
  55. [SugarColumn(ColumnName = "Nation", ColumnDescription = "民族", Length = 200, IsNullable = true)]
  56. public string Nation { get; set; }
  57. /// <summary>
  58. /// 籍贯
  59. ///</summary>
  60. [SugarColumn(ColumnName = "NativePlace", ColumnDescription = "籍贯", Length = 200, IsNullable = true)]
  61. public string NativePlace { get; set; }
  62. /// <summary>
  63. /// 家庭住址
  64. ///</summary>
  65. [SugarColumn(ColumnName = "HomeAddress", ColumnDescription = "家庭住址", IsNullable = true)]
  66. public string HomeAddress { get; set; }
  67. /// <summary>
  68. /// 通信地址
  69. ///</summary>
  70. [SugarColumn(ColumnName = "MailingAddress", ColumnDescription = "通信地址", IsNullable = true)]
  71. public string MailingAddress { get; set; }
  72. /// <summary>
  73. /// 证件类型
  74. ///</summary>
  75. [SugarColumn(ColumnName = "IdCardType", ColumnDescription = "证件类型", Length = 200, IsNullable = true)]
  76. public string IdCardType { get; set; }
  77. /// <summary>
  78. /// 证件号码
  79. ///</summary>
  80. [SugarColumn(ColumnName = "IdCardNumber", ColumnDescription = "证件号码", Length = 200, IsNullable = true)]
  81. public string IdCardNumber { get; set; }
  82. /// <summary>
  83. /// 文化程度
  84. ///</summary>
  85. [SugarColumn(ColumnName = "CultureLevel", ColumnDescription = "文化程度", Length = 200, IsNullable = true)]
  86. public string CultureLevel { get; set; }
  87. /// <summary>
  88. /// 政治面貌
  89. ///</summary>
  90. [SugarColumn(ColumnName = "PoliticalOutlook", ColumnDescription = "政治面貌", Length = 200, IsNullable = true)]
  91. public string PoliticalOutlook { get; set; }
  92. /// <summary>
  93. /// 毕业院校
  94. ///</summary>
  95. [SugarColumn(ColumnName = "College", ColumnDescription = "毕业院校", Length = 200, IsNullable = true)]
  96. public string College { get; set; }
  97. /// <summary>
  98. /// 学历
  99. ///</summary>
  100. [SugarColumn(ColumnName = "Education", ColumnDescription = "学历", Length = 200, IsNullable = true)]
  101. public string Education { get; set; }
  102. /// <summary>
  103. /// 学制
  104. ///</summary>
  105. [SugarColumn(ColumnName = "EduLength", ColumnDescription = "学制", Length = 200, IsNullable = true)]
  106. public string EduLength { get; set; }
  107. /// <summary>
  108. /// 学位
  109. ///</summary>
  110. [SugarColumn(ColumnName = "Degree", ColumnDescription = "学位", Length = 200, IsNullable = true)]
  111. public string Degree { get; set; }
  112. /// <summary>
  113. /// 手机
  114. /// 这里使用了SM4自动加密解密
  115. ///</summary>
  116. [SugarColumn(ColumnName = "Phone", ColumnDescription = "手机", Length = 200, IsNullable = true)]
  117. public string Phone { get; set; }
  118. /// <summary>
  119. /// 邮箱
  120. ///</summary>
  121. [SugarColumn(ColumnName = "Email", ColumnDescription = "邮箱", Length = 200, IsNullable = true)]
  122. public string Email { get; set; }
  123. /// <summary>
  124. /// 家庭电话
  125. ///</summary>
  126. [SugarColumn(ColumnName = "HomeTel", ColumnDescription = "家庭电话", Length = 200, IsNullable = true)]
  127. public string HomeTel { get; set; }
  128. /// <summary>
  129. /// 办公电话
  130. ///</summary>
  131. [SugarColumn(ColumnName = "OfficeTel", ColumnDescription = "办公电话", Length = 200, IsNullable = true)]
  132. public string OfficeTel { get; set; }
  133. /// <summary>
  134. /// 紧急联系人
  135. ///</summary>
  136. [SugarColumn(ColumnName = "EmergencyContact", ColumnDescription = "紧急联系人", Length = 200, IsNullable = true)]
  137. public string EmergencyContact { get; set; }
  138. /// <summary>
  139. /// 紧急联系人电话
  140. ///</summary>
  141. [SugarColumn(ColumnName = "EmergencyPhone", ColumnDescription = "紧急联系人电话", Length = 200, IsNullable = true)]
  142. public string EmergencyPhone { get; set; }
  143. /// <summary>
  144. /// 紧急联系人地址
  145. ///</summary>
  146. [SugarColumn(ColumnName = "EmergencyAddress", ColumnDescription = "紧急联系人地址", IsNullable = true)]
  147. public string EmergencyAddress { get; set; }
  148. /// <summary>
  149. /// 员工编号
  150. ///</summary>
  151. [SugarColumn(ColumnName = "EmpNo", ColumnDescription = "员工编号", Length = 200, IsNullable = true)]
  152. public string EmpNo { get; set; }
  153. /// <summary>
  154. /// 入职日期
  155. ///</summary>
  156. [SugarColumn(ColumnName = "EntryDate", ColumnDescription = "入职日期", Length = 200, IsNullable = true)]
  157. public string EntryDate { get; set; }
  158. /// <summary>
  159. /// 机构id
  160. ///</summary>
  161. [SugarColumn(ColumnName = "OrgId", ColumnDescription = "机构id", IsNullable = false)]
  162. public virtual long OrgId { get; set; }
  163. /// <summary>
  164. /// 职位id
  165. ///</summary>
  166. [SugarColumn(ColumnName = "PositionId", ColumnDescription = "职位id", IsNullable = false)]
  167. public virtual long PositionId { get; set; }
  168. /// <summary>
  169. /// 职级
  170. ///</summary>
  171. [SugarColumn(ColumnName = "PositionLevel", ColumnDescription = "职级", Length = 200, IsNullable = true)]
  172. public string PositionLevel { get; set; }
  173. /// <summary>
  174. /// 主管id
  175. ///</summary>
  176. [SugarColumn(ColumnName = "DirectorId", ColumnDescription = "主管id", IsNullable = true)]
  177. public long? DirectorId { get; set; }
  178. /// <summary>
  179. /// 上次修改密码时间
  180. ///</summary>
  181. [SugarColumn(ColumnName = "PwdRemindUpdateTime", ColumnDescription = "密码提醒修改时间", IsNullable = true)]
  182. public DateTime? PwdRemindUpdateTime { get; set; }
  183. /// <summary>
  184. /// 上次登录ip
  185. ///</summary>
  186. [SugarColumn(ColumnName = "LastLoginIp", ColumnDescription = "上次登录ip", Length = 200, IsNullable = true)]
  187. public string LastLoginIp { get; set; }
  188. /// <summary>
  189. /// 上次登录地点
  190. ///</summary>
  191. [SugarColumn(ColumnName = "LastLoginAddress", ColumnDescription = "上次登录地点", Length = 200, IsNullable = true)]
  192. public string LastLoginAddress { get; set; }
  193. /// <summary>
  194. /// 上次登录时间
  195. ///</summary>
  196. [SugarColumn(ColumnName = "LastLoginTime", ColumnDescription = "上次登录时间", IsNullable = true)]
  197. public DateTime? LastLoginTime { get; set; }
  198. /// <summary>
  199. /// 上次登录设备
  200. ///</summary>
  201. [SugarColumn(ColumnName = "LastLoginDevice", ColumnDescription = "上次登录设备", IsNullable = true)]
  202. public string LastLoginDevice { get; set; }
  203. /// <summary>
  204. /// 最新登录ip
  205. ///</summary>
  206. [SugarColumn(ColumnName = "LatestLoginIp", ColumnDescription = "最新登录ip", Length = 200, IsNullable = true)]
  207. public string LatestLoginIp { get; set; }
  208. /// <summary>
  209. /// 最新登录地点
  210. ///</summary>
  211. [SugarColumn(ColumnName = "LatestLoginAddress", ColumnDescription = "最新登录地点", Length = 200, IsNullable = true)]
  212. public string LatestLoginAddress { get; set; }
  213. /// <summary>
  214. /// 最新登录时间
  215. ///</summary>
  216. [SugarColumn(ColumnName = "LatestLoginTime", ColumnDescription = "最新登录时间", IsNullable = true)]
  217. public DateTime? LatestLoginTime { get; set; }
  218. /// <summary>
  219. /// 最新登录设备
  220. ///</summary>
  221. [SugarColumn(ColumnName = "LatestLoginDevice", ColumnDescription = "最新登录设备", IsNullable = true)]
  222. public string LatestLoginDevice { get; set; }
  223. /// <summary>
  224. /// 排序码
  225. ///</summary>
  226. [SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码", IsNullable = true)]
  227. public int? SortCode { get; set; }
  228. /// <summary>
  229. /// 默认模块
  230. ///</summary>
  231. [SugarColumn(ColumnName = "DefaultModule", ColumnDescription = "默认模块", IsNullable = true)]
  232. public long? DefaultModule { get; set; }
  233. /// <summary>
  234. /// 机构信息
  235. /// </summary>
  236. [SugarColumn(IsIgnore = true)]
  237. public string OrgName { get; set; }
  238. /// <summary>
  239. /// 机构信息全称
  240. /// </summary>
  241. [SugarColumn(IsIgnore = true)]
  242. public string OrgNames { get; set; }
  243. /// <summary>
  244. /// 职位信息
  245. /// </summary>
  246. [SugarColumn(IsIgnore = true)]
  247. public string PositionName { get; set; }
  248. /// <summary>
  249. /// 组织和机构ID列表,组织ID从上到下最后是职位
  250. /// </summary>
  251. [SugarColumn(IsIgnore = true, IsJson = true)]
  252. public List<long> OrgAndPosIdList { get; set; } = new List<long>();
  253. /// <summary>
  254. /// 主管信息
  255. /// </summary>
  256. [SugarColumn(IsIgnore = true)]
  257. public UserSelectorOutPut DirectorInfo { get; set; }
  258. /// <summary>
  259. /// 按钮码集合
  260. /// </summary>
  261. [SugarColumn(IsIgnore = true)]
  262. public List<string> ButtonCodeList { get; set; }
  263. /// <summary>
  264. /// 权限码集合
  265. /// </summary>
  266. [SugarColumn(IsIgnore = true)]
  267. public List<string> PermissionCodeList { get; set; }
  268. /// <summary>
  269. /// 角色码集合
  270. /// </summary>
  271. [SugarColumn(IsIgnore = true)]
  272. public List<string> RoleCodeList { get; set; }
  273. /// <summary>
  274. /// 角色ID集合
  275. /// </summary>
  276. [SugarColumn(IsIgnore = true)]
  277. public List<long> RoleIdList { get; set; }
  278. /// <summary>
  279. /// 数据范围集合
  280. /// </summary>
  281. [SugarColumn(IsIgnore = true)]
  282. public List<DataScope> DataScopeList { get; set; }
  283. /// <summary>
  284. /// 默认数据范围
  285. /// </summary>
  286. [SugarColumn(IsIgnore = true)]
  287. public DefaultDataScope DefaultDataScope { get; set; }
  288. /// <summary>
  289. /// 机构及以下机构ID集合
  290. /// </summary>
  291. [SugarColumn(IsIgnore = true)]
  292. public List<long> ScopeOrgChildList { get; set; }
  293. /// <summary>
  294. /// 机构及以下机构ID集合
  295. /// </summary>
  296. [SugarColumn(IsIgnore = true)]
  297. public List<SysResource> ModuleList { get; set; } = new List<SysResource>();
  298. /// <summary>
  299. /// 租户Id
  300. /// </summary>
  301. [SugarColumn(IsIgnore = true)]
  302. public long? TenantId { get; set; }
  303. }
  304. /// <summary>
  305. /// 数据范围类
  306. /// </summary>
  307. public class DataScope
  308. {
  309. /// <summary>
  310. /// API接口
  311. /// </summary>
  312. public string ApiUrl { get; set; }
  313. /// <summary>
  314. /// 数据范围分类
  315. /// </summary>
  316. public string ScopeCategory { get; set; }
  317. /// <summary>
  318. /// 数据范围的机构ID列表
  319. /// </summary>
  320. public List<long>? DataScopes { get; set; }
  321. }