basicdata

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

Documentation

Overview

自动生成模板Chapter

自动生成模板Lesson

自动生成模板Resource

自动生成模板Class

自动生成模板College

自动生成模板LearnResourcesChapterMerge

自动生成模板Professional

自动生成模板Student

自动生成模板TeachClass

自动生成模板Term

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chapter

type Chapter struct {
	global.GVA_MODEL
	Name          string                  `json:"name" form:"name" gorm:"column:name;comment:章节名称;size:32;"`
	LessonId      *int                    `json:"lessonId" form:"lessonId" gorm:"column:lesson_id;comment:所属课程id;size:32;"`
	Knowledges    []*lessondata.Knowledge `json:"knowledges" gorm:"foreignKey:ChapterId"`
	QuestionCount *int64                  `json:"questionCount,omitempty"   gorm:"-"`
	DoneCount     *int64                  `json:"doneCount,omitempty" gorm:"-"`
}

Chapter 结构体

func (Chapter) TableName

func (Chapter) TableName() string

TableName Chapter 表名

type Class

type Class struct {
	global.GVA_MODEL
	Name           string `json:"name" form:"name" gorm:"column:name;comment:班级名称;size:255;"`
	ProfessionalId *int   `json:"professionalId" form:"professionalId" gorm:"column:professional_id;comment:专业id;"`
}

Class 结构体

func (Class) TableName

func (Class) TableName() string

TableName Class 表名

type College

type College struct {
	global.GVA_MODEL
	Name string `json:"name" form:"name" gorm:"column:name;comment:学院名称;size:255;"`
}

College 结构体

func (College) TableName

func (College) TableName() string

TableName College 表名

type LearnResourcesChapterMerge

type LearnResourcesChapterMerge struct {
	global.GVA_MODEL
	LearnResourcesId *int `json:"learnResourcesId" form:"learn_resources_id" gorm:"column:learn_resources_id;comment:课程资源id;"`
	ChapterId        *int `json:"chapterId" form:"chapter_id" gorm:"column:chapter_id;comment:章节id;"`
}

LearnResourcesChapterMerge 结构体

func (LearnResourcesChapterMerge) TableName

func (LearnResourcesChapterMerge) TableName() string

TableName LearnResourcesChapterMerge 表名

type Lesson

type Lesson struct {
	global.GVA_MODEL
	Name             string     `json:"name" form:"name" gorm:"column:name;comment:课程的名称;size:32;"`
	OpenQuestionBank *bool      `json:"openQuestionBank" gorm:"column:open_questionBank"`
	Chapters         []*Chapter `json:"chapters"`
}

Lesson 结构体

func (Lesson) TableName

func (Lesson) TableName() string

TableName Lesson 表名

type Professional

type Professional struct {
	global.GVA_MODEL
	Name      string `json:"name" form:"name" gorm:"column:name;comment:专业名称;size:255;"`
	CollegeId *int   `json:"collegeId" form:"collegeId" gorm:"column:college_id;comment:学院id;"`
}

Professional 结构体

func (Professional) TableName

func (Professional) TableName() string

TableName Professional 表名

type Resource

type Resource struct {
	global.GVA_MODEL
	Name     string `json:"name" form:"name" gorm:"column:name;comment:课程资源名称;size:32;"`
	Type     *int   `json:"type" form:"type" gorm:"column:type;comment:课程资源类型;size:32;"`
	DetailId string `json:"detailId" form:"detailId" gorm:"column:detail_id;comment:课程资源详情id;size:32;"`
}

Resource 结构体

func (Resource) TableName

func (Resource) TableName() string

TableName Resource 表名

type Student

type Student struct {
	global.GVA_MODEL
	Name             string       `json:"name" form:"name" gorm:"column:name;comment:姓名;"`
	Sex              string       `json:"sex" form:"sex" gorm:"column:sex;comment:性别;"`
	IdCard           string       `json:"id_card" form:"id_card" gorm:"column:id_card;comment:身份证号;"`
	Password         string       `json:"password" form:"password" gorm:"column:password;comment:密码;"`
	CollegeName      string       `json:"collegeName" form:"collegeName" gorm:"column:college_name;comment:学院名称;"`
	ProfessionalName string       `json:"professionalName" form:"professionalName" gorm:"column:professional_name;comment:专业名称;"`
	ClassId          uint         `json:"classId" form:"classId" gorm:"column:class_id;comment:班级id;"`
	TeachClass       []TeachClass `gorm:"many2many:bas_student_teachClass;"`
}

Student 结构体

func (Student) TableName

func (Student) TableName() string

TableName Student 表名

type StudentAndTeachClass

type StudentAndTeachClass struct {
	StudentId    uint `json:"studentId" gorm:"column:student_id;comment:学生id"`
	TeachClassId uint `json:"teachClassId" gorm:"column:teach_class_id; comment:教学班id"`
}

教学班与学生关联表

func (StudentAndTeachClass) TableName

func (StudentAndTeachClass) TableName() string

TableName Student 表名

type StudentAndTeachClassAndTerm

type StudentAndTeachClassAndTerm struct {
	StudentId    uint `json:"studentId" gorm:"column:student_id;comment:学生id"`
	TeachClassId uint `json:"teachClassId" gorm:"column:teach_class_id; comment:教学班id"`
	TermId       uint `json:"termId" gorm:"termId:; comment:学期id"`
}

type TeachClass

type TeachClass struct {
	global.GVA_MODEL
	CourseId                 *int      `json:"courseId" form:"courseId" gorm:"column:course_id;comment:课程id;"`
	TermId                   *int      `json:"termId" form:"termId" gorm:"column:term_id;comment:学期id;"`
	Name                     string    `json:"name" form:"name" gorm:"column:name;comment:教学班名称;"`
	TeacherId                *int      `json:"teacherId" form:"teacherId" gorm:"column:teacher_id;comment:后台user;"`
	AttendanceProportion     *int      `json:"attendanceProportion" form:"attendanceProportion" gorm:"column:attendance_proportion;comment:考勤得分占比;"`
	LearnResourcesProportion *int      `` /* 139-byte string literal not displayed */
	FinalExamProportion      *int      `json:"finalExamProportion" form:"finalExamProportion" gorm:"column:final_exam_proportion;comment:期末考得分占比;"`
	ProcedureExamProportion  *int      `` /* 138-byte string literal not displayed */
	HomeworkProportion       *int      `json:"homeworkProportion" form:"homeworkProportion" gorm:"column:homework_proportion;comment:作业得分占比;"`
	Student                  []Student `gorm:"many2many:bas_student_teachClass;"`
}

TeachClass 结构体

func (TeachClass) TableName

func (TeachClass) TableName() string

TableName TeachClass 表名

type Term

type Term struct {
	global.GVA_MODEL
	Name      string    `json:"name" form:"name" gorm:"column:name;comment:学期名称;size:255;"`
	StartTime time.Time `json:"startTime" form:"startTime" gorm:"column:start_time;comment:开始时间;"`
	EndTime   time.Time `json:"endTime" form:"endTime" gorm:"column:end_time;comment:结束时间;"`
}

Term 结构体

func (Term) TableName

func (Term) TableName() string

TableName Term 表名

type TermReq

type TermReq struct {
	global.GVA_MODEL
	Name      string `json:"name" form:"name" gorm:"column:name;comment:学期名称;size:255;"`
	StartTime string `json:"startTime" form:"startTime" gorm:"column:start_time;comment:开始时间;"`
	EndTime   string `json:"endTime" form:"endTime" gorm:"column:end_time;comment:结束时间;"`
}

Directories

Path Synopsis
*

Jump to

Keyboard shortcuts

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