service

package
v0.0.0-...-05c022d Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//UserS para manejo del negocio de Usuario
	UserS UserService
	//PersonaS para manejo del negocio de Persona
	PersonaS PersonaService
)

Functions

This section is empty.

Types

type PersonaService

type PersonaService interface {
	CreaPersona(nom string, ape string, fechaNacimiento string) model.Personas
	BuscaTodo() model.Personas
	BorraPersona(id string) model.Personas
	BuscaPersona(id string) model.Personas
	ActualizaPersona(id string, nom string, ape string, fechaNacimiento string) model.Personas
}

PersonaService interface para poder realizar tests del negocio de persona

func NewPersonaService

func NewPersonaService(pR mongoDB.PersonaRepository) PersonaService

NewPersonaService para obtener megocio de forma ordenada

type UserService

type UserService interface {
	CreaUsuario(usu string, pass string, nom string, ape string) model.User
	Autentica(usu string, pass string) (model.User, bool)
	BuscaPorUsuario(usu string) model.User
}

UserService interface para exponer manejo de User

func NewUserService

func NewUserService(uR mongoDB.UserRepository) UserService

NewUserService para obtener repositorio de manera ordenada

Jump to

Keyboard shortcuts

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