Skip to content

Commit c6c2b69

Browse files
committed
fix(model): stdnumber is up to 24 chars long
1 parent ed869a6 commit c6c2b69

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/GZCTF/Models/Request/Account/ProfileUpdateModel.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public class ProfileUpdateModel
3535
/// <summary>
3636
/// 学工号
3737
/// </summary>
38-
[MaxLength(15, ErrorMessage = "学工号过长")]
38+
[MaxLength(24, ErrorMessage = "学工号过长")]
3939
public string? StdNumber { get; set; }
4040
}

src/GZCTF/Models/Request/Admin/AdminUserInfoModel.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ public class AdminUserInfoModel
3535
/// <summary>
3636
/// 真实姓名
3737
/// </summary>
38-
[MaxLength(6, ErrorMessage = "真实姓名过长")]
38+
[MaxLength(7, ErrorMessage = "真实姓名过长")]
3939
public string? RealName { get; set; }
4040

4141
/// <summary>
4242
/// 学工号
4343
/// </summary>
44-
[MaxLength(10, ErrorMessage = "学工号过长")]
44+
[MaxLength(24, ErrorMessage = "学工号过长")]
4545
public string? StdNumber { get; set; }
4646

4747
/// <summary>

0 commit comments

Comments
 (0)