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 Borrar

func Borrar(db *sql.DB, id int) (int64, error)

func Crear

func Crear(db *sql.DB, id_conversacion int, mensaje string, id_usuario int) (int64, error)

Crear una conversación

func Obtener

func Obtener(db *sql.DB, id int) mensajesCollection

Types

type MensajeJ

type MensajeJ struct {
	IDMensaje      int    `json:"id_mensaje"`
	IDConversacion int    `json:"id_conversacion"`
	Mensaje        string `json:"mensaje"`
	IDUsuario      int    `json:"id_usuario"`
	FechaCreacion  string `json:"fecha_creacion"`
}

Jump to

Keyboard shortcuts

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