using DS.Module.Core.Data; using SqlSugar; using System.ComponentModel; namespace DS.WMS.Core.Sys.Entity; /// /// 用户实体 /// [SugarTable("sys_user")] public class SysUser : UserTenantModel { /// /// 登陆账号 /// [Description("登陆账号")] public string UserCode { get; set; } /// /// 员工代码 /// [Description("员工代码")] public string UserNumber { get; set; } /// /// 密码 /// [Description("密码")] public string Password { get; set; } /// /// 姓名 中文名称 /// [Description("姓名")] public string UserName { get; set; } /// /// 英文名称 /// [Description("英文名称")] public string UserEnName { get; set; } /// /// 性别 1-男 2-女 3 -未知 /// [Description("性别")] public int Sex { get; set; } = 1; /// ///拼音码 /// [Description("拼音码")] public string PinYinCode { get; set; } /// ///秘钥 /// [Description("秘钥")] public string Secret { get; set; } ///// ///// 废弃 ///// //[Description("昵称")] //public string NickName { get; set; } /// /// /// [Description("头像")] public string Avatar { get; set; } /// /// /// [Description("生日")] public DateTime? Birthday { get; set; } /// ///秘钥 /// [Description("MD5密码")] public string MD5Password { get; set; } /// /// 手机 /// [Description("手机")] public string Phone { get; set; } /// /// 电话 /// [Description("电话")] public string Tel { get; set; } /// /// 办公电话 /// public string OfficePhone { get; set; } /// /// 传真 /// public string Fax { get; set; } /// /// 财务软件代码 /// public string FinanceSoftCode { get; set; } /// /// 邮箱 /// [Description("邮箱")] public string Email { get; set; } /// /// QQ /// [Description("QQ")] public string QQ { get; set; } /// /// 职位 /// [Description("职位")] public string Duty { get; set; } /// /// 大简云用户id /// [Description("大简云用户id")] public string DjyUserId { get; set; } /// /// 用户类型 0-超管 1-管理员 2-普通用户 3- 租户申请 /// [Description("用户类型")] public int UserType { get; set; } = 0; /// /// 状态 /// [Description("状态")] public int Status { get; set; } /// /// 权限身份 0: 无; 1:客户端; 2:市平台:3:省平台 /// [Description("权限身份")] public int PermissionIdentity { get; set; } /// /// 公司Id /// [Description("公司Id")] public string CompanyId { get; set; } /// /// 默认机构Id /// [Description("默认机构Id")] public long DefaultOrgId { get; set; } /// /// DeptId /// [Description("默认部门Id")] public long DeptId { get; set; } /// /// 默认机构 /// [SugarColumn(ColumnDescription = "默认机构", Length = 100, IsNullable = true)] public string DefaultOrgName { get; set; } /// /// 默认部门 /// [SugarColumn(ColumnDescription = "默认部门", Length = 100, IsNullable = true)] public string DeptName { get; set; } /// /// 是否允许使用本系统 /// [Description("是否允许使用本系统")] public bool IsUseSystem { get; set; } /// /// 是否操作 /// [Description("是否操作")] public bool IsOperator { get; set; } = false; /// /// 是否单证 /// [Description("是否单证")] public bool IsVouchingClerk { get; set; } = false; /// /// 是否销售 /// [Description("是否销售")] public bool IsSale { get; set; } = false; /// /// 是否报关员 /// [Description("是否报关员")] public bool IsCustom { get; set; } = false; /// /// 是否财务 /// [Description("是否财务")] public bool IsFinancialStaff { get; set; } = false; /// /// 是否客服 /// [Description("是否客服")] public bool IsCustomerService { get; set; } = false; /// /// 是否司机 /// [Description("是否司机")] public bool IsDriver { get; set; } = false; /// /// 是否派车调度人员 /// [Description("是否派车调度人员")] public bool IsDispatcher { get; set; } = false; /// /// 是否航线操作人员 /// [Description("是否航线操作人员")] public bool IsLaner { get; set; } = false; /// /// 签名图片 /// [Description("签名图片")] public string SignatureUrl { get; set; } /// /// 邮件签名Html代码 /// [SugarColumn(ColumnDescription = "SignatureHtml", Length = 255, IsNullable = true)] public string? SignatureHtml { get; set; } /// /// 首页地址 /// [SugarColumn(ColumnDescription = "首页地址", Length = 255, IsNullable = true)] public string? HomePath { get; set; } /// /// 身份证号 /// [Description("身份证号")] public string IdCardNo { get; set; } /// /// Desc:业务来源Id /// [SugarColumn(ColumnDescription = "业务来源Id", IsNullable = true)] public long? SourceId { get; set; } /// /// Desc:业务来源明细Id /// [SugarColumn(ColumnDescription = "业务来源明细Id", IsNullable = true)] public long? SourceDetailId { get; set; } /// /// Desc:业务来源代码 /// [SugarColumn(ColumnDescription = "业务来源代码", Length = 100, IsNullable = true)] public string SourceCode { get; set; } /// /// Desc:业务来源名称 /// [SugarColumn(ColumnDescription = "业务来源名称", Length = 100, IsNullable = true)] public string SourceName { get; set; } /// /// Desc:业务来源明细名称 /// [SugarColumn(ColumnDescription = "业务来源明细名称", Length = 100, IsNullable = true)] public string SourceDetailName { get; set; } }