You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
2.3 KiB
103 lines
2.3 KiB
using System.ComponentModel.DataAnnotations;
|
|
using Common.Enum;
|
|
using Entity.DbModel.System;
|
|
|
|
namespace Entity.Dto.Req
|
|
{
|
|
/// <summary>
|
|
/// 设置用户状态输入参数
|
|
/// </summary>
|
|
public class UserReq : BaseIdReq
|
|
{
|
|
/// <summary>
|
|
/// 状态
|
|
/// </summary>
|
|
public StatusEnum Status { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取用户分页列表输入参数
|
|
/// </summary>
|
|
public class PageUserReq : BasePageReq
|
|
{
|
|
/// <summary>
|
|
/// 账号
|
|
/// </summary>
|
|
public string Account { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 姓名
|
|
/// </summary>
|
|
public string RealName { get; set; } = "";
|
|
}
|
|
|
|
/// <summary>
|
|
/// 增加用户输入参数
|
|
/// </summary>
|
|
public class AddUserReq : SysUser
|
|
{
|
|
/// <summary>
|
|
/// 账号
|
|
/// </summary>
|
|
[Required(ErrorMessage = "账号不能为空")]
|
|
public override string Account { get; set; }
|
|
|
|
/// <summary>
|
|
/// 真实姓名
|
|
/// </summary>
|
|
[Required(ErrorMessage = "真实姓名不能为空")]
|
|
public override string RealName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 角色集合
|
|
/// </summary>
|
|
public List<long> RoleIdList { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 更新用户输入参数
|
|
/// </summary>
|
|
public class UpdateUserReq : AddUserReq
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 删除用户输入参数
|
|
/// </summary>
|
|
public class DeleteUserReq : BaseIdReq
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 重置用户密码输入参数
|
|
/// </summary>
|
|
public class ResetPwdUserReq : BaseIdReq
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 修改用户密码输入参数
|
|
/// </summary>
|
|
public class ChangePwdReq
|
|
{
|
|
/// <summary>
|
|
/// 当前密码
|
|
/// </summary>
|
|
[Required(ErrorMessage = "当前密码不能为空")]
|
|
public string PasswordOld { get; set; }
|
|
|
|
/// <summary>
|
|
/// 新密码
|
|
/// </summary>
|
|
[Required(ErrorMessage = "新密码不能为空"), MinLength(5, ErrorMessage = "密码需要大于5个字符")]
|
|
public string PasswordNew { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 解除登录锁定输入参数
|
|
/// </summary>
|
|
public class UnlockLoginReq : BaseIdReq
|
|
{
|
|
}
|
|
} |