Some checks failed
dev test / test (push) Failing after 19s
dev test / vulnCheck (push) Has been skipped
dev test / Ci-Lint (push) Has been skipped
${{ github.actor }} executed Build Push Prod / build (push) Failing after 1m9s
${{ github.actor }} executed Build Push Prod / deploy (push) Has been skipped
18 lines
842 B
Go
18 lines
842 B
Go
package ports
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.maximotejeda.com/maximo/cedulados/internal/application/core/domain"
|
|
)
|
|
|
|
type APIPorts interface {
|
|
CeduladosByCedula(ctx context.Context, cedula *domain.Cedula) (*domain.Cedulado, error)
|
|
CeduladosByNameLastName(ctx context.Context, nombre, apellido1, apellido2 string, page int64) (*domain.MultipleResults, error)
|
|
CeduladosByFTS(ctx context.Context, parametros string, page int64) (*domain.MultipleResults, error)
|
|
CeduladosByNameAndLocation(ctx context.Context, nombre, apellido1, apellido2, municipio string, page int64) (*domain.MultipleResults, error)
|
|
QueryFotoByCedula(ctx context.Context, cedula *domain.Cedula) (*domain.Foto, error)
|
|
QueryFotoById(ctx context.Context, id int64) (*domain.Foto, error)
|
|
QueryAllCedulas(ctx context.Context, cedulas []*domain.Cedula) ([]*domain.Foto, error)
|
|
}
|