repository

package
v0.0.0-...-5c5f30a Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMarketRepository

type IMarketRepository interface {
	Save(market model.Record) error
	GetItem(id string) (model.Record, error)
	GetItemsByDistrictId(id string) ([]model.Record, error)
	Delete(id string) error
}

type MarketRepository

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

func (*MarketRepository) Delete

func (mr *MarketRepository) Delete(id string) error

func (*MarketRepository) GetItem

func (mr *MarketRepository) GetItem(id string) (model.Record, error)

func (*MarketRepository) GetItemsByDistrictId

func (mr *MarketRepository) GetItemsByDistrictId(id string) ([]model.Record, error)

func (*MarketRepository) New

func (mr *MarketRepository) New() error

func (*MarketRepository) Save

func (mr *MarketRepository) Save(market model.Record) error

Jump to

Keyboard shortcuts

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