repository

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: 3 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, sortField, orde string) ([]*model.Advert, error)
	GetById(advertId int, fields bool) (*model.DetailedAdvert, error)
	Create(advert *model.DetailedAdvert) (int, error)
}

type Repository

type Repository struct {
	Advert
}

func NewRepository

func NewRepository(db *sqlx.DB) *Repository

Directories

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

Jump to

Keyboard shortcuts

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