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