repository

package
v0.0.0-...-d7fecdb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Course

type Course interface {
	FindCourse(cid string) (domain.Course, error)
	FindCourses(*CourseListOption) ([]domain.CourseSummary, error)
	FindAssignments(cid string) ([]domain.Assignment, error)
	FindAssignment(cid string, asgId string) (domain.Assignment, error)
}

type CourseListOption

type CourseListOption struct {
	CourseIds []string
	Status    domain.CourseStatus
	Type      domain.CourseType
}

type CourseSummary

type CourseSummary struct {
	domain.CourseSummary
	CompetitorCount int
}

type Player

type Player interface {
	FindPlayer(cid string, account types.Account) (PlayerVersion, error)
	SavePlayer(*domain.Player) error
	PlayerCount(cid string) (int, error)
	SaveRepo(courseId string, a *domain.CourseProject, version int) error
	FindCoursesUserApplied(types.Account) ([]string, error)
}

type PlayerVersion

type PlayerVersion struct {
	domain.Player
	Version int
}

type Record

type Record interface {
	AddPlayRecord(*domain.Record) error
	FindPlayRecord(*domain.Record) (RecordVersion, error)
	UpdatePlayRecord(*domain.Record, int) error
}

type RecordVersion

type RecordVersion struct {
	Record  domain.Record
	Version int
}

type Work

type Work interface {
	GetWork(cid string, account types.Account, asgId string, status domain.WorkStatus) (domain.Work, error)
}

type WorkVersion

type WorkVersion struct {
	Work    domain.Work
	Version int
}

Jump to

Keyboard shortcuts

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