examManage

package
v0.0.0-...-003a2e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

自动生成模板ExamPaper

自动生成模板PaperQuestionMerge

自动生成模板PaperTemplate

自动生成模板PaperTemplateItem

自动生成模板ExamStudentPaper

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllScore

type AllScore struct {
	Score float64 `json:"score"`
}

type BlankCommit

type BlankCommit struct {
	MergeId    uint     `json:"mergeId"`
	QuestionId uint     `json:"questionId" form:"questionId"`
	Answer     []string `json:"answer" form:"answer"`
}

type BlankCommit1

type BlankCommit1 struct {
	Id         uint   `json:"id"`
	QuestionId uint   `json:"questionId" form:"questionId"`
	Answer     string `json:"answer" form:"answer"`
}

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 Detail

type Detail struct {
	TermName   string `json:"termName"`
	CourseName string `json:"courseName"`
}

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 ExamInfo

type ExamInfo struct {
	Id           int
	ExamPlanID   int
	TeachClassID int
	StudentID    int
	StudentName  string
	TeacherID    int
	Screenshot   string
	IPAddress    string
	UploadTime   time.Time
}

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 结构体

func (ExamPaper) TableName

func (ExamPaper) TableName() string

TableName 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:是否上报"`
}

func (ExamScore) TableName

func (ExamScore) TableName() string

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 JudgeCommit struct {
	MergeId    uint `json:"mergeId"`
	QuestionId uint `json:"questionId" form:"questionId"`
	Answer     bool `json:"answer" form:"answer"`
}

type JudgeCommit1

type JudgeCommit1 struct {
	Id         uint `json:"id"`
	QuestionId uint `json:"questionId" form:"questionId"`
	Answer     bool `json:"answer" form:"answer"`
}

type MultipleChoiceCommit

type MultipleChoiceCommit struct {
	MergeId    uint     `json:"mergeId"`
	QuestionId uint     `json:"questionId" form:"questionId"`
	Answer     []string `json:"answer" form:"answer"`
}

type MultipleChoiceCommit1

type MultipleChoiceCommit1 struct {
	Id         uint   `json:"id"`
	QuestionId uint   `json:"questionId" form:"questionId"`
	Answer     string `json:"answer" form:"answer"`
}

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 结构体

func (PaperTemplate) TableName

func (PaperTemplate) TableName() string

TableName 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 Product

type Product struct {
	Id   int64  `json:"id"` //字段一定要大写不然各种问题
	Name string `json:"name"`
}

type ProgramAnswer

type ProgramAnswer struct {
	Code         string `json:"code"`
	LanguageType string `json:"languageType"`
}

func (*ProgramAnswer) Decode

func (p *ProgramAnswer) Decode(s string)

func (*ProgramAnswer) Encode

func (p *ProgramAnswer) Encode() string

type ProgramCommit1

type ProgramCommit1 struct {
	Id         uint   `json:"id"`
	QuestionId uint   `json:"questionId" form:"questionId"`
	Answer     string `json:"answer" form:"answer"`
}

type QuesNum

type QuesNum struct {
	StudentId uint `json:"studentId"`
	Num       uint `json:"num"`
}

type QuesScore

type QuesScore struct {
	StudentId uint `json:"studentId"`
	Score     int  `json:"score"`
}

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 ReviewScore struct {
	UpdatedAt time.Time `json:"updatedAt"` // 更新时间
	Score     *float64  `json:"score" form:"score"`
	IsReport  bool      `json:"isReport" form:"isReport" gorm:"is_report;comment:是否上报"`
}

type ReviewScore1

type ReviewScore1 struct {
	UpdatedAt time.Time `json:"updatedAt"` // 更新时间
	Score     *float64  `json:"score" form:"score"`
	IsReport  bool      `json:"isReport" form:"isReport" gorm:"is_report;comment:是否上报"`
	Message   string    `json:"message"`
}

type ScoreList

type ScoreList struct {
	Score    int64 `json:"score" form:"score" gorm:"score"`
	GotScore int64 `json:"gotScore" form:"gotScore" gorm:"got_score"`
}

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

type TargetExamingScore struct {
	MergeId uint   `json:"mergeId" form:"mergeId"`
	Answer  string `json:"answer" form:"answer"`
	Score   int64  `json:"score" form:"score" gorm:"score"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL