Documentation
¶
Overview ¶
Package product represents abstraction of business layer product object
Index ¶
Constants ¶
View Source
const ( ConstModelNameStock = "Stock" ConstModelNameStockCollection = "StockCollection" ConstErrorModule = "stock" ConstErrorLevel = env.ConstErrorLevelModel )
Package global constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterfaceStock ¶
type InterfaceStock interface {
GetProductID() string
GetOptions() string
GetQty() int
SetProductID(product_id string) error
SetOptions(options string) error
SetQty(qty int) error
SetProductQty(productID string, options map[string]interface{}, qty int) error
GetProductQty(productID string, options map[string]interface{}) int
GetProductOptions(productID string) []map[string]interface{}
RemoveProductQty(productID string, options map[string]interface{}) error
UpdateProductQty(productID string, options map[string]interface{}, deltaQty int) error
models.InterfaceModel
models.InterfaceObject
models.InterfaceStorable
models.InterfaceListable
}
InterfaceStock represents interface to access business layer implementation of stock management
func GetStockModel ¶
func GetStockModel() (InterfaceStock, error)
GetBlogPostModel retrieves current InterfaceBlogPost model implementation
type InterfaceStockCollection ¶
type InterfaceStockCollection interface {
ListStocks() []InterfaceStock
models.InterfaceCollection
}
InterfaceStockCollection represents interface to access business layer implementation of stock collection
func GetStockCollectionModel ¶
func GetStockCollectionModel() (InterfaceStockCollection, error)
GetProductCollectionModel retrieves current InterfaceProductCollection model implementation
Click to show internal directories.
Click to hide internal directories.