Documentation ¶
Index ¶
- type ActivityVO
- type AwardVO
- type TaobaoDeActivityDeliveryAddrConfirmAPIResponse
- type TaobaoDeActivityDeliveryAddrConfirmRequest
- func (r TaobaoDeActivityDeliveryAddrConfirmRequest) GetAddressSign() string
- func (r TaobaoDeActivityDeliveryAddrConfirmRequest) GetApiMethodName() string
- func (r TaobaoDeActivityDeliveryAddrConfirmRequest) GetApiParams() url.Values
- func (r TaobaoDeActivityDeliveryAddrConfirmRequest) GetSerialNumber() string
- func (r *TaobaoDeActivityDeliveryAddrConfirmRequest) SetAddressSign(addressSign string) error
- func (r *TaobaoDeActivityDeliveryAddrConfirmRequest) SetSerialNumber(serialNumber string) error
- type TaobaoDeActivityDeliveryAddrConfirmResponse
- type TaobaoDeActivityInfoGetAPIResponse
- type TaobaoDeActivityInfoGetRequest
- type TaobaoDeActivityInfoGetResponse
- type TaobaoDeActivityLuckydrawAPIResponse
- type TaobaoDeActivityLuckydrawRequest
- func (r TaobaoDeActivityLuckydrawRequest) GetAccountId() string
- func (r TaobaoDeActivityLuckydrawRequest) GetApiMethodName() string
- func (r TaobaoDeActivityLuckydrawRequest) GetApiParams() url.Values
- func (r TaobaoDeActivityLuckydrawRequest) GetBehaviorKey() string
- func (r TaobaoDeActivityLuckydrawRequest) GetChannel() string
- func (r TaobaoDeActivityLuckydrawRequest) GetConfirmKey() string
- func (r TaobaoDeActivityLuckydrawRequest) GetDeviceModel() string
- func (r TaobaoDeActivityLuckydrawRequest) GetDistribChannel() string
- func (r TaobaoDeActivityLuckydrawRequest) GetEventKey() string
- func (r TaobaoDeActivityLuckydrawRequest) GetMachineId() string
- func (r TaobaoDeActivityLuckydrawRequest) GetMarket() string
- func (r TaobaoDeActivityLuckydrawRequest) GetSequenceId() int64
- func (r TaobaoDeActivityLuckydrawRequest) GetUuid() string
- func (r *TaobaoDeActivityLuckydrawRequest) SetAccountId(accountId string) error
- func (r *TaobaoDeActivityLuckydrawRequest) SetBehaviorKey(behaviorKey string) error
- func (r *TaobaoDeActivityLuckydrawRequest) SetChannel(channel string) error
- func (r *TaobaoDeActivityLuckydrawRequest) SetConfirmKey(confirmKey string) error
- func (r *TaobaoDeActivityLuckydrawRequest) SetDeviceModel(deviceModel string) error
- func (r *TaobaoDeActivityLuckydrawRequest) SetDistribChannel(distribChannel string) error
- func (r *TaobaoDeActivityLuckydrawRequest) SetEventKey(eventKey string) error
- func (r *TaobaoDeActivityLuckydrawRequest) SetMachineId(machineId string) error
- func (r *TaobaoDeActivityLuckydrawRequest) SetMarket(market string) error
- func (r *TaobaoDeActivityLuckydrawRequest) SetSequenceId(sequenceId int64) error
- func (r *TaobaoDeActivityLuckydrawRequest) SetUuid(uuid string) error
- type TaobaoDeActivityLuckydrawResponse
- type TaobaoDeActivityMachineidGetAPIResponse
- type TaobaoDeActivityMachineidGetRequest
- type TaobaoDeActivityMachineidGetResponse
- type UpdateDeliveryAddressVO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityVO ¶
type ActivityVO struct { // 活动连接 ActivityUrl string `json:"activity_url,omitempty" xml:"activity_url,omitempty"` // 活动id ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"` // 活动名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 1970年到现在的毫秒数 StartTime int64 `json:"start_time,omitempty" xml:"start_time,omitempty"` // 1970年距离现在的毫秒数 EndTime int64 `json:"end_time,omitempty" xml:"end_time,omitempty"` // 活动描述 Description string `json:"description,omitempty" xml:"description,omitempty"` // 奖项列表 Awards []AwardVO `json:"awards,omitempty" xml:"awards>award_vo,omitempty"` // 运营和cp约定的唯一事件标示 EventKey string `json:"event_key,omitempty" xml:"event_key,omitempty"` // 积分/金牌消耗 ConsumeAmount int64 `json:"consume_amount,omitempty" xml:"consume_amount,omitempty"` // 抽奖类型 LuckyType int64 `json:"lucky_type,omitempty" xml:"lucky_type,omitempty"` // 抽奖渠道 LuckyChannel int64 `json:"lucky_channel,omitempty" xml:"lucky_channel,omitempty"` // 抽奖次数(免费) AccessAmount int64 `json:"access_amount,omitempty" xml:"access_amount,omitempty"` }
ActivityVO
type AwardVO ¶
type AwardVO struct { // 奖品id AwardId int64 `json:"award_id,omitempty" xml:"award_id,omitempty"` // 活动名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 活动id ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"` // 1:集分宝 2:红包 3:彩票 4:宝点 5:淘金币 Type int64 `json:"type,omitempty" xml:"type,omitempty"` // 根据类型展示不同的名称 TypeName string `json:"type_name,omitempty" xml:"type_name,omitempty"` // 数量 Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` // 发奖单位 Unit string `json:"unit,omitempty" xml:"unit,omitempty"` // 单位为分 Price int64 `json:"price,omitempty" xml:"price,omitempty"` // 分组编码 GroupCode int64 `json:"group_code,omitempty" xml:"group_code,omitempty"` // 分组描述 GroupDesc string `json:"group_desc,omitempty" xml:"group_desc,omitempty"` // 简短描述 SimpleDesc string `json:"simple_desc,omitempty" xml:"simple_desc,omitempty"` // 完整描述 FullDesc string `json:"full_desc,omitempty" xml:"full_desc,omitempty"` // 超链文案 HyperlinkDesc string `json:"hyperlink_desc,omitempty" xml:"hyperlink_desc,omitempty"` // 超链url HyperlinkUrl string `json:"hyperlink_url,omitempty" xml:"hyperlink_url,omitempty"` // 加密串,对外流水号 SerialNumber string `json:"serial_number,omitempty" xml:"serial_number,omitempty"` }
AwardVO
type TaobaoDeActivityDeliveryAddrConfirmAPIResponse ¶
type TaobaoDeActivityDeliveryAddrConfirmAPIResponse struct { model.CommonResponse TaobaoDeActivityDeliveryAddrConfirmResponse }
用户收件地址确认 API返回值 taobao.de.activity.delivery.addr.confirm
用户收件地址确认
type TaobaoDeActivityDeliveryAddrConfirmRequest ¶
type TaobaoDeActivityDeliveryAddrConfirmRequest struct { model.Params // contains filtered or unexported fields }
用户收件地址确认 API请求 taobao.de.activity.delivery.addr.confirm
用户收件地址确认
func NewTaobaoDeActivityDeliveryAddrConfirmRequest ¶
func NewTaobaoDeActivityDeliveryAddrConfirmRequest() *TaobaoDeActivityDeliveryAddrConfirmRequest
初始化TaobaoDeActivityDeliveryAddrConfirmRequest对象
func (TaobaoDeActivityDeliveryAddrConfirmRequest) GetAddressSign ¶
func (r TaobaoDeActivityDeliveryAddrConfirmRequest) GetAddressSign() string
AddressSign Getter
func (TaobaoDeActivityDeliveryAddrConfirmRequest) GetApiMethodName ¶
func (r TaobaoDeActivityDeliveryAddrConfirmRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoDeActivityDeliveryAddrConfirmRequest) GetApiParams ¶
func (r TaobaoDeActivityDeliveryAddrConfirmRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoDeActivityDeliveryAddrConfirmRequest) GetSerialNumber ¶
func (r TaobaoDeActivityDeliveryAddrConfirmRequest) GetSerialNumber() string
SerialNumber Getter
func (*TaobaoDeActivityDeliveryAddrConfirmRequest) SetAddressSign ¶
func (r *TaobaoDeActivityDeliveryAddrConfirmRequest) SetAddressSign(addressSign string) error
AddressSign Setter 地址Sign
func (*TaobaoDeActivityDeliveryAddrConfirmRequest) SetSerialNumber ¶
func (r *TaobaoDeActivityDeliveryAddrConfirmRequest) SetSerialNumber(serialNumber string) error
SerialNumber Setter 加密流水号
type TaobaoDeActivityDeliveryAddrConfirmResponse ¶
type TaobaoDeActivityDeliveryAddrConfirmResponse struct { XMLName xml.Name `xml:"de_activity_delivery_addr_confirm_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 更新或确认收件地址 UpdateDeliveryAddressVo *UpdateDeliveryAddressVO `json:"update_delivery_address_vo,omitempty" xml:"update_delivery_address_vo,omitempty"` }
用户收件地址确认 成功返回结果
type TaobaoDeActivityInfoGetAPIResponse ¶
type TaobaoDeActivityInfoGetAPIResponse struct { model.CommonResponse TaobaoDeActivityInfoGetResponse }
获取活动信息 API返回值 taobao.de.activity.info.get
根据appKey和活动id获取活动
type TaobaoDeActivityInfoGetRequest ¶
type TaobaoDeActivityInfoGetRequest struct { model.Params // contains filtered or unexported fields }
获取活动信息 API请求 taobao.de.activity.info.get
根据appKey和活动id获取活动
func NewTaobaoDeActivityInfoGetRequest ¶
func NewTaobaoDeActivityInfoGetRequest() *TaobaoDeActivityInfoGetRequest
初始化TaobaoDeActivityInfoGetRequest对象
func (TaobaoDeActivityInfoGetRequest) GetApiMethodName ¶
func (r TaobaoDeActivityInfoGetRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoDeActivityInfoGetRequest) GetApiParams ¶
func (r TaobaoDeActivityInfoGetRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoDeActivityInfoGetRequest) GetEventKey ¶
func (r TaobaoDeActivityInfoGetRequest) GetEventKey() string
EventKey Getter
func (*TaobaoDeActivityInfoGetRequest) SetEventKey ¶
func (r *TaobaoDeActivityInfoGetRequest) SetEventKey(eventKey string) error
EventKey Setter 事件唯一标识
type TaobaoDeActivityInfoGetResponse ¶
type TaobaoDeActivityInfoGetResponse struct { XMLName xml.Name `xml:"de_activity_info_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回结构 Activities []ActivityVO `json:"activities,omitempty" xml:"activities>activity_vo,omitempty"` }
获取活动信息 成功返回结果
type TaobaoDeActivityLuckydrawAPIResponse ¶
type TaobaoDeActivityLuckydrawAPIResponse struct { model.CommonResponse TaobaoDeActivityLuckydrawResponse }
抽奖 API返回值 taobao.de.activity.luckydraw
用于激励平台对外提供抽奖功能,包括但不限于集分宝、红包、宝点、淘金币、淘彩票等
type TaobaoDeActivityLuckydrawRequest ¶
type TaobaoDeActivityLuckydrawRequest struct { model.Params // contains filtered or unexported fields }
抽奖 API请求 taobao.de.activity.luckydraw
用于激励平台对外提供抽奖功能,包括但不限于集分宝、红包、宝点、淘金币、淘彩票等
func NewTaobaoDeActivityLuckydrawRequest ¶
func NewTaobaoDeActivityLuckydrawRequest() *TaobaoDeActivityLuckydrawRequest
初始化TaobaoDeActivityLuckydrawRequest对象
func (TaobaoDeActivityLuckydrawRequest) GetAccountId ¶
func (r TaobaoDeActivityLuckydrawRequest) GetAccountId() string
AccountId Getter
func (TaobaoDeActivityLuckydrawRequest) GetApiMethodName ¶
func (r TaobaoDeActivityLuckydrawRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoDeActivityLuckydrawRequest) GetApiParams ¶
func (r TaobaoDeActivityLuckydrawRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoDeActivityLuckydrawRequest) GetBehaviorKey ¶
func (r TaobaoDeActivityLuckydrawRequest) GetBehaviorKey() string
BehaviorKey Getter
func (TaobaoDeActivityLuckydrawRequest) GetChannel ¶
func (r TaobaoDeActivityLuckydrawRequest) GetChannel() string
Channel Getter
func (TaobaoDeActivityLuckydrawRequest) GetConfirmKey ¶
func (r TaobaoDeActivityLuckydrawRequest) GetConfirmKey() string
ConfirmKey Getter
func (TaobaoDeActivityLuckydrawRequest) GetDeviceModel ¶
func (r TaobaoDeActivityLuckydrawRequest) GetDeviceModel() string
DeviceModel Getter
func (TaobaoDeActivityLuckydrawRequest) GetDistribChannel ¶
func (r TaobaoDeActivityLuckydrawRequest) GetDistribChannel() string
DistribChannel Getter
func (TaobaoDeActivityLuckydrawRequest) GetEventKey ¶
func (r TaobaoDeActivityLuckydrawRequest) GetEventKey() string
EventKey Getter
func (TaobaoDeActivityLuckydrawRequest) GetMachineId ¶
func (r TaobaoDeActivityLuckydrawRequest) GetMachineId() string
MachineId Getter
func (TaobaoDeActivityLuckydrawRequest) GetMarket ¶
func (r TaobaoDeActivityLuckydrawRequest) GetMarket() string
Market Getter
func (TaobaoDeActivityLuckydrawRequest) GetSequenceId ¶
func (r TaobaoDeActivityLuckydrawRequest) GetSequenceId() int64
SequenceId Getter
func (TaobaoDeActivityLuckydrawRequest) GetUuid ¶
func (r TaobaoDeActivityLuckydrawRequest) GetUuid() string
Uuid Getter
func (*TaobaoDeActivityLuckydrawRequest) SetAccountId ¶
func (r *TaobaoDeActivityLuckydrawRequest) SetAccountId(accountId string) error
AccountId Setter 用户的串ID
func (*TaobaoDeActivityLuckydrawRequest) SetBehaviorKey ¶
func (r *TaobaoDeActivityLuckydrawRequest) SetBehaviorKey(behaviorKey string) error
BehaviorKey Setter 行为Key
func (*TaobaoDeActivityLuckydrawRequest) SetChannel ¶
func (r *TaobaoDeActivityLuckydrawRequest) SetChannel(channel string) error
Channel Setter 渠道
func (*TaobaoDeActivityLuckydrawRequest) SetConfirmKey ¶
func (r *TaobaoDeActivityLuckydrawRequest) SetConfirmKey(confirmKey string) error
ConfirmKey Setter 确认签名key
func (*TaobaoDeActivityLuckydrawRequest) SetDeviceModel ¶
func (r *TaobaoDeActivityLuckydrawRequest) SetDeviceModel(deviceModel string) error
DeviceModel Setter 盒型号
func (*TaobaoDeActivityLuckydrawRequest) SetDistribChannel ¶
func (r *TaobaoDeActivityLuckydrawRequest) SetDistribChannel(distribChannel string) error
DistribChannel Setter 魔盒分发渠道
func (*TaobaoDeActivityLuckydrawRequest) SetEventKey ¶
func (r *TaobaoDeActivityLuckydrawRequest) SetEventKey(eventKey string) error
EventKey Setter 运营和cp约定的事件唯一标示
func (*TaobaoDeActivityLuckydrawRequest) SetMachineId ¶
func (r *TaobaoDeActivityLuckydrawRequest) SetMachineId(machineId string) error
MachineId Setter 机器设备号
func (*TaobaoDeActivityLuckydrawRequest) SetMarket ¶
func (r *TaobaoDeActivityLuckydrawRequest) SetMarket(market string) error
Market Setter 使用市场
func (*TaobaoDeActivityLuckydrawRequest) SetSequenceId ¶
func (r *TaobaoDeActivityLuckydrawRequest) SetSequenceId(sequenceId int64) error
SequenceId Setter 时间戳
func (*TaobaoDeActivityLuckydrawRequest) SetUuid ¶
func (r *TaobaoDeActivityLuckydrawRequest) SetUuid(uuid string) error
Uuid Setter 魔盒UUID
type TaobaoDeActivityLuckydrawResponse ¶
type TaobaoDeActivityLuckydrawResponse struct { XMLName xml.Name `xml:"de_activity_luckydraw_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 中奖奖品 AwardVO *AwardVO `json:"award_v_o,omitempty" xml:"award_v_o,omitempty"` // 123 IsLucky bool `json:"is_lucky,omitempty" xml:"is_lucky,omitempty"` // 数娱积分/金牌余额 TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"` // 可用抽奖次数 AccessAmount int64 `json:"access_amount,omitempty" xml:"access_amount,omitempty"` }
抽奖 成功返回结果
type TaobaoDeActivityMachineidGetAPIResponse ¶
type TaobaoDeActivityMachineidGetAPIResponse struct { model.CommonResponse TaobaoDeActivityMachineidGetResponse }
获取设备号 API返回值 taobao.de.activity.machineid.get
获取机器设备id
type TaobaoDeActivityMachineidGetRequest ¶
获取设备号 API请求 taobao.de.activity.machineid.get
获取机器设备id
func NewTaobaoDeActivityMachineidGetRequest ¶
func NewTaobaoDeActivityMachineidGetRequest() *TaobaoDeActivityMachineidGetRequest
初始化TaobaoDeActivityMachineidGetRequest对象
func (TaobaoDeActivityMachineidGetRequest) GetApiMethodName ¶
func (r TaobaoDeActivityMachineidGetRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoDeActivityMachineidGetRequest) GetApiParams ¶
func (r TaobaoDeActivityMachineidGetRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
type TaobaoDeActivityMachineidGetResponse ¶
type TaobaoDeActivityMachineidGetResponse struct { XMLName xml.Name `xml:"de_activity_machineid_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 机器号 MachineId string `json:"machine_id,omitempty" xml:"machine_id,omitempty"` }
获取设备号 成功返回结果
type UpdateDeliveryAddressVO ¶
type UpdateDeliveryAddressVO struct { // 是否成功更新或确认地址 UpdateAddress bool `json:"update_address,omitempty" xml:"update_address,omitempty"` }
UpdateDeliveryAddressVO
Source Files ¶
- ActivityVO.go
- AwardVO.go
- TaobaoDeActivityDeliveryAddrConfirmRequest.go
- TaobaoDeActivityDeliveryAddrConfirmResponse.go
- TaobaoDeActivityInfoGetRequest.go
- TaobaoDeActivityInfoGetResponse.go
- TaobaoDeActivityLuckydrawRequest.go
- TaobaoDeActivityLuckydrawResponse.go
- TaobaoDeActivityMachineidGetRequest.go
- TaobaoDeActivityMachineidGetResponse.go
- UpdateDeliveryAddressVO.go