maximo tejeda e5d160da8c
All checks were successful
dev test / test (push) Successful in 39s
dev test / vulnCheck (push) Successful in 39s
dev test / Ci-Lint (push) Successful in 24s
FIRST COMMIT
2024-12-14 10:40:22 -04:00

18 lines
811 B
Go

package ports
import (
"context"
"git.maximotejeda.com/maximo/cedulados/internal/application/core/domain"
)
type DBPorts interface {
ByCedula(ctx context.Context, cedula *domain.Cedula) (*domain.Cedulado, error)
GetByNameLastName(ctx context.Context, nombre, apellido1, apellido2 string, page int64) (*domain.MultipleResults, error)
GetByFTS(ctx context.Context, parametros string, page int64) (*domain.MultipleResults, error)
ByNameAndLocation(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)
}