lsticitem

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package lsticitem 包含零售通商品API相关结构体

https://open.taobao.com/API.htm?docType=2&docId=47318

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseAlibabaLstIcItemInfoQueryAPIRequest added in v1.3.4

func ReleaseAlibabaLstIcItemInfoQueryAPIRequest(v *AlibabaLstIcItemInfoQueryAPIRequest)

ReleaseAlibabaLstIcItemInfoQueryAPIRequest 将 AlibabaLstIcItemInfoQueryAPIRequest 放入 sync.Pool

func ReleaseAlibabaLstIcItemInfoQueryAPIResponse added in v1.3.4

func ReleaseAlibabaLstIcItemInfoQueryAPIResponse(v *AlibabaLstIcItemInfoQueryAPIResponse)

ReleaseAlibabaLstIcItemInfoQueryAPIResponse 将 AlibabaLstIcItemInfoQueryAPIResponse 保存到 sync.Pool

func ReleaseLstItemListParam added in v1.3.4

func ReleaseLstItemListParam(v *LstItemListParam)

ReleaseLstItemListParam 释放LstItemListParam

func ReleasePagedResultDto added in v1.3.4

func ReleasePagedResultDto(v *PagedResultDto)

ReleasePagedResultDto 释放PagedResultDto

func ReleaseStock added in v1.3.4

func ReleaseStock(v *Stock)

ReleaseStock 释放Stock

func ReleaseTopLstItemDto added in v1.3.4

func ReleaseTopLstItemDto(v *TopLstItemDto)

ReleaseTopLstItemDto 释放TopLstItemDto

Types

type AlibabaLstIcItemInfoQueryAPIRequest added in v1.2.0

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

AlibabaLstIcItemInfoQueryAPIRequest 商品信息查询 API请求 alibaba.lst.ic.item.info.query

查询商品信息

func GetAlibabaLstIcItemInfoQueryAPIRequest added in v1.3.4

func GetAlibabaLstIcItemInfoQueryAPIRequest() *AlibabaLstIcItemInfoQueryAPIRequest

GetAlibabaLstIcItemInfoQueryRequest 从 sync.Pool 获取 AlibabaLstIcItemInfoQueryAPIRequest

func NewAlibabaLstIcItemInfoQueryRequest

func NewAlibabaLstIcItemInfoQueryRequest() *AlibabaLstIcItemInfoQueryAPIRequest

NewAlibabaLstIcItemInfoQueryRequest 初始化AlibabaLstIcItemInfoQueryAPIRequest对象

func (AlibabaLstIcItemInfoQueryAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaLstIcItemInfoQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLstIcItemInfoQueryAPIRequest) GetApiParams added in v1.2.0

func (r AlibabaLstIcItemInfoQueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLstIcItemInfoQueryAPIRequest) GetQuery added in v1.2.0

GetQuery Query Getter

func (AlibabaLstIcItemInfoQueryAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaLstIcItemInfoQueryAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaLstIcItemInfoQueryAPIRequest) SetQuery added in v1.2.0

SetQuery is Query Setter 零售通商品查询参数

type AlibabaLstIcItemInfoQueryAPIResponse

type AlibabaLstIcItemInfoQueryAPIResponse struct {
	model.CommonResponse
	AlibabaLstIcItemInfoQueryAPIResponseModel
}

AlibabaLstIcItemInfoQueryAPIResponse 商品信息查询 API返回值 alibaba.lst.ic.item.info.query

查询商品信息

func GetAlibabaLstIcItemInfoQueryAPIResponse added in v1.3.4

func GetAlibabaLstIcItemInfoQueryAPIResponse() *AlibabaLstIcItemInfoQueryAPIResponse

GetAlibabaLstIcItemInfoQueryAPIResponse 从 sync.Pool 获取 AlibabaLstIcItemInfoQueryAPIResponse

func (*AlibabaLstIcItemInfoQueryAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaLstIcItemInfoQueryAPIResponseModel added in v1.2.0

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

AlibabaLstIcItemInfoQueryAPIResponseModel is 商品信息查询 成功返回结果

func (*AlibabaLstIcItemInfoQueryAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type LstItemListParam

type LstItemListParam struct {
	// 商品类型列表 normal:通常商品 gift:赠品
	ItemTypeList []string `json:"item_type_list,omitempty" xml:"item_type_list>string,omitempty"`
	// 货号列表
	CargoNumberList []string `json:"cargo_number_list,omitempty" xml:"cargo_number_list>string,omitempty"`
	// 商品状态列表: cancel:撤销 no_pass_audit:审核不通过 on_sale:上架销售中 un_sale_waiting_audit:下架待审核 waiting_audit:待审核 waiting_choose:审核通过,待上架
	StatusList []string `json:"status_list,omitempty" xml:"status_list>string,omitempty"`
	// 商品ID列表
	ItemIdList []int64 `json:"item_id_list,omitempty" xml:"item_id_list>int64,omitempty"`
	// 商品创建时间-开始
	GmtCreateStart string `json:"gmt_create_start,omitempty" xml:"gmt_create_start,omitempty"`
	// 最近上架时间-开始
	GmtOnSaleStart string `json:"gmt_on_sale_start,omitempty" xml:"gmt_on_sale_start,omitempty"`
	// 商品修改时间-结束
	GmtModifiedEnd string `json:"gmt_modified_end,omitempty" xml:"gmt_modified_end,omitempty"`
	// 商品修改时间-开始
	GmtModifiedStart string `json:"gmt_modified_start,omitempty" xml:"gmt_modified_start,omitempty"`
	// 最近上架时间-结束
	GmtOnSaleEnd string `json:"gmt_on_sale_end,omitempty" xml:"gmt_on_sale_end,omitempty"`
	// 商品创建时间-结束
	GmtCreateEnd string `json:"gmt_create_end,omitempty" xml:"gmt_create_end,omitempty"`
	// 返回列表结果集每页条数。取值范围:大于零的整数;最大值:50;
	Size int64 `json:"size,omitempty" xml:"size,omitempty"`
	// 页码。取值范围:大于零的整数;默认值为1,即返回第一页数据。
	Page int64 `json:"page,omitempty" xml:"page,omitempty"`
}

LstItemListParam 结构体

func GetLstItemListParam added in v1.3.4

func GetLstItemListParam() *LstItemListParam

GetLstItemListParam() 从对象池中获取LstItemListParam

type PagedResultDto

type PagedResultDto struct {
	// 商品集合
	ContentList []TopLstItemDto `json:"content_list,omitempty" xml:"content_list>top_lst_item_dto,omitempty"`
	// 失败原因
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 失败code
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 查询总数
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
	// 每页条数
	Size int64 `json:"size,omitempty" xml:"size,omitempty"`
	// 当前页码
	Page int64 `json:"page,omitempty" xml:"page,omitempty"`
	// 返回成功与否
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

PagedResultDto 结构体

func GetPagedResultDto added in v1.3.4

func GetPagedResultDto() *PagedResultDto

GetPagedResultDto() 从对象池中获取PagedResultDto

type Stock

type Stock struct {
	// 仓库编码
	WarehouseCode string `json:"warehouse_code,omitempty" xml:"warehouse_code,omitempty"`
	// 仓库名称
	WarehouseName string `json:"warehouse_name,omitempty" xml:"warehouse_name,omitempty"`
	// 可售库存数量
	StockAmount int64 `json:"stock_amount,omitempty" xml:"stock_amount,omitempty"`
}

Stock 结构体

func GetStock added in v1.3.4

func GetStock() *Stock

GetStock() 从对象池中获取Stock

type TopLstItemDto

type TopLstItemDto struct {
	// 条码列表
	BarCodeList []string `json:"bar_code_list,omitempty" xml:"bar_code_list>string,omitempty"`
	// 图片列表
	ImgList []string `json:"img_list,omitempty" xml:"img_list>string,omitempty"`
	// 库存集合
	AvailableStockList []Stock `json:"available_stock_list,omitempty" xml:"available_stock_list>stock,omitempty"`
	// 商品类型(售卖属性) normal:通常品 gift:赠品(比如买a送a,买a送b,送的商品就是赠品
	ItemType string `json:"item_type,omitempty" xml:"item_type,omitempty"`
	// 品牌名
	BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"`
	// 单品类型(单品自身属性) normal:普通品(可以售卖) combine:组合品(作为组套商品进行售卖) zengpin:赠品(非标品,只能作为赠品,不能上架售卖) mixed:混箱品
	DataType string `json:"data_type,omitempty" xml:"data_type,omitempty"`
	// 单品编码
	CspuId string `json:"cspu_id,omitempty" xml:"cspu_id,omitempty"`
	// 商家货号/商家商品编码
	CargoNumber string `json:"cargo_number,omitempty" xml:"cargo_number,omitempty"`
	// 单位
	Unit string `json:"unit,omitempty" xml:"unit,omitempty"`
	// 商品修改时间
	ModifyTime string `json:"modify_time,omitempty" xml:"modify_time,omitempty"`
	// 最新上架时间
	OnSaleTime string `json:"on_sale_time,omitempty" xml:"on_sale_time,omitempty"`
	// 商品创建时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// cancel:撤销 no_pass_audit:审核不通过 on_sale:上架销售中 un_sale_waiting_audit:下架待审核 waiting_audit:待审核 waiting_choose:审核通过,待上架
	ItemStatus string `json:"item_status,omitempty" xml:"item_status,omitempty"`
	// 二级类目名字
	SecondCategoryName string `json:"second_category_name,omitempty" xml:"second_category_name,omitempty"`
	// 长标题
	FullItemTitle string `json:"full_item_title,omitempty" xml:"full_item_title,omitempty"`
	// 仓库类型supplier:虚仓;cainiao:实仓
	WarehouseType string `json:"warehouse_type,omitempty" xml:"warehouse_type,omitempty"`
	// 二级类目Id
	SecondCategoryId string `json:"second_category_id,omitempty" xml:"second_category_id,omitempty"`
	// 短标题
	ShortItemTitle string `json:"short_item_title,omitempty" xml:"short_item_title,omitempty"`
	// 商品Id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
}

TopLstItemDto 结构体

func GetTopLstItemDto added in v1.3.4

func GetTopLstItemDto() *TopLstItemDto

GetTopLstItemDto() 从对象池中获取TopLstItemDto

Jump to

Keyboard shortcuts

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