From 317f6b147ec186394a3692e4295d590ebf4e1e32 Mon Sep 17 00:00:00 2001 From: AnonymousDotNet <18776095145@163.com> Date: Wed, 23 Oct 2024 15:04:36 +0800 Subject: [PATCH] fix: Set default values --- .../BotSharp.OpenAPI/ViewModels/Users/UserCreationModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Users/UserCreationModel.cs b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Users/UserCreationModel.cs index f2d9f048..c55da5fa 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Users/UserCreationModel.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Users/UserCreationModel.cs @@ -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