namespace SafeCampus.System; /// /// 用户信息表 /// [SugarTable("sys_user", TableDescription = "用户信息表")] [Tenant(SqlSugarConst.DB_DEFAULT)] [BatchEdit] [CodeGen] [IgnoreInitTable] public class SysUser : BaseEntity { /// /// 头像 /// [SugarColumn(ColumnName = "Avatar", ColumnDescription = "头像", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)] public virtual string Avatar { get; set; } /// /// 签名 /// [SugarColumn(ColumnName = "Signature", ColumnDescription = "签名", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)] public string Signature { get; set; } /// /// 账号 /// [SugarColumn(ColumnName = "Account", ColumnDescription = "账号", Length = 200, IsNullable = false)] public virtual string Account { get; set; } /// /// 密码 /// [SugarColumn(ColumnName = "Password", ColumnDescription = "密码", Length = 200, IsNullable = false)] public string Password { get; set; } /// /// 姓名 /// [SugarColumn(ColumnName = "Name", ColumnDescription = "姓名", Length = 200, IsNullable = true)] public virtual string Name { get; set; } /// /// 昵称 /// [SugarColumn(ColumnName = "Nickname", ColumnDescription = "昵称", Length = 200, IsNullable = true)] public string Nickname { get; set; } /// /// 性别 /// [SugarColumn(ColumnName = "Gender", ColumnDescription = "性别", Length = 200, IsNullable = true)] public string Gender { get; set; } /// /// 出生日期 /// [SugarColumn(ColumnName = "Birthday", ColumnDescription = "出生日期", Length = 200, IsNullable = true)] public string Birthday { get; set; } /// /// 民族 /// [SugarColumn(ColumnName = "Nation", ColumnDescription = "民族", Length = 200, IsNullable = true)] public string Nation { get; set; } /// /// 籍贯 /// [SugarColumn(ColumnName = "NativePlace", ColumnDescription = "籍贯", Length = 200, IsNullable = true)] public string NativePlace { get; set; } /// /// 家庭住址 /// [SugarColumn(ColumnName = "HomeAddress", ColumnDescription = "家庭住址", IsNullable = true)] public string HomeAddress { get; set; } /// /// 通信地址 /// [SugarColumn(ColumnName = "MailingAddress", ColumnDescription = "通信地址", IsNullable = true)] public string MailingAddress { get; set; } /// /// 证件类型 /// [SugarColumn(ColumnName = "IdCardType", ColumnDescription = "证件类型", Length = 200, IsNullable = true)] public string IdCardType { get; set; } /// /// 证件号码 /// [SugarColumn(ColumnName = "IdCardNumber", ColumnDescription = "证件号码", Length = 200, IsNullable = true)] public string IdCardNumber { get; set; } /// /// 文化程度 /// [SugarColumn(ColumnName = "CultureLevel", ColumnDescription = "文化程度", Length = 200, IsNullable = true)] public string CultureLevel { get; set; } /// /// 政治面貌 /// [SugarColumn(ColumnName = "PoliticalOutlook", ColumnDescription = "政治面貌", Length = 200, IsNullable = true)] public string PoliticalOutlook { get; set; } /// /// 毕业院校 /// [SugarColumn(ColumnName = "College", ColumnDescription = "毕业院校", Length = 200, IsNullable = true)] public string College { get; set; } /// /// 学历 /// [SugarColumn(ColumnName = "Education", ColumnDescription = "学历", Length = 200, IsNullable = true)] public string Education { get; set; } /// /// 学制 /// [SugarColumn(ColumnName = "EduLength", ColumnDescription = "学制", Length = 200, IsNullable = true)] public string EduLength { get; set; } /// /// 学位 /// [SugarColumn(ColumnName = "Degree", ColumnDescription = "学位", Length = 200, IsNullable = true)] public string Degree { get; set; } /// /// 手机 /// 这里使用了SM4自动加密解密 /// [SugarColumn(ColumnName = "Phone", ColumnDescription = "手机", Length = 200, IsNullable = true)] public string Phone { get; set; } /// /// 邮箱 /// [SugarColumn(ColumnName = "Email", ColumnDescription = "邮箱", Length = 200, IsNullable = true)] public string Email { get; set; } /// /// 家庭电话 /// [SugarColumn(ColumnName = "HomeTel", ColumnDescription = "家庭电话", Length = 200, IsNullable = true)] public string HomeTel { get; set; } /// /// 办公电话 /// [SugarColumn(ColumnName = "OfficeTel", ColumnDescription = "办公电话", Length = 200, IsNullable = true)] public string OfficeTel { get; set; } /// /// 紧急联系人 /// [SugarColumn(ColumnName = "EmergencyContact", ColumnDescription = "紧急联系人", Length = 200, IsNullable = true)] public string EmergencyContact { get; set; } /// /// 紧急联系人电话 /// [SugarColumn(ColumnName = "EmergencyPhone", ColumnDescription = "紧急联系人电话", Length = 200, IsNullable = true)] public string EmergencyPhone { get; set; } /// /// 紧急联系人地址 /// [SugarColumn(ColumnName = "EmergencyAddress", ColumnDescription = "紧急联系人地址", IsNullable = true)] public string EmergencyAddress { get; set; } /// /// 员工编号 /// [SugarColumn(ColumnName = "EmpNo", ColumnDescription = "员工编号", Length = 200, IsNullable = true)] public string EmpNo { get; set; } /// /// 入职日期 /// [SugarColumn(ColumnName = "EntryDate", ColumnDescription = "入职日期", Length = 200, IsNullable = true)] public string EntryDate { get; set; } /// /// 机构id /// [SugarColumn(ColumnName = "OrgId", ColumnDescription = "机构id", IsNullable = false)] public virtual long OrgId { get; set; } /// /// 职位id /// [SugarColumn(ColumnName = "PositionId", ColumnDescription = "职位id", IsNullable = false)] public virtual long PositionId { get; set; } /// /// 职级 /// [SugarColumn(ColumnName = "PositionLevel", ColumnDescription = "职级", Length = 200, IsNullable = true)] public string PositionLevel { get; set; } /// /// 主管id /// [SugarColumn(ColumnName = "DirectorId", ColumnDescription = "主管id", IsNullable = true)] public long? DirectorId { get; set; } /// /// 上次修改密码时间 /// [SugarColumn(ColumnName = "PwdRemindUpdateTime", ColumnDescription = "密码提醒修改时间", IsNullable = true)] public DateTime? PwdRemindUpdateTime { get; set; } /// /// 上次登录ip /// [SugarColumn(ColumnName = "LastLoginIp", ColumnDescription = "上次登录ip", Length = 200, IsNullable = true)] public string LastLoginIp { get; set; } /// /// 上次登录地点 /// [SugarColumn(ColumnName = "LastLoginAddress", ColumnDescription = "上次登录地点", Length = 200, IsNullable = true)] public string LastLoginAddress { get; set; } /// /// 上次登录时间 /// [SugarColumn(ColumnName = "LastLoginTime", ColumnDescription = "上次登录时间", IsNullable = true)] public DateTime? LastLoginTime { get; set; } /// /// 上次登录设备 /// [SugarColumn(ColumnName = "LastLoginDevice", ColumnDescription = "上次登录设备", IsNullable = true)] public string LastLoginDevice { get; set; } /// /// 最新登录ip /// [SugarColumn(ColumnName = "LatestLoginIp", ColumnDescription = "最新登录ip", Length = 200, IsNullable = true)] public string LatestLoginIp { get; set; } /// /// 最新登录地点 /// [SugarColumn(ColumnName = "LatestLoginAddress", ColumnDescription = "最新登录地点", Length = 200, IsNullable = true)] public string LatestLoginAddress { get; set; } /// /// 最新登录时间 /// [SugarColumn(ColumnName = "LatestLoginTime", ColumnDescription = "最新登录时间", IsNullable = true)] public DateTime? LatestLoginTime { get; set; } /// /// 最新登录设备 /// [SugarColumn(ColumnName = "LatestLoginDevice", ColumnDescription = "最新登录设备", IsNullable = true)] public string LatestLoginDevice { get; set; } /// /// 排序码 /// [SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序码", IsNullable = true)] public int? SortCode { get; set; } /// /// 默认模块 /// [SugarColumn(ColumnName = "DefaultModule", ColumnDescription = "默认模块", IsNullable = true)] public long? DefaultModule { get; set; } /// /// 机构信息 /// [SugarColumn(IsIgnore = true)] public string OrgName { get; set; } /// /// 机构信息全称 /// [SugarColumn(IsIgnore = true)] public string OrgNames { get; set; } /// /// 职位信息 /// [SugarColumn(IsIgnore = true)] public string PositionName { get; set; } /// /// 组织和机构ID列表,组织ID从上到下最后是职位 /// [SugarColumn(IsIgnore = true, IsJson = true)] public List OrgAndPosIdList { get; set; } = new List(); /// /// 主管信息 /// [SugarColumn(IsIgnore = true)] public UserSelectorOutPut DirectorInfo { get; set; } /// /// 按钮码集合 /// [SugarColumn(IsIgnore = true)] public List ButtonCodeList { get; set; } /// /// 权限码集合 /// [SugarColumn(IsIgnore = true)] public List PermissionCodeList { get; set; } /// /// 角色码集合 /// [SugarColumn(IsIgnore = true)] public List RoleCodeList { get; set; } /// /// 角色ID集合 /// [SugarColumn(IsIgnore = true)] public List RoleIdList { get; set; } /// /// 数据范围集合 /// [SugarColumn(IsIgnore = true)] public List DataScopeList { get; set; } /// /// 默认数据范围 /// [SugarColumn(IsIgnore = true)] public DefaultDataScope DefaultDataScope { get; set; } /// /// 机构及以下机构ID集合 /// [SugarColumn(IsIgnore = true)] public List ScopeOrgChildList { get; set; } /// /// 机构及以下机构ID集合 /// [SugarColumn(IsIgnore = true)] public List ModuleList { get; set; } = new List(); /// /// 租户Id /// [SugarColumn(IsIgnore = true)] public long? TenantId { get; set; } } /// /// 数据范围类 /// public class DataScope { /// /// API接口 /// public string ApiUrl { get; set; } /// /// 数据范围分类 /// public string ScopeCategory { get; set; } /// /// 数据范围的机构ID列表 /// public List? DataScopes { get; set; } }