Documentation
¶
Overview ¶
自动生成模板ExamPaper
自动生成模板PaperQuestionMerge
自动生成模板PaperTemplate
自动生成模板PaperTemplateItem
自动生成模板ExamStudentPaper
Index ¶
- type AllScore
- type BlankCommit
- type BlankCommit1
- type CommitExamPaper
- type CommitExamPaper1
- type CommitExamPaper2
- type CommitProgram
- type Detail
- type DraftPaperQuestionMerge
- type ExamInfo
- type ExamPaper
- type ExamPaper1
- type ExamPaperDraft
- type ExamPaperDraft1
- type ExamRecord
- type ExamRecordMerge
- type ExamScore
- type ExamStudentPaper
- type JudgeCommit
- type JudgeCommit1
- type MultipleChoiceCommit
- type MultipleChoiceCommit1
- type PaperQuestionMerge
- type PaperQuestionMerge1
- type PaperTemplate
- type PaperTemplateId
- type PaperTemplateItem
- type Product
- type ProgramAnswer
- type ProgramCommit1
- type QuesNum
- type QuesScore
- type ReExecExamPaper
- type ReviewScore
- type ReviewScore1
- type ScoreList
- type StudentPaperStatus
- type TargetExamingScore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlankCommit ¶
type BlankCommit1 ¶
type CommitExamPaper ¶
type CommitExamPaper struct { StudentId uint `json:"studentId" form:"studentId"` PlanId uint `json:"planId" form:"planId"` PaperId uint `json:"paperId" form:"paperId"` MultipleChoiceCommit []MultipleChoiceCommit `json:"multipleChoiceCommit"` JudgeCommit []JudgeCommit `json:"judgeCommit"` BlankCommit []BlankCommit `json:"blankCommit"` ProgramCommit []CommitProgram `json:"programCommit"` }
type CommitExamPaper1 ¶
type CommitExamPaper1 struct { StudentId uint `json:"studentId" form:"studentId"` PlanId uint `json:"planId" form:"planId"` PaperId uint `json:"paperId" form:"paperId"` MultipleChoiceCommit []MultipleChoiceCommit `json:"multipleChoiceCommit"` JudgeCommit []JudgeCommit `json:"judgeCommit"` BlankCommit []BlankCommit `json:"blankCommit"` ProgramCommit []CommitProgram `json:"programCommit" form:"programCommit"` }
type CommitExamPaper2 ¶
type CommitExamPaper2 struct { StudentId uint `json:"studentId" form:"studentId"` PlanId uint `json:"planId" form:"planId"` PaperId uint `json:"paperId" form:"paperId"` SingleChoiceCommit []MultipleChoiceCommit `json:"singleChoiceCommit"` MultipleChoiceCommit []MultipleChoiceCommit `json:"multipleChoiceCommit"` JudgeCommit []JudgeCommit `json:"judgeCommit"` BlankCommit []BlankCommit `json:"blankCommit"` ProgramCommit []CommitProgram `json:"programCommit"` }
type CommitProgram ¶
type CommitProgram struct { PlanId uint `json:"planId" form:"planId"` MergeId uint `json:"mergeId"` QuestionId uint `json:"questionId" form:"questionId"` StudentId uint `json:"studentId" form:"studentId"` Code string `json:"code"` LanguageId questionBankEnum.LanguageType `json:"languageId"` }
type DraftPaperQuestionMerge ¶
type DraftPaperQuestionMerge struct { global.GVA_MODEL DraftPaperId *uint `json:"draftPaperId" form:"draftPaperId" gorm:"column:draft_paper_id"` QuestionId *uint `json:"questionId" form:"paperId" gorm:"column:question_id;comment:题目id;size:32;"` Score *int `json:"score" form:"score" gorm:"column:score;comment:所占分值;size:8;"` QuestionType *questionType.QuestionType `json:"questionType" form:"paperId" gorm:"column:question_type;comment:题目类型;size:8;"` ProblemType *int `json:"problemType" form:"problemType" gorm:"column:problem_type;comment:难度;size:8;"` }
func (DraftPaperQuestionMerge) TableName ¶
func (DraftPaperQuestionMerge) TableName() string
type ExamPaper ¶
type ExamPaper struct { global.GVA_MODEL PlanId *int `json:"planId" form:"planId" gorm:"column:plan_id;comment:考试计划id;size:32;"` Name string `json:"name" form:"name" gorm:"column:name;comment:试卷名称;size:64;"` TemplateId *int `json:"templateId" form:"templateId" gorm:"column:template_id;comment:试卷模板Id;size:32;"` TermId uint `json:"termId" from:"termId"` LessonId uint `json:"lessonId" form:"lessonId"` UserId *uint `json:"user_id" form:"userId" gorm:"column:user_id;comment:创建id;size:32;"` }
ExamPaper 结构体
type ExamPaper1 ¶
type ExamPaper1 struct { global.GVA_MODEL PlanId *int `json:"planId" form:"planId" gorm:"column:plan_id;comment:考试计划id;size:32;"` Name string `json:"name" form:"name" gorm:"column:name;comment:试卷名称;size:64;"` TemplateId *int `json:"templateId" form:"templateId" gorm:"column:template_id;comment:试卷模板Id;size:32;"` TermId uint `json:"termId" from:"termId"` LessonId uint `json:"lessonId" form:"lessonId"` UserId *uint `json:"user_id" form:"userId" gorm:"column:user_id;comment:创建id;size:32;"` PaperItem []PaperQuestionMerge `json:"paperItem" gorm:"foreignKey:paper_id"` }
func (ExamPaper1) TableName ¶
func (ExamPaper1) TableName() string
type ExamPaperDraft ¶
type ExamPaperDraft struct { global.GVA_MODEL Name string `json:"name" form:"name" gorm:"column:name;comment:试卷名称;size:64;"` LessonId uint `json:"lessonId" form:"lessonId"` UserId *uint `json:"userId" form:"userId" gorm:"column:user_id;comment:创建id;size:32;"` PaperItem []DraftPaperQuestionMerge `json:"paperItem" gorm:"foreignKey:DraftPaperId"` }
func (ExamPaperDraft) TableName ¶
func (ExamPaperDraft) TableName() string
type ExamPaperDraft1 ¶
type ExamPaperDraft1 struct { global.GVA_MODEL Name string `json:"name" form:"name" gorm:"column:name;comment:试卷名称;size:64;"` LessonId uint `json:"lessonId" form:"lessonId"` UserId *uint `json:"userId" form:"userId" gorm:"column:user_id;comment:创建id;size:32;"` }
func (ExamPaperDraft1) TableName ¶
func (ExamPaperDraft1) TableName() string
type ExamRecord ¶
type ExamRecord struct { global.GVA_MODEL StudentId uint `json:"studentId"` PlanId uint `json:"planId" form:"planId"` EnterTime time.Time EndTime time.Time Ip string `json:"ip"` //学生ip }
func (ExamRecord) TableName ¶
func (ExamRecord) TableName() string
type ExamRecordMerge ¶
type ExamRecordMerge struct { global.GVA_MODEL PaperId *uint `json:"paperId" form:"paperId" gorm:"column:paper_id;comment:试卷id;size:32;"` QuestionId *uint `json:"questionId" form:"questionId" gorm:"column:question_id;comment:题目id;size:32;"` StudentId *uint `json:"studentId" form:"studentId" gorm:"column:student_id;comment:学生id;size:32;"` Answer string `json:"answer" form:"answer" gorm:"column:answer;comment:该生题目答案;size:16000;"` PlanId *uint `json:"planId" form:"planId" gorm:"column:plan_id;comment:教学计划id;size:32"` Score *float64 `json:"score" form:"score" gorm:"column:score;comment:本题分值;size:8;"` QuestionType *questionType.QuestionType `json:"questionType" form:"paperId" gorm:"column:question_type;comment:题目类型;size:8;"` ProblemType *int `json:"problemType" form:"problemType" gorm:"column:problem_type;comment:难度;size:8;"` GotScore *float64 `json:"gotScore" form:"gotScore" gorm:"column:got_score;comment:该生得分"` RecordId *uint `json:"recordId" gorm:"record_id"` }
func (ExamRecordMerge) TableName ¶
func (ExamRecordMerge) TableName() string
type ExamScore ¶
type ExamScore struct { global.GVA_MODEL StudentId *uint `json:"studentId" form:"studentId"` PlanId *uint `json:"planId" form:"planId" gorm:"column:plan_id;comment:考试计划id;size:32;"` Name string `json:"name" form:"name" gorm:"column:name;comment:考试计划名称;size:64;"` TermId *uint `json:"termId" from:"termId"` TermName string `json:"termName" form:"termName"` LessonId *int `json:"lessonId" form:"lessonId" gorm:"column:lesson_id;comment:课程Id;size:32;"` CourseName string `json:"courseName" form:"courseName"` Score *float64 `json:"score" form:"score" gorm:"column:score;comment:本题分值;size:8;"` ExamType *int `json:"examType" form:"examType"` StartTime *time.Time `json:"startTime" form:"startTime"` Weight *int `json:"weight" form:"weight" gorm:"column:weight;comment:权重;size:8;"` IsReport bool `json:"isReport" form:"isReport" gorm:"is_report;comment:是否上报"` }
type ExamStudentPaper ¶
type ExamStudentPaper struct { global.GVA_MODEL PaperId *uint `json:"paperId" form:"paperId" gorm:"column:paper_id;comment:试卷id;size:32;"` QuestionId *uint `json:"questionId" form:"questionId" gorm:"column:question_id;comment:题目id;size:32;"` StudentId *uint `json:"studentId" form:"studentId" gorm:"column:student_id;comment:学生id;size:32;"` Answer string `json:"answer" form:"answer" gorm:"column:answer;comment:该生题目答案;size:16000;"` PlanId *uint `json:"planId" form:"planId" gorm:"column:plan_id;comment:教学计划id;size:32"` Score *float64 `json:"score" form:"score" gorm:"column:score;comment:本题分值;size:8;"` QuestionType *questionType.QuestionType `json:"questionType" form:"paperId" gorm:"column:question_type;comment:题目类型;size:8;"` ProblemType *int `json:"problemType" form:"problemType" gorm:"column:problem_type;comment:难度;size:8;"` GotScore *float64 `json:"gotScore" form:"gotScore" gorm:"column:got_score;comment:该生得分l;size:4"` }
ExamStudentPaper 结构体
func (ExamStudentPaper) TableName ¶
func (ExamStudentPaper) TableName() string
TableName ExamStudentPaper 表名
type JudgeCommit ¶
type JudgeCommit1 ¶
type MultipleChoiceCommit ¶
type MultipleChoiceCommit1 ¶
type PaperQuestionMerge ¶
type PaperQuestionMerge struct { global.GVA_MODEL PaperId *uint `json:"paperId" form:"paperId" gorm:"column:paper_id;comment:试卷id;size:32;"` QuestionId *uint `json:"questionId" form:"paperId" gorm:"column:question_id;comment:题目id;size:32;"` Score *int `json:"score" form:"score" gorm:"column:score;comment:所占分值;size:8;"` QuestionType *questionType.QuestionType `json:"questionType" form:"paperId" gorm:"column:question_type;comment:题目类型;size:8;"` ProblemType *int `json:"problemType" form:"problemType" gorm:"column:problem_type;comment:难度;size:8;"` }
PaperQuestionMerge 结构体
func (PaperQuestionMerge) TableName ¶
func (PaperQuestionMerge) TableName() string
TableName PaperQuestionMerge 表名
type PaperQuestionMerge1 ¶
type PaperQuestionMerge1 struct { PaperId *uint `json:"paperId" form:"paperId" gorm:"column:paper_id;comment:试卷id;size:32;"` QuestionId *uint `json:"questionId" form:"paperId" gorm:"column:question_id;comment:题目id;size:32;"` Score *int `json:"score" form:"score" gorm:"column:score;comment:所占分值;size:8;"` QuestionType *questionType.QuestionType `json:"questionType" form:"paperId" gorm:"column:question_type;comment:题目类型;size:8;"` ProblemType *int `json:"problemType" form:"problemType" gorm:"column:problem_type;comment:难度;size:8;"` }
type PaperTemplate ¶
type PaperTemplate struct { global.GVA_MODEL LessonId *int `json:"lesson_id" form:"lessonId" gorm:"column:lesson_id;comment:课程id;size:32;"` UserId *int `json:"user_id" form:"userId" gorm:"column:user_id;comment:创建id;size:32;"` Name string `json:"name" form:"name" gorm:"column:name;comment:数据模板名称;size:64;"` Memo string `json:"memo" form:"memo" gorm:"column:memo;comment:备注;size:255;"` PaperTemplateItems []PaperTemplateItem `json:"paper_template_items" gorm:"foreignKey:TemplateId"` }
PaperTemplate 结构体
type PaperTemplateId ¶
type PaperTemplateId struct {
ID uint `json:"ID" form:"id"` // 主键ID
}
type PaperTemplateItem ¶
type PaperTemplateItem struct { global.GVA_MODEL ChapterId *int `json:"chapterId" form:"chapterId" gorm:"column:chapter_id;comment:章节id;size:32;"` ProblemType *int `json:"problemType" form:"problemType" gorm:"column:problem_type;comment:难度;size:8;"` QuestionType *questionType.QuestionType `json:"questionType" form:"paperId" gorm:"column:question_type;comment:题目类型;size:8;"` Num *int `json:"num" form:"num" gorm:"column:num;comment:数量;size:32;"` Score *int `json:"score" form:"score" gorm:"column:score;comment:分数;size:32;"` TemplateId *int `json:"templateId" form:"templateId" gorm:"column:template_id;comment:试卷模板id;size:32;"` }
PaperTemplateItem 结构体
func (PaperTemplateItem) TableName ¶
func (PaperTemplateItem) TableName() string
TableName PaperTemplateItem 表名
type ProgramAnswer ¶
func (*ProgramAnswer) Decode ¶
func (p *ProgramAnswer) Decode(s string)
func (*ProgramAnswer) Encode ¶
func (p *ProgramAnswer) Encode() string
type ProgramCommit1 ¶
type ReExecExamPaper ¶
type ReExecExamPaper struct { StudentId uint `json:"studentId" form:"studentId"` PlanId uint `json:"planId" form:"planId"` PaperId uint `json:"paperId" form:"paperId"` MultipleChoiceCommit []MultipleChoiceCommit1 `json:"multipleChoiceCommit"` JudgeCommit []JudgeCommit1 `json:"judgeCommit"` BlankCommit []BlankCommit1 `json:"blankCommit"` ProgramCommit []ProgramCommit1 `json:"programCommit"` }
type ReviewScore ¶
type ReviewScore1 ¶
type StudentPaperStatus ¶
type StudentPaperStatus struct { global.GVA_MODEL StudentId uint `json:"studentId"` PlanId uint `json:"planId" form:"planId"` EnterTime time.Time EndTime time.Time IsCommit bool `json:"isCommit"` //是否提交 Ip string `json:"ip"` //学生ip }
func (StudentPaperStatus) TableName ¶
func (StudentPaperStatus) TableName() string
TableName ExamStudentPaper 表名
type TargetExamingScore ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.