core

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiCore

type ApiCore struct {
	ID           primitive.ObjectID `json:"id" bson:"_id"`
	Modulo       string             `json:"modulo"`
	Driver       string             `json:"driver"`
	Tipo         string             `json:"tipo"`
	Coleccion    string             `json:"coleccion"`
	Query        string             `json:"query"`
	Parametros   string             `json:"parametros"`
	Ruta         string             `json:"ruta"`
	Funcion      string             `json:"funcion"`
	Retorna      bool               `json:"retorna"`
	Concurrencia bool               `json:"concurrencia"`
	Migrar       bool               `json:"migrar"`
	Metodo       string             `json:"metodo"`
	Destino      string             `json:"destino"`
	PuertoHttp   int                `json:"puertohttp"`
	PuertoHttps  int                `json:"puertohttps"`
	Protocolo    string             `json:"protocolo"`
	Prioridad    string             `json:"prioridad"`
	Entorno      string             `json:"entorno"`
	Estatus      bool               `json:"estatus" bson:"estatus,omitempty"`
	Relacional   bool               `json:"relacional"`
	Valores      interface{}        `json:"valores" bson:"valores,omitempty"`
	Logs         bool               `json:"logs"`
	Cache        int                `json:"cache"`
	Descripcion  string             `json:"descripcion"`
	Resultado    interface{}        `json:"resultado"`
}

ApiCore Estructura de conexion

type Configuracion

type Configuracion struct {
}

type Core

type Core struct {
	Sistema  string `json:"sistema"`
	Consulta string `json:"consulta"`
	Ruta     string `json:"ruta"`
	Autor    string `json:"autor"`
	ApiCore
}

Core Ejecucion

func (*Core) Asignar

func (C *Core) Asignar(v map[string]interface{}) (jSon []byte, err error)

Asignar valores y operaciones

func (*Core) CrearNOSQL

func (C *Core) CrearNOSQL(coleccion string, query string, db *mongo.Database) (jSon []byte, err error)

CrearNOSQL Insert, Generador de Consultas

func (*Core) CrearQuery

func (C *Core) CrearQuery(v map[string]interface{}) (jSon []byte, err error)

CrearQuery Creación dinamica de Consultas

func (*Core) IUDQuery

func (C *Core) IUDQuery(consulta string, conexion *sql.DB, tipo int64) (jSon []byte, err error)

IUDQuery Insert, Update, Delete Generador de Consultas

func (*Core) IUDQueryBash

func (C *Core) IUDQueryBash(tabla string, lista []map[string]interface{}, consulta string, conexion *sql.DB) (jSon []byte, err error)

IUDQueryBash Insert, Update, Delete Generador de Consultas

func (*Core) InsertNOSQL

func (C *Core) InsertNOSQL(coleccion string, v interface{}) (jSon []byte, err error)

InsertNOSQL Insert, Generador de Consultas

func (*Core) Listar

func (C *Core) Listar() (jSon []byte, err error)

Listar Insert, Generador de Consultas

func (*Core) OperarConsulta

func (C *Core) OperarConsulta(v map[string]interface{}) (jSon []byte, err error)

OperarConsulta Control de resultados

func (*Core) Select

func (C *Core) Select(v map[string]interface{}, consulta string, conexion *sql.DB) (jSon []byte, err error)

Select Crear Consultas Sql

type ORMPostgres

type ORMPostgres struct {
}

func (*ORMPostgres) Crear

func (p *ORMPostgres) Crear()

type Object

type Object map[string]interface{}

Object Objeto para reflexiones

type Oficina

type Oficina struct {
	ID            string `json:"id"`
	CodigoOficina string `json:"codigo"`
	Descripcion   string `json:"descripcion"`
}

Oficina Describe una oficinas

type ReporteVentas

type ReporteVentas struct {
	Codigo         string `json:"codigo"`
	Descripcion    string `json:"descripcion"`
	Fecha          string `json:"fecha"`
	Concepto       string `json:"concepto"`
	CodigoServicio string `json:"codigoservicio"`
	Servicio       string `json:"servicio"`
	Total          string `json:"total"`
}

Jump to

Keyboard shortcuts

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