namespace Admin.NET.Core.Service;
public class UserInput : BaseIdInput
{
///
/// 状态
///
public StatusEnum Status { get; set; }
}
public class PageUserInput : BasePageInput
{
///
/// 账号
///
public string Account { get; set; }
///
/// 姓名
///
public string RealName { get; set; }
///
/// 手机号
///
public string Phone { get; set; }
///
/// 查询时所选机构Id
///
public long OrgId { get; set; }
}
public class AddUserInput : SysUser
{
///
/// 账号
///
[Required(ErrorMessage = "账号不能为空")]
public override string Account { get; set; }
///
/// 真实姓名
///
[Required(ErrorMessage = "真实姓名不能为空")]
public override string RealName { get; set; }
///
/// 角色集合
///
public List RoleIdList { get; set; }
///
/// 扩展机构集合
///
public List ExtOrgIdList { get; set; }
}
public class UpdateUserInput : AddUserInput
{
}
public class DeleteUserInput : BaseIdInput
{
///
/// 机构Id
///
public long OrgId { get; set; }
}
public class ResetPwdUserInput : BaseIdInput
{
}
public class ChangePwdInput
{
///
/// 当前密码
///
[Required(ErrorMessage = "当前密码不能为空")]
public string PasswordOld { get; set; }
///
/// 新密码
///
[Required(ErrorMessage = "新密码不能为空")]
[StringLength(20, MinimumLength = 5, ErrorMessage = "密码需要大于5个字符")]
public string PasswordNew { get; set; }
}