teachplan

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: 4 Imported by: 0

Documentation

Overview

自动生成模板TeachAttendance

自动生成模板TeachAttendanceRecord

自动生成模板ExamPlan

自动生成模板Score

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoverRq

type CoverRq struct {
	StudentId uint `json:"studentId"`
	PlanId    uint `json:"planId"`
}

type CoverRq1

type CoverRq1 struct {
	PlanId uint `json:"planId" form:"planId"`
}

type CoverRqs

type CoverRqs struct {
	StudentIds []uint `json:"studentIds"`
	PlanId     uint   `json:"planId"`
}

type ExamPlan

type ExamPlan struct {
	global.GVA_MODEL
	Name          string     `json:"name" form:"name" gorm:"column:name;comment:考试名称;size:32;"`
	TeachClassId  *uint      `json:"teachClassId" form:"teachClassId" gorm:"column:teach_class_id;comment:教学班id;size:32;"`
	Time          *int64     `json:"time" form:"time" gorm:"column:time;comment:考试时长;"`
	StartTime     *time.Time `json:"startTime" form:"startTime" gorm:"column:start_time;comment:考试时间;"`
	EndTime       *time.Time `json:"endTime" form:"endTime" gorm:"column:end_time;comment:结束时间;"`
	LessonId      *int       `json:"lessonId" form:"lessonId" gorm:"column:lesson_id;comment:课程Id;size:32;"`
	TemplateId    *uint      `json:"templateId" form:"templateId" gorm:"column:template_id;comment:考试模板Id;size:32;"`
	State         *int       `json:"state" form:"state" gorm:"column:state;comment:状态;size:8;"`
	Audit         *int       `json:"audit" form:"audit" gorm:"column:audit;comment:是否审核;size:8;"`
	Type          int        `json:"type" form:"type" gorm:"column:type;comment:考试类型;size:8;"`
	PassScore     *float64   `json:"passScore" form:"passScore" gorm:"column:pass_score;comment:通过分数;size:8;"`
	Weight        *int       `json:"weight" form:"weight" gorm:"column:weight;comment:权重;size:8;"`
	TermId        *uint      `json:"termId" form:"termId" gorm:"column:term_id;comment:学期id"`
	IsDistributed bool       `json:"isDistributed" gorm:"is_distributed"`
	UserId        *uint      `json:"userId" form:"userId" gorm:"column:user_id;comment:创建id;size:32;"`
	PrePlanId     string     `json:"prePlanId" form:"prePlanId" gorm:"pre_plan_id"`
	IsLimitTime   bool       `json:"isLimitTime" form:"isLimitTime" gorm:"is_limit_time;comment:是否限制考试时长"`
	IsReady       bool       `json:"isReady" form:"isReady" gorm:"is_ready"`
}

ExamPlan 结构体

func (ExamPlan) TableName

func (ExamPlan) TableName() string

TableName ExamPlan 表名

type PracticeAnswer

type PracticeAnswer struct {
	ID           uint `json:"id" gorm:"primarykey" form:"id"` // 主键ID
	StudentId    uint `json:"studentId"`
	QuestionType questionType.QuestionType
	QuestionId   uint
	LessonId     uint
	Score        uint
	Answer       string
}

PracticeAnswer 练习答案表

func (PracticeAnswer) TableName

func (PracticeAnswer) TableName() string

type PracticeItem

type PracticeItem struct {
	ID           uint `json:"id" gorm:"primarykey" form:"id"` // 主键ID
	StudentId    uint `json:"studentId"`
	LessonId     uint `json:"lessonId"`
	QuestionType questionType.QuestionType
	QuestionId   uint
	Score        uint
	RecordId     uint
	CommitTime   time.Time
}

PracticeRecord 练习记录表

func (PracticeItem) TableName

func (PracticeItem) TableName() string

type PracticeRecord

type PracticeRecord struct {
	ID            uint           `json:"id" gorm:"primarykey" form:"id"` // 主键ID
	DeletedAt     gorm.DeletedAt `gorm:"index" json:"-"`                 // 删除时间
	LessonId      uint           `json:"lessonId"`
	StudentId     uint           `json:"studentId"`
	BeginIp       string         `json:"beginIp"`
	BeginTime     time.Time      `json:"beginTime"`
	QuestionCount *uint          //做题数
	IsValid       *bool          //是否有效
}

PracticeRecord 练习记录表

func (PracticeRecord) TableName

func (PracticeRecord) TableName() string

type Score

type Score struct {
	global.GVA_MODEL
	StudentId                *int     `json:"studentId" form:"studentId" gorm:"column:student_id;comment:学生id;size:32;"`
	CourseId                 *int     `json:"courseId" form:"courseId" gorm:"column:course_id;comment:课程Id;size:32;"`
	CourseName               string   `json:"courseName" form:"courseName" gorm:"column:course_name;comment:课程名称;size:16;"`
	TeachClassName           string   `json:"teachClassName" form:"teachClassName" gorm:"column:teach_class_name;comment:教学班名称;size:16;"`
	TeachClassId             *int     `json:"teachClassId" form:"teachClassId" gorm:"column:teach_class_id;comment:教学班id;size:32;"`
	AttendanceProportion     *float64 `json:"attendanceProportion" form:"attendanceProportion" gorm:"column:attendance_proportion;comment:考勤占比;size:8;"`
	AttendanceScore          *float64 `json:"attendanceScore" form:"attendanceScore" gorm:"column:attendance_score;comment:考勤得分;size:8;"`
	LearnResourcesProportion *float64 `` /* 139-byte string literal not displayed */
	LearnResourcesScore      *float64 `json:"learnResourcesScore" form:"learnResourcesScore" gorm:"column:learn_resources_score;comment:学习资源得分;size:8;"`
	ProcedureScore           *float64 `json:"procedureScore" form:"procedureScore" gorm:"column:procedure_score;comment:过程化考核得分;size:8;"`
	ProcedureProportion      *float64 `` /* 126-byte string literal not displayed */
	ExamScrore               *float64 `json:"examScore" form:"examScore" gorm:"column:exam_score;comment:期末考试成绩;size:8;"`
	ExamProporation          *float64 `json:"examProporation" form:"examProporation" gorm:"column:exam_proporation;comment:期末考试占比;size:8;"`
	//PlanId                   *uint    `json:"planId" form:"planId" gorm:"column:plan_id"`
	TermId        *int     `json:"termId" form:"TermId" gorm:"column:term_id"`
	FinalExamName string   `json:"finalExamName" gorm:"final_exam_name;comment:期末考试名字"`
	FinalExamId   *int     `json:"finalExamId" gorm:"final_exam_id"`
	TotalScore    *float64 `json:"totalScore" form:"totalScore" gorm:"column:total_score"`
}

Score 结构体

func (Score) TableName

func (Score) TableName() string

TableName Score 表名

type ScoreResponse

type ScoreResponse struct {
	global.GVA_MODEL
	StudentId           *int     `json:"studentId" form:"studentId" gorm:"column:student_id;comment:学生id;size:32;"`
	CourseName          string   `json:"courseName" form:"courseName" gorm:"column:course_name;comment:课程名称;size:16;"`
	TeachClassName      string   `json:"teachClassName" form:"teachClassName" gorm:"column:teach_class_name;comment:教学班名称;size:16;"`
	AttendanceScore     *float64 `json:"attendanceScore" form:"attendanceScore" gorm:"column:attendance_score;comment:考勤得分;size:8;"`
	LearnResourcesScore *float64 `json:"learnResourcesScore" form:"learnResourcesScore" gorm:"column:learn_resources_score;comment:学习资源得分;size:8;"`
	ProcedureScore      *float64 `json:"procedureScore" form:"procedureScore" gorm:"column:procedure_score;comment:过程化考核得分;size:8;"`
	ExamScore           *float64 `json:"examScore" form:"examScore" gorm:"column:exam_score;comment:期末考试成绩;size:8;"`
	FinalExamName       string   `json:"finalExamName" gorm:"finalExam_name"`
	TotalScore          *float64 `json:"totalScore" form:"totalScore" gorm:"column:total_score"`
}

type TeachAttendance

type TeachAttendance struct {
	global.GVA_MODEL
	TeachClassId uint `json:"teachClassId" form:"teachClassId" gorm:"column:teach_class_id;comment:教学班id;size:32;"`
}

TeachAttendance 结构体

func (TeachAttendance) TableName

func (TeachAttendance) TableName() string

TableName TeachAttendance 表名

type TeachAttendanceRecord

type TeachAttendanceRecord struct {
	global.GVA_MODEL
	StudentId uint `json:"studentId" form:"studentId" gorm:"column:student_id;comment:学生id;size:32;"`
	//Longitute    *float64 `json:"longitute" form:"longitute" gorm:"column:longitute;comment:经度;size:8;"`
	//Latitude     *float64 `json:"latitude" form:"latitude" gorm:"column:latitude;comment:维度;size:8;"`
	Ip             string     `json:"ip" form:"ip" `
	Status         uint       `json:"attendance" form:"teachId" gorm:"column:attendance;comment:考勤状态"`
	AttendanceTime *time.Time `json:"attendanceTime"`
	AttendanceId   *int       `json:"attendanceId" form:"attendanceId" gorm:"column:attendance_id;comment:考勤Id;size:32;"`
}

TeachAttendanceRecord 结构体

func (TeachAttendanceRecord) TableName

func (TeachAttendanceRecord) TableName() string

TableName TeachAttendanceRecord 表名

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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