spu

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

商品相关

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(clt *core.Client, spu *model.Spu) (product *model.Spu, err error)

Add 添加商品

func Del

func Del(clt *core.Client, spuId uint64, outId string) (err error)

Del 删除商品

func Delisting

func Delisting(clt *core.Client, spuId uint64, outId string) (err error)

Delisting 下架商品

func Get

func Get(clt *core.Client, spuId uint64, outId string) (product *model.Spu, err error)

Get 获取商品

func GetList

func GetList(clt *core.Client, status int, page int, pageSize int) (products []model.Spu, err error)

GetList 获取商品列表 status: 商品状态 page: 第几页(最小填1) pageSize: 每页数量(不超过10,000)

func Listing

func Listing(clt *core.Client, spuId uint64, outId string) (err error)

Listing 上架商品

func Update

func Update(clt *core.Client, spu *model.Spu) (product *model.Spu, err error)

Update 更新商品

Types

This section is empty.

Jump to

Keyboard shortcuts

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