repositories

package
v0.0.0-...-10548b9 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShopRepository

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

func NewShopRepository

func NewShopRepository(db *conn.DB) *ShopRepository

func (*ShopRepository) Create

func (repo *ShopRepository) Create(shop *models.Shop) (*models.Shop, error)

func (*ShopRepository) GetAll

func (repo *ShopRepository) GetAll() ([]*models.Shop, error)

func (*ShopRepository) GetByFilter

func (repo *ShopRepository) GetByFilter(filter interface{}, args ...interface{}) ([]*models.Shop, error)

func (*ShopRepository) GetById

func (repo *ShopRepository) GetById(id int32) (*models.Shop, error)

Jump to

Keyboard shortcuts

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