models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Token string `json:"token"`
	User  User   `json:"user"`
}

type Enviado

type Enviado struct {
	TableId    string `json:"table_id"`
	Data       string `json:"data"`
	HoraInicio string `json:"hora_inicio"`
	HoraFinal  string `json:"hora_final"`
}

type Reserva

type Reserva struct {
	TableId      string `json:"table_id"`
	DiaReservado string `json:"dia_reservado"`
	HoraCoberta  string `json:"hora_coberta"`
}

func (*Reserva) Create

func (r *Reserva) Create() error

type Table

type Table struct {
	Status bool   `json:"status"`
	Name   string `json:"name"`
	Id     uint   `json:"id" gorm:"primaryKey"`
}

func (*Table) Create

func (t *Table) Create() error

type User

type User struct {
	Nome     string `json:"nome"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Id       uint   `json:"id" gorm:"primaryKey"`
}

func (*User) Create

func (s *User) Create() error

Create User in DB //

func (*User) Get

func (s *User) Get() error

type UserClaims

type UserClaims struct {
	User User `json:"user"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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