dutyfree

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaDutyfreeStockQueryAPIResponse

type AlibabaDutyfreeStockQueryAPIResponse struct {
	model.CommonResponse
	AlibabaDutyfreeStockQueryResponse
}

对外库存查询接口 API返回值 alibaba.dutyfree.stock.query

对外部服务提供库存查询接口

type AlibabaDutyfreeStockQueryRequest

type AlibabaDutyfreeStockQueryRequest struct {
	model.Params
	// contains filtered or unexported fields
}

对外库存查询接口 API请求 alibaba.dutyfree.stock.query

对外部服务提供库存查询接口

func NewAlibabaDutyfreeStockQueryRequest

func NewAlibabaDutyfreeStockQueryRequest() *AlibabaDutyfreeStockQueryRequest

初始化AlibabaDutyfreeStockQueryRequest对象

func (AlibabaDutyfreeStockQueryRequest) GetApiMethodName

func (r AlibabaDutyfreeStockQueryRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaDutyfreeStockQueryRequest) GetApiParams

func (r AlibabaDutyfreeStockQueryRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaDutyfreeStockQueryRequest) GetBarCode

BarCode Getter

func (*AlibabaDutyfreeStockQueryRequest) SetBarCode

func (r *AlibabaDutyfreeStockQueryRequest) SetBarCode(barCode string) error

BarCode Setter 条形码

type AlibabaDutyfreeStockQueryResponse

type AlibabaDutyfreeStockQueryResponse struct {
	XMLName xml.Name `xml:"alibaba_dutyfree_stock_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *AlibabaDutyfreeStockQueryResultDo `json:"result,omitempty" xml:"result,omitempty"`
}

对外库存查询接口 成功返回结果

type AlibabaDutyfreeStockQueryResultDo

type AlibabaDutyfreeStockQueryResultDo struct {
	// 错误码
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 具体库存信息
	Object *StockResultDto `json:"object,omitempty" xml:"object,omitempty"`
}

AlibabaDutyfreeStockQueryResultDo

type StockResultDto

type StockResultDto struct {
	// 库存
	Stock int64 `json:"stock,omitempty" xml:"stock,omitempty"`
	// 条形码
	BarCode string `json:"bar_code,omitempty" xml:"bar_code,omitempty"`
}

StockResultDto

Jump to

Keyboard shortcuts

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