service

package
v0.0.0-...-736631f Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advert interface {
	GetAll(page int, sort string) ([]*model.Advert, error)
	GetById(advertId int, fields bool) (*model.DetailedAdvert, error)
	Create(advert *model.DetailedAdvert) (int, error)
}

type AdvertService

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

func NewAdvertService

func NewAdvertService(repo repository.Advert) *AdvertService

func (*AdvertService) Create

func (s *AdvertService) Create(advert *model.DetailedAdvert) (int, error)

func (*AdvertService) GetAll

func (s *AdvertService) GetAll(page int, sort string) ([]*model.Advert, error)

func (*AdvertService) GetById

func (s *AdvertService) GetById(advertId int, fields bool) (*model.DetailedAdvert, error)

type Map

type Map map[string]interface{}

type Service

type Service struct {
	Advert
}

func NewService

func NewService(repos *repository.Repository) *Service

Directories

Path Synopsis
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.

Jump to

Keyboard shortcuts

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