Documentation ¶
Overview ¶
自动生成模板ArticleResources
自动生成模板ResourcePractice
自动生成模板ResourcesTest
自动生成模板VideoResources
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleResources ¶
type ArticleResources struct { global.GVA_MODEL Data string `json:"data" form:"data" gorm:"column:data;comment:博客文章数据;size:999;"` Title string `json:"title" form:"title" gorm:"column:title;comment:文章的标题;size:32;"` Author string `json:"author" form:"author" gorm:"column:author;comment:作者;size:255;"` IsReference *int `json:"isReference" form:"isReference" gorm:"column:is_reference;comment:是否为转载文章;size:8;"` ReferenceUrl string `json:"referenceUrl" form:"referenceUrl" gorm:"column:reference_url;comment:转载地址;size:255;"` }
ArticleResources 结构体
func (ArticleResources) TableName ¶
func (ArticleResources) TableName() string
TableName ArticleResources 表名
type Knowledge ¶
type Knowledge struct { ID uint `json:"id" form:"id"` Name string `json:"name" form:"name"` Description string `json:"description" from:"description"` ChapterId uint `json:"chapterId" form:"chapterId"` LessonId uint `json:"lessonId" form:"lessonId"` QuestionCount *int64 `json:"questionCount,omitempty"` DoneCount *int64 `json:"doneCount,omitempty"` }
type ResourcePractice ¶
type ResourcePractice struct { global.GVA_MODEL QuestionId *int `json:"questionId" form:"questionId" gorm:"column:question_id;comment:问题Id;size:64;"` Type *int `json:"type" form:"type" gorm:"column:type;comment:题目类型;size:8;"` Orders *int `json:"orders" form:"orders" gorm:"column:orders;comment:问题排序;size:32;"` ResourcesId *int `json:"resourcesId" form:"resourcesId" gorm:"column:resources_id;comment:关联资源Id;size:32;"` }
ResourcePractice 结构体
func (ResourcePractice) TableName ¶
func (ResourcePractice) TableName() string
TableName ResourcePractice 表名
type ResourcesTest ¶
type ResourcesTest struct { global.GVA_MODEL ResourcesId *int `json:"resourcesId" form:"resourcesId" gorm:"column:resources_id;comment:关联资源Id;size:32;"` QuestionId *int `json:"questionId" form:"questionId" gorm:"column:question_id;comment:问题Id;size:32;"` Type *int `json:"type" form:"type" gorm:"column:type;comment:题目类型;size:8;"` Weight *float64 `json:"weight" form:"weight" gorm:"column:weight;comment:分值比重;size:32;"` Orders *int `json:"orders" form:"orders" gorm:"column:orders;comment:问题排序;size:8;"` }
ResourcesTest 结构体
type VideoResources ¶
type VideoResources struct { global.GVA_MODEL Url string `json:"url" form:"url" gorm:"column:url;comment:视频资源路径;size:255;"` }
VideoResources 结构体
func (VideoResources) TableName ¶
func (VideoResources) TableName() string
TableName VideoResources 表名
Source Files ¶
Click to show internal directories.
Click to hide internal directories.