Documentation ¶
Index ¶
- type Course
- func (c *Course) Create(i *tracer.Infos, course *domain.Course) (int, error)
- func (c *Course) Delete(i *tracer.Infos, id int, email string) error
- func (c *Course) Get(i *tracer.Infos, id int, email string) (*domain.Course, error)
- func (c *Course) GetCourseById(i *tracer.Infos, id string) (map[string]interface{}, error)
- func (c *Course) GetCourseFromUser(i *tracer.Infos, email, id string) (map[string]interface{}, error)
- func (c *Course) GetNextPageCourse(i *tracer.Infos, name string) (map[string]interface{}, error)
- func (c *Course) GetToNotRegistered(i *tracer.Infos, courseID int) (*domain.Course, error)
- func (c *Course) GetToRegistered(i *tracer.Infos, courseID int, approved bool) (*domain.Course, error)
- func (c *Course) IsTeacher(i *tracer.Infos, email string) (bool, error)
- func (c *Course) IsTeacherById(i *tracer.Infos, id string) (bool, error)
- func (c *Course) Search(i *tracer.Infos, name string, page int) ([]domain.Course, error)
- func (c *Course) StudentCourses(i *tracer.Infos, email string) ([]map[string]interface{}, error)
- func (c *Course) StudentCoursesById(i *tracer.Infos, id string) ([]map[string]interface{}, error)
- func (c *Course) TeacherCourses(i *tracer.Infos, email string) ([]map[string]interface{}, error)
- func (c *Course) TeacherCoursesById(i *tracer.Infos, id string) ([]map[string]interface{}, error)
- func (c *Course) Update(i *tracer.Infos, course *domain.Course) error
- func (c *Course) UpdateImage(i *tracer.Infos, id string, name string) error
- func (c *Course) UpdatePhoto(i *tracer.Infos, id string, path string) error
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 (*Course) GetCourseById ¶
func (*Course) GetCourseFromUser ¶
func (*Course) GetNextPageCourse ¶
func (*Course) GetToNotRegistered ¶
func (*Course) GetToRegistered ¶
func (*Course) IsTeacherById ¶
func (*Course) StudentCourses ¶
func (*Course) StudentCoursesById ¶
func (*Course) TeacherCourses ¶
func (*Course) TeacherCoursesById ¶
func (*Course) UpdateImage ¶
Click to show internal directories.
Click to hide internal directories.