This commit is contained in:
@@ -21,7 +21,7 @@ namespace Entities.Contracts
|
||||
部编版,
|
||||
}
|
||||
|
||||
public enum Grade : byte
|
||||
public enum GradeEnum : byte
|
||||
{
|
||||
Unknown = 0,
|
||||
一年级 = 1,
|
||||
@@ -69,14 +69,25 @@ namespace Entities.Contracts
|
||||
|
||||
public enum AssignmentStructType : byte
|
||||
{
|
||||
Root,
|
||||
Question,
|
||||
Composite,
|
||||
Group,
|
||||
Struct,
|
||||
SubQuestion,
|
||||
Option
|
||||
}
|
||||
|
||||
|
||||
public enum ExamType : byte
|
||||
{
|
||||
MidtermExam, // 期中
|
||||
FinalExam, // 期末
|
||||
MonthlyExam, // 月考
|
||||
WeeklyExam, // 周考
|
||||
DailyTest, // 平时测试
|
||||
AITest, // AI测试
|
||||
}
|
||||
|
||||
|
||||
public enum SubmissionStatus
|
||||
{
|
||||
|
@@ -41,6 +41,10 @@ namespace Entities.Contracts
|
||||
[Column("score")]
|
||||
public float Score { get; set; }
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public ExamType ExamType { get; set; } = ExamType.DailyTest;
|
||||
|
||||
[Column("created_by")]
|
||||
public Guid CreatorId { get; set; }
|
||||
|
||||
|
@@ -48,7 +48,7 @@ namespace Entities.Contracts
|
||||
[Column("lesson")]
|
||||
public Guid? LessonId { get; set; }
|
||||
|
||||
|
||||
|
||||
[Required]
|
||||
[Column("created_by")]
|
||||
public Guid CreatorId { get; set; }
|
||||
|
@@ -49,6 +49,12 @@ namespace Entities.Contracts
|
||||
[Column("deleted")]
|
||||
public bool IsDeleted { get; set; }
|
||||
|
||||
public byte TotalQuesNum { get; set; }
|
||||
|
||||
public byte ErrorQuesNum { get; set; }
|
||||
|
||||
public byte TotalScore { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("status")]
|
||||
public SubmissionStatus Status { get; set; }
|
||||
|
@@ -15,7 +15,7 @@ namespace Entities.Contracts
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public Grade Grade { get; set; } = Grade.Unknown;
|
||||
public GradeEnum Grade { get; set; } = GradeEnum.Unknown;
|
||||
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
|
Reference in New Issue
Block a user