programs

package
v0.0.0-...-28102eb Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(router *gin.Engine, client *mongo.Client)

Types

type CreateProgramBody

type CreateProgramBody struct {
	Sheet    SheetBody     `json:"sheet" validate:"required"`
	Workouts []WorkoutBody `json:"workouts" validate:"required"`
}

type SheetBody

type SheetBody struct {
	StudentID      string `json:"studentId" validate:"required"`
	Type           string `json:"type" validate:"required"`
	StartTimestamp string `json:"startTimestamp" validate:"required"`
	EndTimestamp   string `json:"endTimestamp" validate:"required"`
	Observation    string `json:"observation"`
}

type WorkoutBody

type WorkoutBody struct {
	ExerciseID    string `json:"exerciseId" validate:"required"`
	Type          string `json:"type" validate:"required"`
	SequenceIndex int64  `json:"sequenceIndex" validate:"required"`
	Series        string `json:"series" validate:"required"`
	Repetition    string `json:"repetition" validate:"required"`
	Duration      int64  `json:"duration"`
	Rest          int64  `json:"rest" validate:"required"`
	Load          string `json:"load" validate:"required"`
	Method        string `json:"method" validate:"required"`
}

Jump to

Keyboard shortcuts

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