course

package
v0.0.0-...-19f0fab Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: MIT Imports: 8 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 struct {
	// contains filtered or unexported fields
}

func NewCourse

func NewCourse() *Course

func (*Course) Create

func (c *Course) Create(i *tracer.Infos, course *domain.Course) (int, error)

func (*Course) Delete

func (c *Course) Delete(i *tracer.Infos, id int, email string) error

func (*Course) Get

func (c *Course) Get(i *tracer.Infos, id int, email string) (*domain.Course, error)

func (*Course) GetCourseById

func (c *Course) GetCourseById(i *tracer.Infos, id string) (map[string]interface{}, error)

func (*Course) GetCourseFromUser

func (c *Course) GetCourseFromUser(i *tracer.Infos, email, id string) (map[string]interface{}, error)

func (*Course) GetNextPageCourse

func (c *Course) GetNextPageCourse(i *tracer.Infos, name string) (map[string]interface{}, error)

func (*Course) GetToNotRegistered

func (c *Course) GetToNotRegistered(i *tracer.Infos, courseID int) (*domain.Course, error)

func (*Course) GetToRegistered

func (c *Course) GetToRegistered(i *tracer.Infos, courseID int, approved bool) (*domain.Course, error)

func (*Course) IsTeacher

func (c *Course) IsTeacher(i *tracer.Infos, email string) (bool, error)

func (*Course) IsTeacherById

func (c *Course) IsTeacherById(i *tracer.Infos, id string) (bool, error)

func (*Course) Search

func (c *Course) Search(i *tracer.Infos, name string, page int) ([]domain.Course, error)

func (*Course) StudentCourses

func (c *Course) StudentCourses(i *tracer.Infos, email string) ([]map[string]interface{}, error)

func (*Course) StudentCoursesById

func (c *Course) StudentCoursesById(i *tracer.Infos, id string) ([]map[string]interface{}, error)

func (*Course) TeacherCourses

func (c *Course) TeacherCourses(i *tracer.Infos, email string) ([]map[string]interface{}, error)

func (*Course) TeacherCoursesById

func (c *Course) TeacherCoursesById(i *tracer.Infos, id string) ([]map[string]interface{}, error)

func (*Course) Update

func (c *Course) Update(i *tracer.Infos, course *domain.Course) error

func (*Course) UpdateImage

func (c *Course) UpdateImage(i *tracer.Infos, id string, name string) error

func (*Course) UpdatePhoto

func (c *Course) UpdatePhoto(i *tracer.Infos, id string, path string) error

Jump to

Keyboard shortcuts

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