repository

package
v1.0.1-0...-b280806 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSkuInventoryExist

func CheckSkuInventoryExist(shopId int64, skuCode string) (exist bool, err error)

func CreateSkuInventory

func CreateSkuInventory(tx *xorm.Session, model *mysql.SkuInventory) (err error)

sku库存

func CreateSkuInventoryRecord

func CreateSkuInventoryRecord(model *mysql.SkuInventoryRecord) (err error)

func CreateSkuInventoryRecordByTx

func CreateSkuInventoryRecordByTx(tx *xorm.Session, model *mysql.SkuInventoryRecord) (err error)

func CreateSkuPriceHistory

func CreateSkuPriceHistory(tx *xorm.Session, model *mysql.SkuPriceHistory) (err error)

func CreateSkuProperty

func CreateSkuProperty(tx *xorm.Session, model *mysql.SkuProperty) (err error)

sku 商品属性

func CreateSkuPropertyEx

func CreateSkuPropertyEx(ctx context.Context, req interface{}) (err error)

func CreateSkuPropertyMongoDB

func CreateSkuPropertyMongoDB(ctx context.Context, req interface{}) (err error)

func FindSkuInventoryRecord

func FindSkuInventoryRecord(sqlSelect string, where interface{}) ([]mysql.SkuInventoryRecord, error)

func GetSkuInventory

func GetSkuInventory(sqlSelect string, shopId int64, skuCode string) (*mysql.SkuInventory, error)

func GetSkuInventoryList

func GetSkuInventoryList(sqlSelect string, shopIdList []int64, skuCodeList []string) ([]*mysql.SkuInventory, error)

func GetSkuInventoryListByShopId

func GetSkuInventoryListByShopId(sqlSelect string, shopId int64, pageSize, pageNum int) ([]mysql.SkuInventory, error)

func GetSkuPriceHistory

func GetSkuPriceHistory(sqlSelect string, where interface{}, orderByDesc []string, limit int) ([]mysql.SkuPriceHistory, error)

func GetSkuPropertyExList

func GetSkuPropertyExList(ctx context.Context, query map[string]interface{}) ([]args.SkuPropertyEx, error)

func GetSkuPropertyList

func GetSkuPropertyList(skuCodeList []string) ([]mysql.SkuProperty, error)

func UpdateInventory

func UpdateInventory(tx *xorm.Session, where, maps map[string]interface{}) (int64, error)

func UpdateSkuInventoryRecord

func UpdateSkuInventoryRecord(where, maps interface{}) (int64, error)

func UpdateSkuInventoryRecordByTx

func UpdateSkuInventoryRecordByTx(tx *xorm.Session, where, maps interface{}) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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