student

package
v0.0.0-...-adc3182 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Career

type Career struct {
	School     string `json:"school"`
	CareerName string `json:"career_name"`
	CareerCode string `json:"career_code"`
	Campus     string `json:"campus"`
}

type Handler

type Handler struct {
	Service *Service
}

func (Handler) Start

func (h Handler) Start(app *echo.Echo, authService *auth.Service, storage ...persistence.CacheStore)

func (Handler) StudentData

func (h Handler) StudentData(ctx echo.Context) error

StudentData @Description Get student information @Accept json @Produce json @Security Bearer @Success 200 {object} common.User "Successfully retrieved student information" @Failure 400 {string} string "Error getting student information." @Router /student [get]

type Provider

type Provider interface {
	StudentData(ctx echo.Context) error
}

type Service

type Service struct {
	Config   *config.Config
	Duoc     *duoc.Client
	Database *database.Database
	Caser    cases.Caser
}

func New

func New(cfg *config.Config, db *database.Database, duoc *duoc.Client) *Service

func (Service) StudentData

func (s Service) StudentData(usr common.User) (common.User, error)

Jump to

Keyboard shortcuts

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