gameact

package
v1.3.3 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 gameact 包含游戏激励平台API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityVo added in v1.2.7

type ActivityVo struct {
	// 奖项列表
	Awards []AwardVo `json:"awards,omitempty" xml:"awards>award_vo,omitempty"`
	// 活动连接
	ActivityUrl string `json:"activity_url,omitempty" xml:"activity_url,omitempty"`
	// 活动名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 活动描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 运营和cp约定的唯一事件标示
	EventKey string `json:"event_key,omitempty" xml:"event_key,omitempty"`
	// 活动id
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 1970年到现在的毫秒数
	StartTime int64 `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 1970年距离现在的毫秒数
	EndTime int64 `json:"end_time,omitempty" xml:"end_time,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 added in v1.2.7

type AwardVo struct {
	// 活动名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 根据类型展示不同的名称
	TypeName string `json:"type_name,omitempty" xml:"type_name,omitempty"`
	// 发奖单位
	Unit string `json:"unit,omitempty" xml:"unit,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"`
	// 奖品id
	AwardId int64 `json:"award_id,omitempty" xml:"award_id,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"`
	// 数量
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 单位为分
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
	// 分组编码
	GroupCode int64 `json:"group_code,omitempty" xml:"group_code,omitempty"`
}

AwardVo 结构体

type TaobaoDeActivityDeliveryAddrConfirmAPIRequest added in v1.2.0

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

TaobaoDeActivityDeliveryAddrConfirmAPIRequest 用户收件地址确认 API请求 taobao.de.activity.delivery.addr.confirm

用户收件地址确认

func NewTaobaoDeActivityDeliveryAddrConfirmRequest

func NewTaobaoDeActivityDeliveryAddrConfirmRequest() *TaobaoDeActivityDeliveryAddrConfirmAPIRequest

NewTaobaoDeActivityDeliveryAddrConfirmRequest 初始化TaobaoDeActivityDeliveryAddrConfirmAPIRequest对象

func (TaobaoDeActivityDeliveryAddrConfirmAPIRequest) GetAddressSign added in v1.2.0

GetAddressSign AddressSign Getter

func (TaobaoDeActivityDeliveryAddrConfirmAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoDeActivityDeliveryAddrConfirmAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoDeActivityDeliveryAddrConfirmAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoDeActivityDeliveryAddrConfirmAPIRequest) GetSerialNumber added in v1.2.0

GetSerialNumber SerialNumber Getter

func (*TaobaoDeActivityDeliveryAddrConfirmAPIRequest) SetAddressSign added in v1.2.0

func (r *TaobaoDeActivityDeliveryAddrConfirmAPIRequest) SetAddressSign(_addressSign string) error

SetAddressSign is AddressSign Setter 地址Sign

func (*TaobaoDeActivityDeliveryAddrConfirmAPIRequest) SetSerialNumber added in v1.2.0

func (r *TaobaoDeActivityDeliveryAddrConfirmAPIRequest) SetSerialNumber(_serialNumber string) error

SetSerialNumber is SerialNumber Setter 加密流水号

type TaobaoDeActivityDeliveryAddrConfirmAPIResponse

type TaobaoDeActivityDeliveryAddrConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoDeActivityDeliveryAddrConfirmAPIResponseModel
}

TaobaoDeActivityDeliveryAddrConfirmAPIResponse 用户收件地址确认 API返回值 taobao.de.activity.delivery.addr.confirm

用户收件地址确认

type TaobaoDeActivityDeliveryAddrConfirmAPIResponseModel added in v1.2.0

type TaobaoDeActivityDeliveryAddrConfirmAPIResponseModel 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"`
}

TaobaoDeActivityDeliveryAddrConfirmAPIResponseModel is 用户收件地址确认 成功返回结果

type TaobaoDeActivityInfoGetAPIRequest added in v1.2.0

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

TaobaoDeActivityInfoGetAPIRequest 获取活动信息 API请求 taobao.de.activity.info.get

根据appKey和活动id获取活动

func NewTaobaoDeActivityInfoGetRequest

func NewTaobaoDeActivityInfoGetRequest() *TaobaoDeActivityInfoGetAPIRequest

NewTaobaoDeActivityInfoGetRequest 初始化TaobaoDeActivityInfoGetAPIRequest对象

func (TaobaoDeActivityInfoGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoDeActivityInfoGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoDeActivityInfoGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoDeActivityInfoGetAPIRequest) GetEventKey added in v1.2.0

func (r TaobaoDeActivityInfoGetAPIRequest) GetEventKey() string

GetEventKey EventKey Getter

func (TaobaoDeActivityInfoGetAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoDeActivityInfoGetAPIRequest) SetEventKey added in v1.2.0

func (r *TaobaoDeActivityInfoGetAPIRequest) SetEventKey(_eventKey string) error

SetEventKey is EventKey Setter 事件唯一标识

type TaobaoDeActivityInfoGetAPIResponse

type TaobaoDeActivityInfoGetAPIResponse struct {
	model.CommonResponse
	TaobaoDeActivityInfoGetAPIResponseModel
}

TaobaoDeActivityInfoGetAPIResponse 获取活动信息 API返回值 taobao.de.activity.info.get

根据appKey和活动id获取活动

type TaobaoDeActivityInfoGetAPIResponseModel added in v1.2.0

type TaobaoDeActivityInfoGetAPIResponseModel 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"`
}

TaobaoDeActivityInfoGetAPIResponseModel is 获取活动信息 成功返回结果

type TaobaoDeActivityLuckydrawAPIRequest added in v1.2.0

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

TaobaoDeActivityLuckydrawAPIRequest 抽奖 API请求 taobao.de.activity.luckydraw

用于激励平台对外提供抽奖功能,包括但不限于集分宝、红包、宝点、淘金币、淘彩票等

func NewTaobaoDeActivityLuckydrawRequest

func NewTaobaoDeActivityLuckydrawRequest() *TaobaoDeActivityLuckydrawAPIRequest

NewTaobaoDeActivityLuckydrawRequest 初始化TaobaoDeActivityLuckydrawAPIRequest对象

func (TaobaoDeActivityLuckydrawAPIRequest) GetAccountId added in v1.2.0

GetAccountId AccountId Getter

func (TaobaoDeActivityLuckydrawAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoDeActivityLuckydrawAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoDeActivityLuckydrawAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoDeActivityLuckydrawAPIRequest) GetBehaviorKey added in v1.2.0

func (r TaobaoDeActivityLuckydrawAPIRequest) GetBehaviorKey() string

GetBehaviorKey BehaviorKey Getter

func (TaobaoDeActivityLuckydrawAPIRequest) GetChannel added in v1.2.0

GetChannel Channel Getter

func (TaobaoDeActivityLuckydrawAPIRequest) GetConfirmKey added in v1.2.0

func (r TaobaoDeActivityLuckydrawAPIRequest) GetConfirmKey() string

GetConfirmKey ConfirmKey Getter

func (TaobaoDeActivityLuckydrawAPIRequest) GetDeviceModel added in v1.2.0

func (r TaobaoDeActivityLuckydrawAPIRequest) GetDeviceModel() string

GetDeviceModel DeviceModel Getter

func (TaobaoDeActivityLuckydrawAPIRequest) GetDistribChannel added in v1.2.0

func (r TaobaoDeActivityLuckydrawAPIRequest) GetDistribChannel() string

GetDistribChannel DistribChannel Getter

func (TaobaoDeActivityLuckydrawAPIRequest) GetEventKey added in v1.2.0

GetEventKey EventKey Getter

func (TaobaoDeActivityLuckydrawAPIRequest) GetMachineId added in v1.2.0

GetMachineId MachineId Getter

func (TaobaoDeActivityLuckydrawAPIRequest) GetMarket added in v1.2.0

GetMarket Market Getter

func (TaobaoDeActivityLuckydrawAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoDeActivityLuckydrawAPIRequest) GetSequenceId added in v1.2.0

func (r TaobaoDeActivityLuckydrawAPIRequest) GetSequenceId() int64

GetSequenceId SequenceId Getter

func (TaobaoDeActivityLuckydrawAPIRequest) GetUuid added in v1.2.0

GetUuid Uuid Getter

func (*TaobaoDeActivityLuckydrawAPIRequest) SetAccountId added in v1.2.0

func (r *TaobaoDeActivityLuckydrawAPIRequest) SetAccountId(_accountId string) error

SetAccountId is AccountId Setter 用户的串ID

func (*TaobaoDeActivityLuckydrawAPIRequest) SetBehaviorKey added in v1.2.0

func (r *TaobaoDeActivityLuckydrawAPIRequest) SetBehaviorKey(_behaviorKey string) error

SetBehaviorKey is BehaviorKey Setter 行为Key

func (*TaobaoDeActivityLuckydrawAPIRequest) SetChannel added in v1.2.0

func (r *TaobaoDeActivityLuckydrawAPIRequest) SetChannel(_channel string) error

SetChannel is Channel Setter 渠道

func (*TaobaoDeActivityLuckydrawAPIRequest) SetConfirmKey added in v1.2.0

func (r *TaobaoDeActivityLuckydrawAPIRequest) SetConfirmKey(_confirmKey string) error

SetConfirmKey is ConfirmKey Setter 确认签名key

func (*TaobaoDeActivityLuckydrawAPIRequest) SetDeviceModel added in v1.2.0

func (r *TaobaoDeActivityLuckydrawAPIRequest) SetDeviceModel(_deviceModel string) error

SetDeviceModel is DeviceModel Setter 盒型号

func (*TaobaoDeActivityLuckydrawAPIRequest) SetDistribChannel added in v1.2.0

func (r *TaobaoDeActivityLuckydrawAPIRequest) SetDistribChannel(_distribChannel string) error

SetDistribChannel is DistribChannel Setter 魔盒分发渠道

func (*TaobaoDeActivityLuckydrawAPIRequest) SetEventKey added in v1.2.0

func (r *TaobaoDeActivityLuckydrawAPIRequest) SetEventKey(_eventKey string) error

SetEventKey is EventKey Setter 运营和cp约定的事件唯一标示

func (*TaobaoDeActivityLuckydrawAPIRequest) SetMachineId added in v1.2.0

func (r *TaobaoDeActivityLuckydrawAPIRequest) SetMachineId(_machineId string) error

SetMachineId is MachineId Setter 机器设备号

func (*TaobaoDeActivityLuckydrawAPIRequest) SetMarket added in v1.2.0

func (r *TaobaoDeActivityLuckydrawAPIRequest) SetMarket(_market string) error

SetMarket is Market Setter 使用市场

func (*TaobaoDeActivityLuckydrawAPIRequest) SetSequenceId added in v1.2.0

func (r *TaobaoDeActivityLuckydrawAPIRequest) SetSequenceId(_sequenceId int64) error

SetSequenceId is SequenceId Setter 时间戳

func (*TaobaoDeActivityLuckydrawAPIRequest) SetUuid added in v1.2.0

SetUuid is Uuid Setter 魔盒UUID

type TaobaoDeActivityLuckydrawAPIResponse

type TaobaoDeActivityLuckydrawAPIResponse struct {
	model.CommonResponse
	TaobaoDeActivityLuckydrawAPIResponseModel
}

TaobaoDeActivityLuckydrawAPIResponse 抽奖 API返回值 taobao.de.activity.luckydraw

用于激励平台对外提供抽奖功能,包括但不限于集分宝、红包、宝点、淘金币、淘彩票等

type TaobaoDeActivityLuckydrawAPIResponseModel added in v1.2.0

type TaobaoDeActivityLuckydrawAPIResponseModel 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"`
	// 数娱积分/金牌余额
	TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 可用抽奖次数
	AccessAmount int64 `json:"access_amount,omitempty" xml:"access_amount,omitempty"`
	// 123
	IsLucky bool `json:"is_lucky,omitempty" xml:"is_lucky,omitempty"`
}

TaobaoDeActivityLuckydrawAPIResponseModel is 抽奖 成功返回结果

type TaobaoDeActivityMachineidGetAPIRequest added in v1.2.0

type TaobaoDeActivityMachineidGetAPIRequest struct {
	model.Params
}

TaobaoDeActivityMachineidGetAPIRequest 获取设备号 API请求 taobao.de.activity.machineid.get

获取机器设备id

func NewTaobaoDeActivityMachineidGetRequest

func NewTaobaoDeActivityMachineidGetRequest() *TaobaoDeActivityMachineidGetAPIRequest

NewTaobaoDeActivityMachineidGetRequest 初始化TaobaoDeActivityMachineidGetAPIRequest对象

func (TaobaoDeActivityMachineidGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoDeActivityMachineidGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoDeActivityMachineidGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoDeActivityMachineidGetAPIRequest) GetRawParams added in v1.2.8

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

type TaobaoDeActivityMachineidGetAPIResponse

type TaobaoDeActivityMachineidGetAPIResponse struct {
	model.CommonResponse
	TaobaoDeActivityMachineidGetAPIResponseModel
}

TaobaoDeActivityMachineidGetAPIResponse 获取设备号 API返回值 taobao.de.activity.machineid.get

获取机器设备id

type TaobaoDeActivityMachineidGetAPIResponseModel added in v1.2.0

type TaobaoDeActivityMachineidGetAPIResponseModel 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"`
}

TaobaoDeActivityMachineidGetAPIResponseModel is 获取设备号 成功返回结果

type UpdateDeliveryAddressVo added in v1.2.7

type UpdateDeliveryAddressVo struct {
	// 是否成功更新或确认地址
	UpdateAddress bool `json:"update_address,omitempty" xml:"update_address,omitempty"`
}

UpdateDeliveryAddressVo 结构体

Jump to

Keyboard shortcuts

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