//
namespace SafeCampus.System;
///
/// 用户选择器参数
///
public class UserSelectorInput : BasePageInput
{
///
/// 组织ID
///
public long OrgId { get; set; }
///
/// 机构ID列表
///
public List OrgIds { get; set; }
///
/// 机构ID
///
public long PositionId { get; set; }
///
/// 角色ID
///
public long RoleId { get; set; }
///
/// 关键字
///
public string Account { get; set; }
}
///
/// 用户分页查询参数
///
public class UserPageInput : BasePageInput
{
///
/// 所属组织
///
public long OrgId { get; set; }
///
/// 动态查询条件
///
public Expressionable Expression { get; set; }
///
/// 用户状态
///
public string Status { get; set; }
}
///
/// 添加用户参数
///
public class UserAddInput : SysUser
{
///
/// 账号
///
[Required(ErrorMessage = "Account不能为空")]
public override string Account { get; set; }
///
/// 姓名
///
[Required(ErrorMessage = "Name不能为空")]
public override string Name { get; set; }
///
/// 组织id
///
[IdNotNull(ErrorMessage = "OrgId不能为空")]
public override long OrgId { get; set; }
///
/// 职位id
///
[IdNotNull(ErrorMessage = "PositionId不能为空")]
public override long PositionId { get; set; }
}
///
/// 编辑用户参数
///
public class UserEditInput : UserAddInput
{
///
/// Id
///
[IdNotNull(ErrorMessage = "Id不能为空")]
public override long Id { get; set; }
}
///
/// 用户授权角色参数
///
public class UserGrantRoleInput
{
///
/// Id
///
[IdNotNull(ErrorMessage = "Id不能为空")]
public long Id { get; set; }
///
/// 授权权限信息
///
[Required(ErrorMessage = "RoleIdList不能为空")]
public List RoleIdList { get; set; }
}
public class UserGrantResourceInput : GrantResourceInput
{
///
/// 默认数据权限
///
[Required(ErrorMessage = "DefaultDataScope不能为空")]
public DefaultDataScope DefaultDataScope { get; set; }
}
///
/// 用户导入
///
public class SysUserImportInput : ImportTemplateInput
{
///
/// 账号
///
[ImporterHeader(Name = "账号")]
[Required(ErrorMessage = "账号不能为空")]
public string Account { get; set; }
///
/// 姓名
///
[ImporterHeader(Name = "姓名")]
[Required(ErrorMessage = "姓名不能为空")]
public virtual string Name { get; set; }
///
/// 性别
///
[ImporterHeader(Name = "性别")]
[Required(ErrorMessage = "性别不能为空")]
public string Gender { get; set; }
///
/// 昵称
///
[ImporterHeader(Name = "昵称")]
public string Nickname { get; set; }
///
/// 手机
/// 这里使用了SM4自动加密解密
///
[ImporterHeader(Name = "手机号")]
public string Phone { get; set; }
///
/// 邮箱
///
[ImporterHeader(Name = "邮箱")]
[EmailAddress(ErrorMessage = "邮箱格式错误")]
public string Email { get; set; }
///
/// 所属机构
///
[ImporterHeader(Name = "所属机构(子机构用/隔开)")]
[Required(ErrorMessage = "所属部门不能为空")]
[AntTable(Width = 200)]
public string OrgName { get; set; }
///
/// 职位
///
[ImporterHeader(Name = "职位")]
[Required(ErrorMessage = "职位不能为空")]
public string PositionName { get; set; }
///
/// 出生日期
///
[ImporterHeader(Name = "出生日期")]
[AntTable(IsDate = true)]
public DateTime? Birthday { get; set; }
///
/// 民族
///
[ImporterHeader(Name = "民族")]
public string Nation { get; set; }
///
/// 籍贯
///
[ImporterHeader(Name = "籍贯")]
public string NativePlace { get; set; }
///
/// 家庭住址
///
[ImporterHeader(Name = "家庭住址")]
public string HomeAddress { get; set; }
///
/// 通信地址
///
[ImporterHeader(Name = "通信地址")]
public string MailingAddress { get; set; }
///
/// 证件类型
///
[ImporterHeader(Name = "证件类型")]
public string IdCardType { get; set; }
///
/// 证件号码
///
[ImporterHeader(Name = "证件号码")]
public string IdCardNumber { get; set; }
///
/// 文化程度
///
[ImporterHeader(Name = "文化程度")]
public string CultureLevel { get; set; }
///
/// 政治面貌
///
[ImporterHeader(Name = "政治面貌")]
public string PoliticalOutlook { get; set; }
///
/// 毕业院校
///
[ImporterHeader(Name = "毕业院校")]
public string College { get; set; }
///
/// 学历
///
[ImporterHeader(Name = "学历")]
public string Education { get; set; }
///
/// 学制
///
[ImporterHeader(Name = "学制")]
public string EduLength { get; set; }
///
/// 学位
///
[ImporterHeader(Name = "学位")]
public string Degree { get; set; }
///
/// 家庭电话
///
[ImporterHeader(Name = "家庭电话")]
public string HomeTel { get; set; }
///
/// 办公电话
///
[ImporterHeader(Name = "办公电话")]
public string OfficeTel { get; set; }
///
/// 紧急联系人
///
[ImporterHeader(Name = "紧急联系人")]
public string EmergencyContact { get; set; }
///
/// 紧急联系人电话
///
[ImporterHeader(Name = "紧急联系人电话")]
[Phone(ErrorMessage = "电话号码格式错误")]
public string EmergencyPhone { get; set; }
///
/// 紧急联系人地址
///
[ImporterHeader(Name = "紧急联系人地址")]
public string EmergencyAddress { get; set; }
///
/// 员工编号
///
[ImporterHeader(Name = "员工编号")]
public string EmpNo { get; set; }
///
/// 入职日期
///
[ImporterHeader(Name = "入职日期")]
[AntTable(IsDate = true)]
public DateTime? EntryDate { get; set; }
///
/// 部门Id
///
[ImporterHeader(IsIgnore = true)]
public long OrgId { get; set; }
///
/// 职位Id
///
[ImporterHeader(IsIgnore = true)]
public long PositionId { get; set; }
}