attendance

package
v0.0.0-...-449f33c Latest Latest
Warning

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

Go to latest
Published: Jun 4, 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 Handler

type Handler struct {
	Service *Service
}

func (Handler) Attendance

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

Attendance @Description Get user attendance @Accept json @Produce json @Security Bearer @Success 200 {object} common.Attendance "Successfully retrieved attendance" @Success 204 {object} common.Attendance "No content" @Failure 400 {string} string "Error getting attendance." @Router /attendance [get]

func (Handler) Start

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

type Provider

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

type Service

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

func New

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

func (Service) Attendance

func (s Service) Attendance(usr common.User) ([]common.Attendance, error)

Jump to

Keyboard shortcuts

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