Documentation ¶
Index ¶
- type Service
- func (s *Service) AddAccount(account *models.Account) (int, error)
- func (s *Service) AddClass(class *models.Class) (int, error)
- func (s *Service) AddOrRemoveStudent(id int, body map[string]interface{}) (int, error)
- func (s *Service) AddStudent(student *models.Student) (int, error)
- func (s *Service) AddSubject(subject *models.Subject) (int, error)
- func (s *Service) AddTeacher(teacher *models.Teacher) (int, error)
- func (s *Service) AssignClass(id int, body map[string]int) (int, error)
- func (s *Service) AssignSubjectToStudent(id int, body map[string]interface{}) (int, error)
- func (s *Service) AssignSubjectToTeacher(id int, body map[string]int) (int, error)
- func (s *Service) DeleteAccount(id int) (string, error)
- func (s *Service) DeleteClass(id int) (string, error)
- func (s *Service) DeleteStudent(id int) (string, error)
- func (s *Service) DeleteSubject(id int) (string, error)
- func (s *Service) DeleteTeacher(id int) (string, error)
- func (s *Service) GetAccountByID(id int) (*models.Account, error)
- func (s *Service) GetAccounts() ([]*models.Account, error)
- func (s *Service) GetClassByID(id int) (*models.Class, error)
- func (s *Service) GetClassOfTeacher(id int) (*models.Class, error)
- func (s *Service) GetClasses() ([]*models.Class, error)
- func (s *Service) GetClassesOfStudent(id int) ([]*models.Class, error)
- func (s *Service) GetDefaultedStudentAccounts() ([]*models.Account, error)
- func (s *Service) GetStudentAccounts() ([]*models.Account, error)
- func (s *Service) GetStudentByID(id int) (*models.Student, error)
- func (s *Service) GetStudents() ([]*models.Student, error)
- func (s *Service) GetStudentsOfClass(id int) ([]*models.Student, error)
- func (s *Service) GetStudentsOfSubject(id int) ([]*models.Student, error)
- func (s *Service) GetStudentsOfTeacher(id int) ([]*models.Student, error)
- func (s *Service) GetSubjectByID(id int) (*models.Subject, error)
- func (s *Service) GetSubjects() ([]*models.Subject, error)
- func (s *Service) GetSubjectsOfClass(id int) ([]*models.Subject, error)
- func (s *Service) GetSubjectsOfStudent(id int) ([]*models.Subject, error)
- func (s *Service) GetTeacherAccounts() ([]*models.Account, error)
- func (s *Service) GetTeacherByID(id int) (*models.Teacher, error)
- func (s *Service) GetTeacherOfSubject(id int) (*models.Teacher, error)
- func (s *Service) GetTeachers() ([]*models.Teacher, error)
- func (s *Service) GetTeachersOfClass(id int) ([]*models.Teacher, error)
- func (s *Service) UpdateAccount(account *models.Account) (int, error)
- func (s *Service) UpdateClassName(id int, body map[string]string) (int, error)
- func (s *Service) UpdateGPA(id int, body map[string]float64) (int, error)
- func (s *Service) UpdateStudentName(id int, body map[string]string) (int, error)
- func (s *Service) UpdateSubjectName(id int, body map[string]string) (int, error)
- func (s *Service) UpdateTeacherName(id int, body map[string]string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) AddOrRemoveStudent ¶
func (*Service) AssignClass ¶
func (*Service) AssignSubjectToStudent ¶
func (*Service) AssignSubjectToTeacher ¶
func (*Service) GetClassOfTeacher ¶
func (*Service) GetClassesOfStudent ¶
func (*Service) GetDefaultedStudentAccounts ¶
func (*Service) GetStudentAccounts ¶
func (*Service) GetStudentsOfClass ¶
func (*Service) GetStudentsOfSubject ¶
func (*Service) GetStudentsOfTeacher ¶
func (*Service) GetSubjectsOfClass ¶
func (*Service) GetSubjectsOfStudent ¶
func (*Service) GetTeacherAccounts ¶
func (*Service) GetTeacherOfSubject ¶
func (*Service) GetTeachersOfClass ¶
func (*Service) UpdateAccount ¶
func (*Service) UpdateClassName ¶
func (*Service) UpdateStudentName ¶
func (*Service) UpdateSubjectName ¶
Click to show internal directories.
Click to hide internal directories.