test

package
v0.0.0-...-8ca34be Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB() *sql.DB

func NewDBX

func NewDBX() *sqlx.DB

Types

type Contato

type Contato struct {
	ID         int64     `json:"id"`
	Nome       string    `json:"nome"  validate:"required"`
	Celular    string    `json:"celular" validate:"required"`
	Email      string    `json:"email"`
	DateCreate time.Time `json:"dt_create"`
}

type ContatoXRepository

type ContatoXRepository struct {
	DBX *sqlx.DB
}

func NewContatoXRepository

func NewContatoXRepository(dbx *sqlx.DB) *ContatoXRepository

func (*ContatoXRepository) GetByFilterPage

func (repository *ContatoXRepository) GetByFilterPage(filters []query.FilterParameter, pageable query.Pageable) (query.Page, error)

func (*ContatoXRepository) GetByID

func (repository *ContatoXRepository) GetByID(id int64) (Contato, error)

func (*ContatoXRepository) GetByNamePage

func (repository *ContatoXRepository) GetByNamePage(strQuery string, pageable query.Pageable) (query.Page, error)

func (*ContatoXRepository) GetByNamePageNovo

func (repository *ContatoXRepository) GetByNamePageNovo(strQuery string, pageable query.Pageable) (query.Page, error)

func (*ContatoXRepository) GetReportContato

func (repository *ContatoXRepository) GetReportContato() (query.Report, error)

func (*ContatoXRepository) Save

func (repository *ContatoXRepository) Save(contato Contato) (int64, error)

Jump to

Keyboard shortcuts

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