repository

package
v0.0.0-...-63c6e0b Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: GPL-3.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 Price

type Price struct {
	ID            int `gorm:"primaryKey"`
	ProductNumber string
	StoreNumber   string
	Price         string
	SalePrice     string
	CreatedAt     time.Time
	UpdatedAt     time.Time
}

type Repository

type Repository struct {
	DB *gorm.DB
}

func NewRepository

func NewRepository(db *gorm.DB) *Repository

func (*Repository) Create

func (r *Repository) Create(p prices.Price) error

func (*Repository) GetAllPrices

func (r *Repository) GetAllPrices() ([]*prices.Price, error)

Jump to

Keyboard shortcuts

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