Calendar

package
v0.0.0-...-d5bf7ea Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLesson

func AddLesson(Lesson Lesson) error

func AddStudent

func AddStudent(student Student) error

func AddTeacher

func AddTeacher(teacher Teacher) error

func DeleteLesson

func DeleteLesson(c echo.Context) error

func DeleteLessonByID

func DeleteLessonByID(id string) error

func DeleteStudent

func DeleteStudent(c echo.Context) error

func DeleteStudentByID

func DeleteStudentByID(id string) error

func DeleteTeacher

func DeleteTeacher(c echo.Context) error

func DeleteTeacherByIDFromDB

func DeleteTeacherByIDFromDB(id string) error

func GetAllLesson

func GetAllLesson(c echo.Context) error

func GetAllStudent

func GetAllStudent(c echo.Context) error

func GetAllTeachers

func GetAllTeachers(c echo.Context) error

func GetApisList

func GetApisList(c echo.Context) error

func GetLessonByID

func GetLessonByID(c echo.Context) error

func GetLessonByStudentID

func GetLessonByStudentID(c echo.Context) error

func GetLessonByTeacherID

func GetLessonByTeacherID(c echo.Context) error

func GetStudentByID

func GetStudentByID(c echo.Context) error

func GetTeacherByID

func GetTeacherByID(c echo.Context) error

func PocketbaseInit

func PocketbaseInit()

func PostLesson

func PostLesson(c echo.Context) error

func PostStudent

func PostStudent(c echo.Context) error

func PostTeacher

func PostTeacher(c echo.Context) error

func UpdateLesson

func UpdateLesson(c echo.Context) error

func UpdateLessonByID

func UpdateLessonByID(id string, newLesson Lesson) error

func UpdateStudent

func UpdateStudent(c echo.Context) error

func UpdateStudentByID

func UpdateStudentByID(id string, student Student) error

func UpdateTeacher

func UpdateTeacher(c echo.Context) error

func UpdateTeacherByIDFromDB

func UpdateTeacherByIDFromDB(id string, teacher Teacher) error

Types

type Lesson

type Lesson struct {
	Id        string    `json:"id" db:"id"`
	Subject   string    `json:"subject" db:"Subject"`
	TeacherId string    `json:"TeacherId" db:"TeacherId"`
	StudentId string    `json:"StudentId" db:"StudentId"`
	Place     string    `json:"Place" db:"Place"`
	Date      string    `json:"Date" db:"Date"`
	DataStart time.Time `json:"dataStart" db:"dataStart"`
	DataEnd   time.Time `json:"dataEnd" db:"dataEnd"`
}

func FindAllLesson

func FindAllLesson() []Lesson

func FindLessonByStudentID

func FindLessonByStudentID(id string) []Lesson

func FindLessonByTeacherID

func FindLessonByTeacherID(id string) []Lesson

type Student

type Student struct {
	Id     string `json:"id" db:"id"`
	Name   string `json:"Name" db:"Name"`
	Street string `json:"Street" db:"Street"`
}

func FindAllStudents

func FindAllStudents() []Student

type Teacher

type Teacher struct {
	Id     string `json:"id" db:"id"`
	Name   string `json:"Name" db:"Name"`
	Street string `json:"Street" db:"Street"` // optional
}

func FindLessonByID

func FindLessonByID(id string) Teacher

func FindStudentByID

func FindStudentByID(id string) Teacher

func GetAllTeachersFromDB

func GetAllTeachersFromDB() []Teacher

func GetTeacherByIDFromDB

func GetTeacherByIDFromDB(id string) (Teacher, error)

Jump to

Keyboard shortcuts

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