新增管理员

This commit is contained in:
18631081161 2026-04-19 15:13:27 +08:00
parent 2cbed3e34f
commit f3b1f046c9
3 changed files with 15 additions and 5 deletions

View File

@ -36,11 +36,16 @@ public class CreateAdminUserRequest
public string? Avatar { get; set; }
/// <summary>
/// 邮箱
/// 邮箱(为空时跳过格式验证)
/// </summary>
[MaxLength(100, ErrorMessage = "邮箱最多100个字符")]
[EmailAddress(ErrorMessage = "邮箱格式不正确")]
public string? Email { get; set; }
public string? Email
{
get => _email;
set => _email = string.IsNullOrWhiteSpace(value) ? null : value;
}
private string? _email;
/// <summary>
/// 手机号

View File

@ -20,11 +20,16 @@ public class UpdateAdminUserRequest
public string? Avatar { get; set; }
/// <summary>
/// 邮箱
/// 邮箱(为空时跳过格式验证)
/// </summary>
[MaxLength(100, ErrorMessage = "邮箱最多100个字符")]
[EmailAddress(ErrorMessage = "邮箱格式不正确")]
public string? Email { get; set; }
public string? Email
{
get => _email;
set => _email = string.IsNullOrWhiteSpace(value) ? null : value;
}
private string? _email;
/// <summary>
/// 手机号

View File

@ -1,6 +1,6 @@
{
"name" : "学业邑规划",
"appid" : "__UNI__1BAACAB",
"appid" : "__UNI__A612028",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",