Skip to content

Commit 7a73a1a

Browse files
committedApr 24, 2024··
feat(db): update string length limits
1 parent b032efc commit 7a73a1a

27 files changed

+2046
-102
lines changed
 

‎src/GZCTF/ClientApp/src/Api.ts

+20-17
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export interface ProfileUpdateModel {
133133
userName?: string | null;
134134
/**
135135
* 描述
136-
* @maxLength 55
136+
* @maxLength 128
137137
*/
138138
bio?: string | null;
139139
/**
@@ -143,12 +143,12 @@ export interface ProfileUpdateModel {
143143
phone?: string | null;
144144
/**
145145
* 真实姓名
146-
* @maxLength 7
146+
* @maxLength 128
147147
*/
148148
realName?: string | null;
149149
/**
150150
* 学工号
151-
* @maxLength 24
151+
* @maxLength 64
152152
*/
153153
stdNumber?: string | null;
154154
}
@@ -367,12 +367,12 @@ export interface UserCreateModel {
367367
email: string;
368368
/**
369369
* 真实姓名
370-
* @maxLength 7
370+
* @maxLength 128
371371
*/
372372
realName?: string | null;
373373
/**
374374
* 学号
375-
* @maxLength 24
375+
* @maxLength 64
376376
*/
377377
stdNumber?: string | null;
378378
/**
@@ -443,12 +443,12 @@ export interface TeamUserInfoModel {
443443
export interface AdminTeamModel {
444444
/**
445445
* 队伍名称
446-
* @maxLength 15
446+
* @maxLength 20
447447
*/
448448
name?: string | null;
449449
/**
450450
* 队伍签名
451-
* @maxLength 31
451+
* @maxLength 72
452452
*/
453453
bio?: string | null;
454454
/** 是否锁定 */
@@ -470,7 +470,7 @@ export interface AdminUserInfoModel {
470470
email?: string | null;
471471
/**
472472
* 签名
473-
* @maxLength 50
473+
* @maxLength 128
474474
*/
475475
bio?: string | null;
476476
/**
@@ -480,12 +480,12 @@ export interface AdminUserInfoModel {
480480
phone?: string | null;
481481
/**
482482
* 真实姓名
483-
* @maxLength 7
483+
* @maxLength 128
484484
*/
485485
realName?: string | null;
486486
/**
487487
* 学工号
488-
* @maxLength 24
488+
* @maxLength 64
489489
*/
490490
stdNumber?: string | null;
491491
/** 用户是否通过邮箱验证(可登录) */
@@ -671,7 +671,7 @@ export interface ProblemDetails {
671671
/** 文章对象(Edit) */
672672
export interface PostEditModel {
673673
/**
674-
* 通知标题
674+
* 文章标题
675675
* @minLength 1
676676
* @maxLength 50
677677
*/
@@ -681,7 +681,7 @@ export interface PostEditModel {
681681
/** 文章内容 */
682682
content?: string;
683683
/** 文章标签 */
684-
tags?: string[];
684+
tags?: string[] | null;
685685
/** 是否置顶 */
686686
isPinned?: boolean;
687687
}
@@ -873,7 +873,10 @@ export interface ChallengeEditDetailModel {
873873
type: ChallengeType;
874874
/** 题目提示 */
875875
hints?: string[];
876-
/** Flag 模版,用于根据 Token 和题目、比赛信息生成 Flag */
876+
/**
877+
* Flag 模版,用于根据 Token 和题目、比赛信息生成 Flag
878+
* @maxLength 120
879+
*/
877880
flagTemplate?: string | null;
878881
/** 是否启用题目 */
879882
isEnabled: boolean;
@@ -1121,7 +1124,7 @@ export interface FlagCreateModel {
11211124
/**
11221125
* Flag文本
11231126
* @minLength 1
1124-
* @maxLength 125
1127+
* @maxLength 127
11251128
*/
11261129
flag: string;
11271130
/** 附件类型 */
@@ -1659,7 +1662,7 @@ export interface FlagSubmitModel {
16591662
* flag 内容
16601663
* fix: 防止前端的意外提交 (number/float/null) 可能被错误转换
16611664
* @minLength 1
1662-
* @maxLength 126
1665+
* @maxLength 127
16631666
*/
16641667
flag: string;
16651668
}
@@ -1755,12 +1758,12 @@ export enum CaptchaProvider {
17551758
export interface TeamUpdateModel {
17561759
/**
17571760
* 队伍名称
1758-
* @maxLength 15
1761+
* @maxLength 20
17591762
*/
17601763
name?: string | null;
17611764
/**
17621765
* 队伍签名
1763-
* @maxLength 31
1766+
* @maxLength 72
17641767
*/
17651768
bio?: string | null;
17661769
}

0 commit comments

Comments
 (0)
Please sign in to comment.