fix: Set default values

This commit is contained in:
AnonymousDotNet 2024-10-23 15:35:05 +08:00
parent 317f6b147e
commit 83cf6ae912
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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()
{