product

package
v1.0.49 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertProduct

func InsertProduct(product Product) (int, error)

func RemoveProduct

func RemoveProduct(productID int) error

func UpdateProduct

func UpdateProduct(product Product) error

Types

type Product

type Product struct {
	ProductID      *int   `json:"productId"`
	Manufacturer   string `json:"manufacturer"`
	Sku            string `json:"sku"`
	Upc            string `json:"upc"`
	PricePerUnit   string `json:"pricePerUnit"`
	QuantityOnHand int    `json:"quantityOnHand"`
	ProductName    string `json:"productName"`
}

Product

func GetProduct

func GetProduct(productID int) (*Product, error)

func GetProductList

func GetProductList() ([]Product, error)

func GetTopTenProducts

func GetTopTenProducts() ([]Product, error)

Jump to

Keyboard shortcuts

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