using System.ComponentModel.DataAnnotations;
using Entity.DbModel.System.App;
using HybirdFrameworkCore.Entity;
namespace Entity.Dto.Req.App;
///
/// 获取App用户分页列表输入参数
///
public class PageCustomerReq : QueryPageModel
{
///
/// 账号
///
public string Account { get; set; } = "";
///
/// 姓名
///
public string RealName { get; set; } = "";
}
///
/// 增加App用户输入参数
///
public class AddAppCustomerReq : AppCustomer
{
}
///
/// 更新App用户输入参数
///
public class UpdateAppCustomerReq : AddAppCustomerReq
{
}
///
/// 修改用户密码输入参数
///
public class CustomerPwdReq
{
///
/// 账号
///
[Required(ErrorMessage = "账号不能为空")]
public string LoginNo { get; set; }
///
/// 当前密码
///
[Required(ErrorMessage = "当前密码不能为空")]
public string PasswordOld { get; set; }
///
/// 新密码
///
[Required(ErrorMessage = "新密码不能为空"), MinLength(5, ErrorMessage = "密码需要大于5个字符")]
public string PasswordNew { get; set; }
}