fix: Set default values

This commit is contained in:
AnonymousDotNet 2024-10-23 15:04:36 +08:00
parent 0fbe0e6f0c
commit 317f6b147e

View file

@ -12,7 +12,7 @@ public class UserCreationModel
public string Password { get; set; } = string.Empty;
public string Type { get; set; } = UserType.Client;
public string Role { get; set; } = UserRole.User;
public string? RegionCode { get; set; }
public string RegionCode { get; set; } = "CN";
public User ToUser()
{
return new User