models

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

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

Go to latest
Published: May 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookSlot

type BookSlot struct {
	Course *string   `json:"course" validate:"required"`
	From   time.Time `json:"from" validate:"required"`
	To     time.Time `json:"to" validate:"required"`
	Tutor  *string   `json:"tutor" validate:"required"`
}

for booking a slot, all fields are required

type ObjectPaginated_query

type ObjectPaginated_query struct {
	From_id *string `form:"from_id"`
	Size    *int    `form:"size"`
}

when querying, from_id and size are optional field default start from start default return all

type TimePaginated_query

type TimePaginated_query struct {
	From time.Time `form:"from"`
	To   time.Time `form:"to"`
}

default start from start default end at end

type TimeSlot

type TimeSlot struct {
	From time.Time `json:"from" validate:"required"`
	To   time.Time `json:"to" validate:"required"`
}

Jump to

Keyboard shortcuts

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