user

package
v0.0.0-...-723eb5a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c echo.Context) error

Create crea un nuevo usuario

func Delete

func Delete(c echo.Context) error

Delete elimina un usuario por su id

func Get

func Get(c echo.Context) error

Get trae un solo usuario por su ID

func GetAll

func GetAll(c echo.Context) error

GetAll Obtiene todos los datos

func Update

func Update(c echo.Context) error

Update actualiza los campos

Types

type User

type User struct {
	gorm.Model
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Age       int    `json:"age"`
}

User es la estructura para el usuario

Jump to

Keyboard shortcuts

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