jzone

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCartItemByPin

func AddCartItemByPin(req *AddCartItemByPinRequest) (bool, error)

TODO 通过Pin将商品加入用户购物车

Types

type AddCartItemByPinData

type AddCartItemByPinData struct {
	ReturnType *AddCartItemByPinReturnType `json:"returnType,omitempty" codec:"returnType,omitempty"`
	Code       string                      `json:"code"`
}

func (AddCartItemByPinData) Error added in v1.1.1

func (r AddCartItemByPinData) Error() string

func (AddCartItemByPinData) IsError added in v1.1.1

func (r AddCartItemByPinData) IsError() bool

type AddCartItemByPinRequest

type AddCartItemByPinRequest struct {
	api.BaseRequest
	Pin    string `json:"pin,omitempty" codec:"pin,omitempty"`       //加密pin
	ItemId uint64 `json:"itemId,omitempty" codec:"itemId,omitempty"` //skuid
	Num    uint64 `json:"num,omitempty" codec:"num,omitempty"`       //数量
}

type AddCartItemByPinResponse

type AddCartItemByPinResponse struct {
	ErrorResp *api.ErrorResponnse   `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *AddCartItemByPinData `json:"jingdong_jzone_addCartItemByPin_responce,omitempty" codec:"jingdong_jzone_addCartItemByPin_responce,omitempty"`
}

func (AddCartItemByPinResponse) Error added in v1.1.1

func (r AddCartItemByPinResponse) Error() string

func (AddCartItemByPinResponse) IsError added in v1.1.1

func (r AddCartItemByPinResponse) IsError() bool

type AddCartItemByPinReturnType

type AddCartItemByPinReturnType struct {
	Message string `json:"message,omitempty" codec:"message,omitempty"`
	Code    string `json:"code,omitempty" codec:"code,omitempty"`
}

func (AddCartItemByPinReturnType) Error added in v1.1.1

func (AddCartItemByPinReturnType) IsError added in v1.1.1

func (r AddCartItemByPinReturnType) IsError() bool

Jump to

Keyboard shortcuts

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