2022 jphd-3dprint
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-02-23 17:19:19 +08:00
parent e0115e0e07
commit 772525a9b6
18 changed files with 712 additions and 228 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ namespace _2021_backend.Models
TimeSelect,
TimeSet,
Signed,
Reply
Reply,
Captcha,
}
public class SMS
{
+25 -4
View File
@@ -15,6 +15,7 @@ namespace _2021_backend.Models
需调整时间,
已确认时间,
不通过,
已提交,
已评分,
暂缺
}
@@ -48,8 +49,21 @@ namespace _2021_backend.Models
暂缺 = 0,
萌新 = 1,
略有了解 = 2,
了解较多 = 3,
轻车熟路 = 4
轻车熟路 = 3,
}
public class FileDesc
{
[Key]
public int Id { get; set; }
public int OwnerId { get; set; }
public string Name { get; set; }
public int Size { get; set; }
public string Path { get; set; }
public DateTime UploadTime { get; set; }
}
public class Student
@@ -91,7 +105,6 @@ namespace _2021_backend.Models
student.Yard = sub.Yard;
student.Exp = sub.Exp;
student.Timelist = sub.Timelist;
student.Submissions.Add(sub.Id);
student.RegisterTime = sub.SubmitTime;
return student;
}
@@ -122,8 +135,12 @@ namespace _2021_backend.Models
[Display(Name = "最终场次")]
public int InterviewTime { get; set; }
[Display(Name = "提交记录")]
[Display(Name = "报名记录")]
public List<int> Submissions { get; set; }
[Display(Name = "提交的文件")]
public List<int> Uploads { get; set; }
[Display(Name = "短信记录")]
public List<int> Messages { get; set; }
[Display(Name = "可选场次")]
@@ -143,5 +160,9 @@ namespace _2021_backend.Models
[Display(Name = "报名时间")]
[DataType(DataType.DateTime)]
public DateTime RegisterTime { get; set; }
public string LastCaptcha { get; set; }
public DateTime LastCaptchaTime { get; set; }
}
}
+1 -1
View File
@@ -121,7 +121,7 @@ namespace _2021_backend.Models
if (Major.Length > 20)
return false;
if (Yard >= 6 && Yard <= 0) return false;
if (Exp >= 5 && Exp <= 0) return false;
if (Exp >= 3 && Exp <= 0) return false;
if (!r.IsMatch(Email))
{
return false;