2024-06-28 09:59:49 +00:00
|
|
|
namespace BotSharp.OpenAPI.ViewModels.Users;
|
|
|
|
|
|
|
|
|
|
public class UserResetPasswordModel
|
|
|
|
|
{
|
|
|
|
|
public string? Email { get; set; }
|
|
|
|
|
public string? Phone { get; set; }
|
|
|
|
|
public string Password { get; set; } = string.Empty;
|
|
|
|
|
public string VerificationCode { get; set; }
|
2024-10-23 07:35:05 +00:00
|
|
|
public string RegionCode { get; set; } = "CN";
|
2024-06-28 09:59:49 +00:00
|
|
|
|
|
|
|
|
public User ToUser()
|
|
|
|
|
{
|
|
|
|
|
return new User
|
|
|
|
|
{
|
|
|
|
|
Email = Email,
|
|
|
|
|
Phone = Phone,
|
|
|
|
|
Password = Password,
|
2024-10-28 02:22:39 +00:00
|
|
|
VerificationCode = VerificationCode,
|
|
|
|
|
RegionCode = RegionCode
|
2024-06-28 09:59:49 +00:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|