using System.ComponentModel.DataAnnotations;
using Common.Enum;
using Entity.DbModel.System;
using HybirdFrameworkCore.Entity;
namespace Entity.Dto.Req
{
///
/// 设置用户状态输入参数
///
public class UserReq : BaseIdReq
{
///
/// 状态
///
public StatusEnum Status { get; set; }
}
///
/// 获取用户分页列表输入参数
///
public class PageUserReq : QueryPageModel
{
///
/// 账号
///
public string Account { get; set; } = "";
///
/// 姓名
///
public string RealName { get; set; } = "";
}
///
/// 增加用户输入参数
///
public class AddUserReq : SysUser
{
///
/// 账号
///
[Required(ErrorMessage = "账号不能为空")]
public override string Account { get; set; }
///
/// 真实姓名
///
[Required(ErrorMessage = "真实姓名不能为空")]
public override string RealName { get; set; }
///
/// 角色集合
///
public List RoleIdList { get; set; }
}
///
/// 更新用户输入参数
///
public class UpdateUserReq : AddUserReq
{
}
///
/// 删除用户输入参数
///
public class DeleteUserReq : BaseIdReq
{
}
///
/// 重置用户密码输入参数
///
public class ResetPwdUserReq : BaseIdReq
{
}
///
/// 修改用户密码输入参数
///
public class ChangePwdReq
{
///
/// 当前密码
///
[Required(ErrorMessage = "当前密码不能为空")]
public string PasswordOld { get; set; }
///
/// 新密码
///
[Required(ErrorMessage = "新密码不能为空"), MinLength(5, ErrorMessage = "密码需要大于5个字符")]
public string PasswordNew { get; set; }
}
///
/// 解除登录锁定输入参数
///
public class UnlockLoginReq : BaseIdReq
{
}
}