Documentation ¶
Index ¶
- type ShopRepository
- func (repo *ShopRepository) Create(shop *models.Shop) (*models.Shop, error)
- func (repo *ShopRepository) GetAll() ([]*models.Shop, error)
- func (repo *ShopRepository) GetByFilter(filter interface{}, args ...interface{}) ([]*models.Shop, error)
- func (repo *ShopRepository) GetById(id int32) (*models.Shop, error)
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) GetByFilter ¶
func (repo *ShopRepository) GetByFilter(filter interface{}, args ...interface{}) ([]*models.Shop, error)
Click to show internal directories.
Click to hide internal directories.