Documentation ¶
Overview ¶
Package beehive 包含淘宝内容API相关结构体
Index ¶
- type TaobaoBeehiveItemCpsUrlAPIRequest
- func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetAdUserId() int64
- func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetApiMethodName() string
- func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetApiParams() url.Values
- func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetBizType() string
- func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetItemId() int64
- func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetPlatform() string
- func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetSourceType() int64
- func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetAdUserId(_adUserId int64) error
- func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetBizType(_bizType string) error
- func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetItemId(_itemId int64) error
- func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetPlatform(_platform string) error
- func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetSourceType(_sourceType int64) error
- type TaobaoBeehiveItemCpsUrlAPIResponse
- type TaobaoBeehiveItemCpsUrlAPIResponseModel
- type TaobaoBeehiveItemCpsUrlResultDo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaobaoBeehiveItemCpsUrlAPIRequest ¶ added in v1.2.0
type TaobaoBeehiveItemCpsUrlAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoBeehiveItemCpsUrlAPIRequest 分佣链接生成接口 API请求 taobao.beehive.item.cps.url
传入包括itemId,accountId,bizType在内的参数,对应参数返回分佣链接
func NewTaobaoBeehiveItemCpsUrlRequest ¶
func NewTaobaoBeehiveItemCpsUrlRequest() *TaobaoBeehiveItemCpsUrlAPIRequest
NewTaobaoBeehiveItemCpsUrlRequest 初始化TaobaoBeehiveItemCpsUrlAPIRequest对象
func (TaobaoBeehiveItemCpsUrlAPIRequest) GetAdUserId ¶ added in v1.2.0
func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetAdUserId() int64
GetAdUserId AdUserId Getter
func (TaobaoBeehiveItemCpsUrlAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoBeehiveItemCpsUrlAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoBeehiveItemCpsUrlAPIRequest) GetBizType ¶ added in v1.2.0
func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetBizType() string
GetBizType BizType Getter
func (TaobaoBeehiveItemCpsUrlAPIRequest) GetItemId ¶ added in v1.2.0
func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetItemId() int64
GetItemId ItemId Getter
func (TaobaoBeehiveItemCpsUrlAPIRequest) GetPlatform ¶ added in v1.2.0
func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetPlatform() string
GetPlatform Platform Getter
func (TaobaoBeehiveItemCpsUrlAPIRequest) GetSourceType ¶ added in v1.2.0
func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetSourceType() int64
GetSourceType SourceType Getter
func (*TaobaoBeehiveItemCpsUrlAPIRequest) SetAdUserId ¶ added in v1.2.0
func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetAdUserId(_adUserId int64) error
SetAdUserId is AdUserId Setter 达人ID
func (*TaobaoBeehiveItemCpsUrlAPIRequest) SetBizType ¶ added in v1.2.0
func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetBizType(_bizType string) error
SetBizType is BizType Setter 业务方,新浪为sina
func (*TaobaoBeehiveItemCpsUrlAPIRequest) SetItemId ¶ added in v1.2.0
func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetItemId(_itemId int64) error
SetItemId is ItemId Setter 商品ID
func (*TaobaoBeehiveItemCpsUrlAPIRequest) SetPlatform ¶ added in v1.2.0
func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetPlatform(_platform string) error
SetPlatform is Platform Setter 平台,一般为手机
func (*TaobaoBeehiveItemCpsUrlAPIRequest) SetSourceType ¶ added in v1.2.0
func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetSourceType(_sourceType int64) error
SetSourceType is SourceType Setter 站外是1
type TaobaoBeehiveItemCpsUrlAPIResponse ¶
type TaobaoBeehiveItemCpsUrlAPIResponse struct { model.CommonResponse TaobaoBeehiveItemCpsUrlAPIResponseModel }
TaobaoBeehiveItemCpsUrlAPIResponse 分佣链接生成接口 API返回值 taobao.beehive.item.cps.url
传入包括itemId,accountId,bizType在内的参数,对应参数返回分佣链接
type TaobaoBeehiveItemCpsUrlAPIResponseModel ¶ added in v1.2.0
type TaobaoBeehiveItemCpsUrlAPIResponseModel struct { XMLName xml.Name `xml:"beehive_item_cps_url_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 结果对象 Result *TaobaoBeehiveItemCpsUrlResultDo `json:"result,omitempty" xml:"result,omitempty"` }
TaobaoBeehiveItemCpsUrlAPIResponseModel is 分佣链接生成接口 成功返回结果
type TaobaoBeehiveItemCpsUrlResultDo ¶
type TaobaoBeehiveItemCpsUrlResultDo struct { // 商品id和对应的url map Model string `json:"model,omitempty" xml:"model,omitempty"` // 错误码 Code string `json:"code,omitempty" xml:"code,omitempty"` // 错误信息 Msg string `json:"msg,omitempty" xml:"msg,omitempty"` // 是否调用成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
TaobaoBeehiveItemCpsUrlResultDo 结构体