Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCourseRepo ¶
func NewCourseRepo(m mongodbClient) repository.Course
func NewPlayerRepo ¶
func NewPlayerRepo(m mongodbClient) repository.Player
func NewRecordRepo ¶
func NewRecordRepo(m mongodbClient) repository.Record
func NewWorkRepo ¶
func NewWorkRepo(m mongodbClient) repository.Work
Types ¶
type DCourse ¶
type DCourse struct {
Id string `bson:"id" json:"id"`
Name string `bson:"name" json:"name"`
Teacher string `bson:"teacher" json:"teacher"`
Desc string `bson:"desc" json:"desc"`
Host string `bson:"host" json:"host"`
Type string `bson:"type" json:"type"`
PassScore float32 `bson:"pass_score" json:"pass_score"`
Status string `bson:"status" json:"status"`
Duration string `bson:"duration" json:"duration"`
Hours int `bson:"hours" json:"hours"`
Doc string `bson:"doc" json:"doc"`
Forum string `bson:"forum" json:"forum"`
Poster string `bson:"poster" json:"poster"`
Cert string `bson:"cert" json:"cert"`
Assignments []dAssignments `bson:"assignments" json:"-"`
Sections []dSection `bson:"sections" json:"-"`
}
Course
type DCoursePlayer ¶
type DCoursePlayer struct {
Id string `bson:"id" json:"id"`
CourseId string `bson:"course_id" json:"course_id"`
Name string `bson:"name" json:"name"`
CreatedAt int64 `bson:"created_at" json:"created_at"`
Repo string `bson:"repo" json:"repo"`
Version int `bson:"version" json:"-"`
}
Course Player
type DCourseRecord ¶
type DCourseRecord struct {
CourseId string `bson:"course_id" json:"course_id"`
Account string `bson:"account" json:"account"`
SectionId string `bson:"section_id" json:"section_id"`
LessonId string `bson:"lesson_id" json:"lesson_id"`
PointId string `bson:"point_id" json:"point_id"`
PlayCount int `bson:"play_count" json:"play_count"`
FinishCount int `bson:"finish_count" json:"finish_count"`
Version int `bson:"version" json:"-"`
}
type DCourseWork ¶
type DCourseWork struct {
Id string `bson:"id" json:"id"`
CourseId string `bson:"course_id" json:"course_id"`
Account string `bson:"account" json:"account"`
AsgId string `bson:"asg_id" json:"asg_id"`
Score float32 `bson:"score" json:"score"`
Status string `bson:"status" json:"status"`
Version int `bson:"version" json:"-"`
}
Click to show internal directories.
Click to hide internal directories.