models

package
v0.0.0-...-10dc086 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCuposPorDependencia

func AddCuposPorDependencia(m *CuposPorDependencia) (id int64, err error)

AddCuposPorDependencia insert a new CuposPorDependencia into database and returns last inserted Id on success.

func AddEntrevista

func AddEntrevista(m *Entrevista) (id int64, err error)

AddEntrevista insert a new Entrevista into database and returns last inserted Id on success.

func AddEntrevistador

func AddEntrevistador(m *Entrevistador) (id int64, err error)

AddEntrevistador insert a new Entrevistador into database and returns last inserted Id on success.

func AddEntrevistadorEntrevista

func AddEntrevistadorEntrevista(m *EntrevistadorEntrevista) (id int64, err error)

AddEntrevistadorEntrevista insert a new EntrevistadorEntrevista into database and returns last inserted Id on success.

func AddEstadoEntrevista

func AddEstadoEntrevista(m *EstadoEntrevista) (id int64, err error)

AddEstadoEntrevista insert a new EstadoEntrevista into database and returns last inserted Id on success.

func AddEvaluacionInscripcion

func AddEvaluacionInscripcion(m *EvaluacionInscripcion) (id int64, err error)

AddEvaluacionInscripcion insert a new EvaluacionInscripcion into database and returns last inserted Id on success.

func AddRequisito

func AddRequisito(m *Requisito) (id int64, err error)

AddRequisito insert a new Requisito into database and returns last inserted Id on success.

func AddRequisitoProgramaAcademico

func AddRequisitoProgramaAcademico(m *RequisitoProgramaAcademico) (id int64, err error)

AddRequisitoProgramaAcademico insert a new RequisitoProgramaAcademico into database and returns last inserted Id on success.

func AddTipoEntrevista

func AddTipoEntrevista(m *TipoEntrevista) (id int64, err error)

AddTipoEntrevista insert a new TipoEntrevista into database and returns last inserted Id on success.

func DeleteCuposPorDependencia

func DeleteCuposPorDependencia(id int) (err error)

DeleteCuposPorDependencia deletes CuposPorDependencia by Id and returns error if the record to be deleted doesn't exist

func DeleteEntrevista

func DeleteEntrevista(id int) (err error)

DeleteEntrevista deletes Entrevista by Id and returns error if the record to be deleted doesn't exist

func DeleteEntrevistador

func DeleteEntrevistador(id int) (err error)

DeleteEntrevistador deletes Entrevistador by Id and returns error if the record to be deleted doesn't exist

func DeleteEntrevistadorEntrevista

func DeleteEntrevistadorEntrevista(id int) (err error)

DeleteEntrevistadorEntrevista deletes EntrevistadorEntrevista by Id and returns error if the record to be deleted doesn't exist

func DeleteEstadoEntrevista

func DeleteEstadoEntrevista(id int) (err error)

DeleteEstadoEntrevista deletes EstadoEntrevista by Id and returns error if the record to be deleted doesn't exist

func DeleteEvaluacionInscripcion

func DeleteEvaluacionInscripcion(id int) (err error)

DeleteEvaluacionInscripcion deletes EvaluacionInscripcion by Id and returns error if the record to be deleted doesn't exist

func DeleteRequisito

func DeleteRequisito(id int) (err error)

DeleteRequisito deletes Requisito by Id and returns error if the record to be deleted doesn't exist

func DeleteRequisitoProgramaAcademico

func DeleteRequisitoProgramaAcademico(id int) (err error)

DeleteRequisitoProgramaAcademico deletes RequisitoProgramaAcademico by Id and returns error if the record to be deleted doesn't exist

func DeleteTipoEntrevista

func DeleteTipoEntrevista(id int) (err error)

DeleteTipoEntrevista deletes TipoEntrevista by Id and returns error if the record to be deleted doesn't exist

func GetAllCuposPorDependencia

func GetAllCuposPorDependencia(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllCuposPorDependencia retrieves all CuposPorDependencia matches certain condition. Returns empty list if no records exist

func GetAllEntrevista

func GetAllEntrevista(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllEntrevista retrieves all Entrevista matches certain condition. Returns empty list if no records exist

func GetAllEntrevistador

func GetAllEntrevistador(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllEntrevistador retrieves all Entrevistador matches certain condition. Returns empty list if no records exist

func GetAllEntrevistadorEntrevista

func GetAllEntrevistadorEntrevista(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllEntrevistadorEntrevista retrieves all EntrevistadorEntrevista matches certain condition. Returns empty list if no records exist

func GetAllEstadoEntrevista

func GetAllEstadoEntrevista(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllEstadoEntrevista retrieves all EstadoEntrevista matches certain condition. Returns empty list if no records exist

func GetAllEvaluacionInscripcion

func GetAllEvaluacionInscripcion(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllEvaluacionInscripcion retrieves all EvaluacionInscripcion matches certain condition. Returns empty list if no records exist

func GetAllRequisito

func GetAllRequisito(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllRequisito retrieves all Requisito matches certain condition. Returns empty list if no records exist

func GetAllRequisitoProgramaAcademico

func GetAllRequisitoProgramaAcademico(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllRequisitoProgramaAcademico retrieves all RequisitoProgramaAcademico matches certain condition. Returns empty list if no records exist

func GetAllTipoEntrevista

func GetAllTipoEntrevista(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllTipoEntrevista retrieves all TipoEntrevista matches certain condition. Returns empty list if no records exist

func UpdateCuposPorDependenciaById

func UpdateCuposPorDependenciaById(m *CuposPorDependencia) (err error)

UpdateCuposPorDependencia updates CuposPorDependencia by Id and returns error if the record to be updated doesn't exist

func UpdateEntrevistaById

func UpdateEntrevistaById(m *Entrevista) (err error)

UpdateEntrevista updates Entrevista by Id and returns error if the record to be updated doesn't exist

func UpdateEntrevistadorById

func UpdateEntrevistadorById(m *Entrevistador) (err error)

UpdateEntrevistador updates Entrevistador by Id and returns error if the record to be updated doesn't exist

func UpdateEntrevistadorEntrevistaById

func UpdateEntrevistadorEntrevistaById(m *EntrevistadorEntrevista) (err error)

UpdateEntrevistadorEntrevista updates EntrevistadorEntrevista by Id and returns error if the record to be updated doesn't exist

func UpdateEstadoEntrevistaById

func UpdateEstadoEntrevistaById(m *EstadoEntrevista) (err error)

UpdateEstadoEntrevista updates EstadoEntrevista by Id and returns error if the record to be updated doesn't exist

func UpdateEvaluacionInscripcionById

func UpdateEvaluacionInscripcionById(m *EvaluacionInscripcion) (err error)

UpdateEvaluacionInscripcion updates EvaluacionInscripcion by Id and returns error if the record to be updated doesn't exist

func UpdateRequisitoById

func UpdateRequisitoById(m *Requisito) (err error)

UpdateRequisito updates Requisito by Id and returns error if the record to be updated doesn't exist

func UpdateRequisitoProgramaAcademicoById

func UpdateRequisitoProgramaAcademicoById(m *RequisitoProgramaAcademico) (err error)

UpdateRequisitoProgramaAcademico updates RequisitoProgramaAcademico by Id and returns error if the record to be updated doesn't exist

func UpdateTipoEntrevistaById

func UpdateTipoEntrevistaById(m *TipoEntrevista) (err error)

UpdateTipoEntrevista updates TipoEntrevista by Id and returns error if the record to be updated doesn't exist

Types

type Alert

type Alert struct {
	Type string
	Code string
	Body interface{}
}

type CuposPorDependencia

type CuposPorDependencia struct {
	Id                int    `orm:"column(id);pk;auto"`
	DependenciaId     int    `orm:"column(dependencia_id)"`
	PeriodoId         int    `orm:"column(periodo_id)"`
	CuposHabilitados  int    `orm:"column(cupos_habilitados)"`
	CuposOpcionados   int    `orm:"column(cupos_opcionados)"`
	Activo            bool   `orm:"column(activo)"`
	FechaCreacion     string `orm:"column(fecha_creacion);null"`
	FechaModificacion string `orm:"column(fecha_modificacion);null"`
}

func GetCuposPorDependenciaById

func GetCuposPorDependenciaById(id int) (v *CuposPorDependencia, err error)

GetCuposPorDependenciaById retrieves CuposPorDependencia by Id. Returns error if Id doesn't exist

func (*CuposPorDependencia) TableName

func (t *CuposPorDependencia) TableName() string

type Entrevista

type Entrevista struct {
	Id                 int               `orm:"column(id);pk;auto"`
	InscripcionId      int               `orm:"column(inscripcion_id)"`
	FechaEntrevista    time.Time         `orm:"column(fecha_entrevista);type(timestamp without time zone)"`
	EstadoEntrevistaId *EstadoEntrevista `orm:"column(estado_entrevista_id);rel(fk)"`
	TipoEntrevistaId   *TipoEntrevista   `orm:"column(tipo_entrevista_id);rel(fk)"`
	Activo             bool              `orm:"column(activo)"`
	FechaCreacion      string            `orm:"column(fecha_creacion);null"`
	FechaModificacion  string            `orm:"column(fecha_modificacion);null"`
}

func GetEntrevistaById

func GetEntrevistaById(id int) (v *Entrevista, err error)

GetEntrevistaById retrieves Entrevista by Id. Returns error if Id doesn't exist

func (*Entrevista) TableName

func (t *Entrevista) TableName() string

type Entrevistador

type Entrevistador struct {
	Id                  int    `orm:"column(id);pk;auto"`
	PersonaId           int    `orm:"column(persona_id)"`
	ProgramaAcademicoId int    `orm:"column(programa_academico_id)"`
	Activo              bool   `orm:"column(activo)"`
	FechaCreacion       string `orm:"column(fecha_creacion);null"`
	FechaModificacion   string `orm:"column(fecha_modificacion);null"`
}

func GetEntrevistadorById

func GetEntrevistadorById(id int) (v *Entrevistador, err error)

GetEntrevistadorById retrieves Entrevistador by Id. Returns error if Id doesn't exist

func (*Entrevistador) TableName

func (t *Entrevistador) TableName() string

type EntrevistadorEntrevista

type EntrevistadorEntrevista struct {
	Id                int            `orm:"column(id);pk;auto"`
	EntrevistadorId   *Entrevistador `orm:"column(entrevistador_id);rel(fk)"`
	EntrevistaId      *Entrevista    `orm:"column(entrevista_id);rel(fk)"`
	Activo            bool           `orm:"column(activo)"`
	NotaParcial       float64        `orm:"column(nota_parcial);null"`
	FechaCreacion     string         `orm:"column(fecha_creacion);null"`
	FechaModificacion string         `orm:"column(fecha_modificacion);null"`
}

func GetEntrevistadorEntrevistaById

func GetEntrevistadorEntrevistaById(id int) (v *EntrevistadorEntrevista, err error)

GetEntrevistadorEntrevistaById retrieves EntrevistadorEntrevista by Id. Returns error if Id doesn't exist

func (*EntrevistadorEntrevista) TableName

func (t *EntrevistadorEntrevista) TableName() string

type EstadoEntrevista

type EstadoEntrevista struct {
	Id                int     `orm:"column(id);pk;auto"`
	Nombre            string  `orm:"column(nombre)"`
	Descripcion       string  `orm:"column(descripcion);null"`
	CodigoAbreviacion string  `orm:"column(codigo_abreviacion);null"`
	Activo            bool    `orm:"column(activo)"`
	NumeroOrden       float64 `orm:"column(numero_orden);null"`
	FechaCreacion     string  `orm:"column(fecha_creacion);null"`
	FechaModificacion string  `orm:"column(fecha_modificacion);null"`
}

func GetEstadoEntrevistaById

func GetEstadoEntrevistaById(id int) (v *EstadoEntrevista, err error)

GetEstadoEntrevistaById retrieves EstadoEntrevista by Id. Returns error if Id doesn't exist

func (*EstadoEntrevista) TableName

func (t *EstadoEntrevista) TableName() string

type EvaluacionInscripcion

type EvaluacionInscripcion struct {
	Id                           int                         `orm:"column(id);pk;auto"`
	InscripcionId                int                         `orm:"column(inscripcion_id)"`
	NotaFinal                    float64                     `orm:"column(nota_final)"`
	RequisitoProgramaAcademicoId *RequisitoProgramaAcademico `orm:"column(requisito_programa_academico_id);rel(fk);"`
	EntrevistaId                 *Entrevista                 `orm:"column(entrevista_id);rel(fk);null"`
	Activo                       bool                        `orm:"column(activo)"`
	FechaCreacion                string                      `orm:"column(fecha_creacion);null"`
	FechaModificacion            string                      `orm:"column(fecha_modificacion);null"`
}

func GetEvaluacionInscripcionById

func GetEvaluacionInscripcionById(id int) (v *EvaluacionInscripcion, err error)

GetEvaluacionInscripcionById retrieves EvaluacionInscripcion by Id. Returns error if Id doesn't exist

func (*EvaluacionInscripcion) TableName

func (t *EvaluacionInscripcion) TableName() string

type Requisito

type Requisito struct {
	Id                int     `orm:"column(id);pk;auto"`
	Nombre            string  `orm:"column(nombre)"`
	Descripcion       string  `orm:"column(descripcion);null"`
	CodigoAbreviacion string  `orm:"column(codigo_abreviacion);null"`
	Activo            bool    `orm:"column(activo)"`
	NumeroOrden       float64 `orm:"column(numero_orden);null"`
	FechaCreacion     string  `orm:"column(fecha_creacion);null"`
	FechaModificacion string  `orm:"column(fecha_modificacion);null"`
}

func GetRequisitoById

func GetRequisitoById(id int) (v *Requisito, err error)

GetRequisitoById retrieves Requisito by Id. Returns error if Id doesn't exist

func (*Requisito) TableName

func (t *Requisito) TableName() string

type RequisitoProgramaAcademico

type RequisitoProgramaAcademico struct {
	Id                  int        `orm:"column(id);pk;auto"`
	ProgramaAcademicoId int        `orm:"column(programa_academico_id)"`
	Porcentaje          float64    `orm:"column(porcentaje)"`
	PeriodoId           int        `orm:"column(periodo_id)"`
	RequisitoId         *Requisito `orm:"column(requisito_id);rel(fk)"`
	Activo              bool       `orm:"column(activo)"`
	FechaCreacion       string     `orm:"column(fecha_creacion);null"`
	FechaModificacion   string     `orm:"column(fecha_modificacion);null"`
}

func GetRequisitoProgramaAcademicoById

func GetRequisitoProgramaAcademicoById(id int) (v *RequisitoProgramaAcademico, err error)

GetRequisitoProgramaAcademicoById retrieves RequisitoProgramaAcademico by Id. Returns error if Id doesn't exist

func (*RequisitoProgramaAcademico) TableName

func (t *RequisitoProgramaAcademico) TableName() string

type TipoEntrevista

type TipoEntrevista struct {
	Id                int     `orm:"column(id);pk;auto"`
	Nombre            string  `orm:"column(nombre)"`
	Descripcion       string  `orm:"column(descripcion);null"`
	CodigoAbreviacion string  `orm:"column(codigo_abreviacion);null"`
	Activo            bool    `orm:"column(activo)"`
	NumeroOrden       float64 `orm:"column(numero_orden);null"`
	FechaCreacion     string  `orm:"column(fecha_creacion);null"`
	FechaModificacion string  `orm:"column(fecha_modificacion);null"`
}

func GetTipoEntrevistaById

func GetTipoEntrevistaById(id int) (v *TipoEntrevista, err error)

GetTipoEntrevistaById retrieves TipoEntrevista by Id. Returns error if Id doesn't exist

func (*TipoEntrevista) TableName

func (t *TipoEntrevista) TableName() string

Jump to

Keyboard shortcuts

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