Documentation ¶
Index ¶
- type AsgDeadLine
- type AsgDesc
- type AsgName
- type Assignment
- type City
- type Course
- type CourseAppliedEvent
- type CourseDesc
- type CourseDuration
- type CourseHost
- type CourseHours
- type CourseName
- type CoursePassScore
- type CourseProject
- type CourseStatus
- type CourseSummary
- type CourseTime
- type CourseType
- type Lesson
- type LessonDesc
- type LessonId
- type LessonName
- type LessonURL
- type Phone
- type Player
- type Point
- type PointName
- type Province
- type Record
- type Section
- type SectionId
- type SectionName
- type Student
- type StudentIdentity
- type StudentName
- type URL
- type Work
- type WorkScore
- type WorkStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsgDeadLine ¶
type AsgDeadLine interface {
AsgDeadLine() string
}
Assignment DeadLine
func NewAsgDeadLine ¶
func NewAsgDeadLine(v string) (AsgDeadLine, error)
type Assignment ¶
type Assignment struct { Id string Name AsgName Desc URL DeadLine AsgDeadLine }
Assignment
type Course ¶
type Course struct { CourseSummary Teacher URL Doc URL Forum URL PassScore CoursePassScore Cert URL Sections []Section }
func (*Course) IsPreliminary ¶
type CourseAppliedEvent ¶
type CourseAppliedEvent struct { Account types.Account CourseName CourseName }
CourseAppliedEvent
type CourseDesc ¶
type CourseDesc interface {
CourseDesc() string
}
CourseDesc
func NewCourseDesc ¶
func NewCourseDesc(v string) (CourseDesc, error)
type CourseDuration ¶
type CourseDuration interface {
CourseDuration() string
}
CourseDuration
func NewCourseDuration ¶
func NewCourseDuration(v string) (CourseDuration, error)
type CourseHost ¶
type CourseHost interface {
CourseHost() string
}
CourseHost
func NewCourseHost ¶
func NewCourseHost(v string) (CourseHost, error)
type CourseHours ¶
type CourseHours interface {
CourseHours() int
}
CourseHours
func NewCourseHours ¶
func NewCourseHours(v int) (CourseHours, error)
type CourseName ¶
type CourseName interface {
CourseName() string
}
CourseName
func NewCourseName ¶
func NewCourseName(v string) (CourseName, error)
type CoursePassScore ¶
type CoursePassScore interface {
CoursePassScore() float32
}
CoursePassScore
func NewCoursePassScore ¶
func NewCoursePassScore(v float32) (CoursePassScore, error)
type CourseProject ¶
CourseRepo
func NewCourseProject ¶
func NewCourseProject(owner types.Account, r string) CourseProject
type CourseStatus ¶
type CourseStatus interface { CourseStatus() string IsEnabled() bool IsOver() bool IsPreliminary() bool }
CourseStatus
func NewCourseStatus ¶
func NewCourseStatus(v string) (CourseStatus, error)
type CourseSummary ¶
type CourseSummary struct { Id string Name CourseName Desc CourseDesc Host CourseHost Hours CourseHours Type CourseType Status CourseStatus Duration CourseDuration Poster URL }
Course
type CourseTime ¶
type CourseTime interface {
CourseTime() int64
}
Time
func NewCourseTime ¶
func NewCourseTime(v int64) (CourseTime, error)
type CourseType ¶
type CourseType interface {
CourseType() string
}
CourseType
func NewCourseType ¶
func NewCourseType(v string) (CourseType, error)
type Lesson ¶
type Lesson struct { Id string Name LessonName Desc LessonDesc Video LessonURL Points []Point }
Lesson
type LessonDesc ¶
type LessonDesc interface {
LessonDesc() string
}
LessonDesc
func NewLessonDesc ¶
func NewLessonDesc(v string) (LessonDesc, error)
type LessonName ¶
type LessonName interface {
LessonName() string
}
LessonName
func NewLessonName ¶
func NewLessonName(v string) (LessonName, error)
type Player ¶
type Player struct { Student Id string CourseId string CreatedAt CourseTime RelatedProject string }
func (*Player) CreateToday ¶
type Record ¶
type Record struct { Cid string User types.Account SectionId SectionId LessonId LessonId PointId string PlayCount int FinishCount int }
PlayRecord
type SectionName ¶
type SectionName interface {
SectionName() string
}
SectionName
func NewSectionName ¶
func NewSectionName(v string) (SectionName, error)
type StudentIdentity ¶
type StudentIdentity interface {
StudentIdentity() string
}
StudentIdentity
func NewStudentIdentity ¶
func NewStudentIdentity(v string) (StudentIdentity, error)
type StudentName ¶
type StudentName interface {
StudentName() string
}
StudentName
func NewStudentName ¶
func NewStudentName(v string) (StudentName, error)
Click to show internal directories.
Click to hide internal directories.