fix: Set default values
This commit is contained in:
parent
317f6b147e
commit
83cf6ae912
|
|
@ -153,7 +153,7 @@ public class UserController : ControllerBase
|
|||
}
|
||||
|
||||
[HttpPost("/user/phone/modify")]
|
||||
public async Task<bool> ModifyUserPhone([FromQuery] string phone, [FromQuery] string regionCode)
|
||||
public async Task<bool> ModifyUserPhone([FromQuery] string phone, [FromQuery] string regionCode = "CN")
|
||||
{
|
||||
return await _userService.ModifyUserPhone(phone, regionCode);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ public class UserResetPasswordModel
|
|||
public string? Phone { get; set; }
|
||||
public string Password { get; set; } = string.Empty;
|
||||
public string VerificationCode { get; set; }
|
||||
public string? RegionCode { get; set; }
|
||||
public string RegionCode { get; set; } = "CN";
|
||||
|
||||
public User ToUser()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue