services

package
v0.0.0-...-662530a Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CarService

type CarService struct {
	// contains filtered or unexported fields
}

func NewCarService

func NewCarService(config *models.Config, repository *repos.CarRepository) *CarService

func (*CarService) CreateCar

func (service *CarService) CreateCar(car models.Car) []models.Car

func (*CarService) DeleteCar

func (service *CarService) DeleteCar(car models.Car) []models.Car

func (*CarService) FindAll

func (service *CarService) FindAll() []models.Car

func (*CarService) FindByID

func (service *CarService) FindByID(id string) []models.Car

func (*CarService) UpdateCar

func (service *CarService) UpdateCar(car models.Car) []models.Car

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(config *models.Config, repository *repos.UserRepository) *UserService

func (*UserService) CreateUser

func (service *UserService) CreateUser(user models.User) []models.User

func (*UserService) DeleteUser

func (service *UserService) DeleteUser(user models.User) []models.User

func (*UserService) FindAll

func (service *UserService) FindAll() []models.User

func (*UserService) FindByField

func (service *UserService) FindByField(field string, value interface{}) []models.User

func (*UserService) UpdateUser

func (service *UserService) UpdateUser(user models.User) []models.User

Jump to

Keyboard shortcuts

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