using LifePayment.Domain.Shared; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using ZeroD.Util; namespace LifePayment.Application.Contracts { public class CreateBackClientUserInput { /// /// 名称 /// public string Name { get; set; } /// /// 手机号 /// public string PhoneNumber { get; set; } /// /// 密码 /// public string Password { get; set; } /// /// 账户 /// //[RegularExpression(LifePaymentConstant.RegularExpression.UserNameEx, ErrorMessage = "账号格式不正确")] public string UserName { get; set; } public string Remark { get; set; } /// /// 角色 /// public string[] RoleNames { get; set; } /// /// 渠道列表 /// public string[] ChannlesId { get; set; } /// /// 组织架构公司id /// public Guid? CompanyOrgId { get; set; } /// /// 组织架构部门id /// public Guid? DepartmentOrgId { get; set; } } public class CreateOrUpdateRoleInput : CreateBaseRoleInput { /// /// 角色Id /// public Guid Id { get; set; } } public class CreateBaseRoleInput { /// /// 名称 /// public string Name { get; set; } /// /// 排序 /// public int Sequence { get; set; } /// /// 部门Id /// public int DepartmentId { get; set; } /// /// 数据范围 全部数据100 个人数据 10 /// public int DataRange { get; set; } /// /// 备注 /// public string Remark { get; set; } } /// /// 重置密码基础输入参数 /// public class ResetPasswordBaseInput { public Guid UserId { get; set; } public string? Password { get; set; } } public class UpdateBackClientUserInput : CreateBackClientUserInput { /// /// 用户Id /// public Guid Id { get; set; } } public class RoleEnableOrForbidInput { /// /// 角色Id /// public Guid Id { get; set; } /// /// 启用:true,禁用:false /// public bool IsEnable { get; set; } [System.Text.Json.Serialization.JsonIgnore] public string Name { get; set; } = "Name"; } public class UserDto { /// /// 用户Id /// public Guid Id { get; set; } /// /// 登录用户名(账号) /// public string UserName { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 用户手机号 /// public string PhoneNumber { get; set; } /// /// 账户是否锁住(是否禁用) /// public bool IsLocked { get; set; } /// /// 角色信息 /// public IEnumerable Roles { get; set; } /// /// 角色信息 /// public IEnumerable Channles { get; set; } /// /// 备注 /// public string Remark { get; set; } /// /// 组织架构公司id /// public Guid? CompanyOrgId { get; set; } /// /// 组织架构部门id /// public Guid? DepartmentOrgId { get; set; } } public class GetBackClientUsersInput : PageInput { /// /// 账户是否锁住(是否禁用) /// public bool? IsLocked { get; set; } /// /// 查询条件:名称/账号 /// public string QueryCondition { get; set; } } public class RoleDto { /// /// 角色Id /// public Guid Id { get; set; } /// /// 角色名 /// public string Name { get; set; } } public class RoleInfo { /// /// 角色Id /// public Guid Id { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 排序 /// public int Sequence { get; set; } /// /// 是否可用 /// public bool IsEnable { get; set; } = true; /// /// 部门Id /// public int DepartmentId { get; set; } /// /// 数据范围 全部数据:100 个人数据:10 /// public int DataRange { get; set; } /// /// 账号数量 /// public int UserCount { get; set; } /// /// 备注 /// public string Remark { get; set; } } public class UserChannleDto { /// /// 渠道Id /// public Guid Id { get; set; } /// /// 渠道num /// public string ChannlesNum { get; set; } /// /// 渠道名 /// public string Name { get; set; } } public class GetRolesInput : PageInput { /// /// 查询条件:角色名称 /// public string QueryCondition { get; set; } } }