tuike

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package tuike 包含1688推客API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabatuikeoffergetAPIRequest added in v1.3.1

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

AlibabatuikeoffergetAPIRequest 推广商品查询接口 API请求 alibaba.tuike.offer.get

查询1688推客平台卖家推广中的商品信息

func NewAlibabatuikeoffergetRequest added in v1.3.1

func NewAlibabatuikeoffergetRequest() *AlibabatuikeoffergetAPIRequest

NewAlibabatuikeoffergetRequest 初始化AlibabatuikeoffergetAPIRequest对象

func (AlibabatuikeoffergetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabatuikeoffergetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabatuikeoffergetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabatuikeoffergetAPIRequest) GetIsvCode added in v1.3.1

func (r AlibabatuikeoffergetAPIRequest) GetIsvCode() string

GetIsvCode IsvCode Getter

func (AlibabatuikeoffergetAPIRequest) GetQueryString added in v1.3.1

func (r AlibabatuikeoffergetAPIRequest) GetQueryString() string

GetQueryString QueryString Getter

func (AlibabatuikeoffergetAPIRequest) GetRawParams added in v1.3.1

func (r AlibabatuikeoffergetAPIRequest) GetRawParams() model.Params

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

func (*AlibabatuikeoffergetAPIRequest) SetIsvCode added in v1.3.1

func (r *AlibabatuikeoffergetAPIRequest) SetIsvCode(_isvCode string) error

SetIsvCode is IsvCode Setter 标识调用方

func (*AlibabatuikeoffergetAPIRequest) SetQueryString added in v1.3.1

func (r *AlibabatuikeoffergetAPIRequest) SetQueryString(_queryString string) error

SetQueryString is QueryString Setter 搜索查询参数(json)

type AlibabatuikeoffergetAPIResponse added in v1.3.1

type AlibabatuikeoffergetAPIResponse struct {
	model.CommonResponse
	AlibabatuikeoffergetAPIResponseModel
}

AlibabatuikeoffergetAPIResponse 推广商品查询接口 API返回值 alibaba.tuike.offer.get

查询1688推客平台卖家推广中的商品信息

type AlibabatuikeoffergetAPIResponseModel added in v1.3.1

type AlibabatuikeoffergetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_tuike_offer_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果模型
	Result *TaOfferSearchResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabatuikeoffergetAPIResponseModel is 推广商品查询接口 成功返回结果

type AlibabatuikeofferzhitokenAPIRequest added in v1.3.1

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

AlibabatuikeofferzhitokenAPIRequest 生成阿里口令 API请求 alibaba.tuike.offer.zhitoken

推荐链接生产吱口令

func NewAlibabatuikeofferzhitokenRequest added in v1.3.1

func NewAlibabatuikeofferzhitokenRequest() *AlibabatuikeofferzhitokenAPIRequest

NewAlibabatuikeofferzhitokenRequest 初始化AlibabatuikeofferzhitokenAPIRequest对象

func (AlibabatuikeofferzhitokenAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabatuikeofferzhitokenAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabatuikeofferzhitokenAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabatuikeofferzhitokenAPIRequest) GetBizType added in v1.3.1

GetBizType BizType Getter

func (AlibabatuikeofferzhitokenAPIRequest) GetDesc added in v1.3.1

GetDesc Desc Getter

GetIconLink IconLink Getter

func (r AlibabatuikeofferzhitokenAPIRequest) GetLeftBtnLink() string

GetLeftBtnLink LeftBtnLink Getter

func (AlibabatuikeofferzhitokenAPIRequest) GetLeftBtnText added in v1.3.1

func (r AlibabatuikeofferzhitokenAPIRequest) GetLeftBtnText() string

GetLeftBtnText LeftBtnText Getter

func (AlibabatuikeofferzhitokenAPIRequest) GetRawParams added in v1.3.1

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

func (r AlibabatuikeofferzhitokenAPIRequest) GetRightBtnLink() string

GetRightBtnLink RightBtnLink Getter

func (AlibabatuikeofferzhitokenAPIRequest) GetRightBtnText added in v1.3.1

func (r AlibabatuikeofferzhitokenAPIRequest) GetRightBtnText() string

GetRightBtnText RightBtnText Getter

func (AlibabatuikeofferzhitokenAPIRequest) GetSource added in v1.3.1

GetSource Source Getter

func (AlibabatuikeofferzhitokenAPIRequest) GetStartTime added in v1.3.1

func (r AlibabatuikeofferzhitokenAPIRequest) GetStartTime() int64

GetStartTime StartTime Getter

func (AlibabatuikeofferzhitokenAPIRequest) GetTitle added in v1.3.1

GetTitle Title Getter

func (*AlibabatuikeofferzhitokenAPIRequest) SetBizType added in v1.3.1

func (r *AlibabatuikeofferzhitokenAPIRequest) SetBizType(_bizType string) error

SetBizType is BizType Setter SHORT/MEDIUM/LONG

func (*AlibabatuikeofferzhitokenAPIRequest) SetDesc added in v1.3.1

SetDesc is Desc Setter 主要内容

func (r *AlibabatuikeofferzhitokenAPIRequest) SetIconLink(_iconLink string) error

SetIconLink is IconLink Setter 图标链接,可以为空

func (r *AlibabatuikeofferzhitokenAPIRequest) SetLeftBtnLink(_leftBtnLink string) error

SetLeftBtnLink is LeftBtnLink Setter 左按钮链接,可以为空

func (*AlibabatuikeofferzhitokenAPIRequest) SetLeftBtnText added in v1.3.1

func (r *AlibabatuikeofferzhitokenAPIRequest) SetLeftBtnText(_leftBtnText string) error

SetLeftBtnText is LeftBtnText Setter 左按钮文案,可以为空,默认为"取消"

func (r *AlibabatuikeofferzhitokenAPIRequest) SetRightBtnLink(_rightBtnLink string) error

SetRightBtnLink is RightBtnLink Setter 右按钮链接

func (*AlibabatuikeofferzhitokenAPIRequest) SetRightBtnText added in v1.3.1

func (r *AlibabatuikeofferzhitokenAPIRequest) SetRightBtnText(_rightBtnText string) error

SetRightBtnText is RightBtnText Setter 右按钮文案,可以为空,默认为"确定"

func (*AlibabatuikeofferzhitokenAPIRequest) SetSource added in v1.3.1

func (r *AlibabatuikeofferzhitokenAPIRequest) SetSource(_source string) error

SetSource is Source Setter 业务类型

func (*AlibabatuikeofferzhitokenAPIRequest) SetStartTime added in v1.3.1

func (r *AlibabatuikeofferzhitokenAPIRequest) SetStartTime(_startTime int64) error

SetStartTime is StartTime Setter 生效时间,可以为空

func (*AlibabatuikeofferzhitokenAPIRequest) SetTitle added in v1.3.1

func (r *AlibabatuikeofferzhitokenAPIRequest) SetTitle(_title string) error

SetTitle is Title Setter 主标题

type AlibabatuikeofferzhitokenAPIResponse added in v1.3.1

type AlibabatuikeofferzhitokenAPIResponse struct {
	model.CommonResponse
	AlibabatuikeofferzhitokenAPIResponseModel
}

AlibabatuikeofferzhitokenAPIResponse 生成阿里口令 API返回值 alibaba.tuike.offer.zhitoken

推荐链接生产吱口令

type AlibabatuikeofferzhitokenAPIResponseModel added in v1.3.1

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

AlibabatuikeofferzhitokenAPIResponseModel is 生成阿里口令 成功返回结果

type AlibabatuikeofferzhitokenResult added in v1.3.1

type AlibabatuikeofferzhitokenResult struct {
	// headers
	Headers string `json:"headers,omitempty" xml:"headers,omitempty"`
	// model
	Model string `json:"model,omitempty" xml:"model,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// bizExtMap
	BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"`
	// msgInfo
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// httpStatusCode
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabatuikeofferzhitokenResult 结构体

type TaOfferSearchResult

type TaOfferSearchResult struct {
	// 数据
	DataList []string `json:"data_list,omitempty" xml:"data_list>string,omitempty"`
	// 错误信息
	Errors string `json:"errors,omitempty" xml:"errors,omitempty"`
	// 请求状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 查询总记录数
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
	// 当前条数
	Num int64 `json:"num,omitempty" xml:"num,omitempty"`
	// 分页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 当前页
	PageNum int64 `json:"page_num,omitempty" xml:"page_num,omitempty"`
}

TaOfferSearchResult 结构体

Jump to

Keyboard shortcuts

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