handlers

package
v0.0.0-...-4c1f3c0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenSchoolImpl

type OpenSchoolImpl struct {
	StudentRepository students.StudentRepository
	ClassRepository   classes.ClassRepository
	TeacherRepository teachers.TeacherRepository
	GradeRepository   grades.GradeRepository
	Logger            *zap.Logger
}

OpenSchoolImpl implements the api.ServerInterface to implement the contract defined by the OpenAPI specification (and the generated interfaces from it).

func (*OpenSchoolImpl) AuthCurrentUser

func (i *OpenSchoolImpl) AuthCurrentUser(c *gin.Context)

func (*OpenSchoolImpl) AuthLogin

func (i *OpenSchoolImpl) AuthLogin(c *gin.Context)

func (*OpenSchoolImpl) ClassesCreate

func (i *OpenSchoolImpl) ClassesCreate(ctx *gin.Context)

ClassesCreate implements the classesCreate contract from the OpenAPI spec.

func (*OpenSchoolImpl) ClassesDelete

func (i *OpenSchoolImpl) ClassesDelete(ctx *gin.Context, id api.Cuid)

func (*OpenSchoolImpl) ClassesGet

func (i *OpenSchoolImpl) ClassesGet(ctx *gin.Context, id api.Cuid)

ClassesGet implements the classesGet contract from the OpenAPI spec.

func (*OpenSchoolImpl) ClassesList

func (i *OpenSchoolImpl) ClassesList(ctx *gin.Context, params api.ClassesListParams)

ClassesList implements the classesList operation from the OpenAPI specification in [../api/spec.yaml].

func (*OpenSchoolImpl) ClassesUpdate

func (i *OpenSchoolImpl) ClassesUpdate(ctx *gin.Context, id api.Cuid)

func (*OpenSchoolImpl) GradesCreate

func (i *OpenSchoolImpl) GradesCreate(ctx *gin.Context, classId api.Cuid)

GradesCreate implements the gradesCreate contract from the OpenAPI spec.

func (*OpenSchoolImpl) GradesDelete

func (i *OpenSchoolImpl) GradesDelete(ctx *gin.Context, id api.Cuid, grade api.Cuid)

func (*OpenSchoolImpl) GradesGet

func (i *OpenSchoolImpl) GradesGet(ctx *gin.Context, id api.Cuid, grade api.Cuid)

GradesGet implements the gradesGet contract from the OpenAPI spec.

func (*OpenSchoolImpl) GradesList

func (i *OpenSchoolImpl) GradesList(ctx *gin.Context, id api.Cuid, params api.GradesListParams)

GradesList implements the gradesList operation from the OpenAPI specification in [../api/spec.yaml].

func (*OpenSchoolImpl) GradesUpdate

func (i *OpenSchoolImpl) GradesUpdate(ctx *gin.Context, id api.Cuid, grade api.Cuid)

func (*OpenSchoolImpl) StudentsCreate

func (i *OpenSchoolImpl) StudentsCreate(ctx *gin.Context)

StudentsCreate implements the studentsCreate contract from the OpenAPI spec.

func (*OpenSchoolImpl) StudentsDelete

func (i *OpenSchoolImpl) StudentsDelete(ctx *gin.Context, id api.Cuid)

func (*OpenSchoolImpl) StudentsGet

func (i *OpenSchoolImpl) StudentsGet(ctx *gin.Context, id api.Cuid)

StudentsGet implements the studentsGet contract from the OpenAPI spec.

func (*OpenSchoolImpl) StudentsList

func (i *OpenSchoolImpl) StudentsList(ctx *gin.Context, params api.StudentsListParams)

StudentsList implements the studentsList operation from the OpenAPI specification in [../api/spec.yaml].

func (*OpenSchoolImpl) StudentsUpdate

func (i *OpenSchoolImpl) StudentsUpdate(ctx *gin.Context, id api.Cuid)

func (*OpenSchoolImpl) TeachersCreate

func (i *OpenSchoolImpl) TeachersCreate(ctx *gin.Context)

TeachersCreate implements the teachersCreate contract from the OpenAPI spec.

func (*OpenSchoolImpl) TeachersDelete

func (i *OpenSchoolImpl) TeachersDelete(ctx *gin.Context, id api.Cuid)

TeachersDelete implements the teachersDelete contract from the OpenAPI spec.

func (*OpenSchoolImpl) TeachersGet

func (i *OpenSchoolImpl) TeachersGet(ctx *gin.Context, id api.Cuid)

TeachersGet implements the teachersGet contract from the OpenAPI spec.

func (*OpenSchoolImpl) TeachersList

func (i *OpenSchoolImpl) TeachersList(ctx *gin.Context, params api.TeachersListParams)

Teachers implements the teachersList operation from the OpenAPI specification in [../api/spec.yaml].

func (*OpenSchoolImpl) TeachersUpdate

func (i *OpenSchoolImpl) TeachersUpdate(ctx *gin.Context, id api.Cuid)

TeachersUpdate implements the teachersUpdate contract from the OpenAPI spec.

Jump to

Keyboard shortcuts

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