平安校园
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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