model

package
v0.0.0-...-41d80be Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Actualizar

func Actualizar(db *sql.DB, id_usuario int, id_usuario_contacto int, nombre string, apodo string, telefono string, direccion string, id_contacto int) (int64, error)

func Contactos

func Contactos(db *sql.DB, id int) contactoCollection

Obtener contactos por usuario

func Crear

func Crear(db *sql.DB, id_usuario int, id_usuario_contacto int, nombre string, apodo string, telefono string, direccion string) (int64, error)

Crear un nuevo contacto

Types

type ContactoJ

type ContactoJ struct {
	IDContacto        int    `json:"id_contacto"`
	IDUsuario         int    `json:"id_usuario"`
	IDUsuarioContacto int    `json:"id_usuario_contacto"`
	Nombre            string `json:"nombre"`
	Apodo             string `json:"apodo"`
	Telefono          string `json:"telefono"`
	Direccion         string `json:"direccion"`
}

Estructura con tipos de datos del Json

Jump to

Keyboard shortcuts

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