caipiao

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 caipiao 包含彩票API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LotteryType

type LotteryType struct {
	// 彩种名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 彩种ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

LotteryType 结构体

type LotteryWangcaiPresentStat

type LotteryWangcaiPresentStat struct {
	// 当日赠送彩票的注数
	PresentStake int64 `json:"present_stake,omitempty" xml:"present_stake,omitempty"`
	// 日期
	DateId int64 `json:"date_id,omitempty" xml:"date_id,omitempty"`
	// 当日赠送彩票的金额
	PresentFee int64 `json:"present_fee,omitempty" xml:"present_fee,omitempty"`
	// 送彩方的淘宝数字ID
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 当日赠送用户数
	PresentUser int64 `json:"present_user,omitempty" xml:"present_user,omitempty"`
}

LotteryWangcaiPresentStat 结构体

type LotteryWangcaiSellerGoodsInfo

type LotteryWangcaiSellerGoodsInfo struct {
	// 活动结束时间
	ActEndTime string `json:"act_end_time,omitempty" xml:"act_end_time,omitempty"`
	// 活动开始时间
	ActBeginTime string `json:"act_begin_time,omitempty" xml:"act_begin_time,omitempty"`
	// 商品id
	GoodsId int64 `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
	// 赠送类型:0:满就送,1:好评送,2:分享送,3:游戏送,4:收藏送
	PresentType int64 `json:"present_type,omitempty" xml:"present_type,omitempty"`
	// 彩种id
	LotteryTypeId int64 `json:"lottery_type_id,omitempty" xml:"lottery_type_id,omitempty"`
}

LotteryWangcaiSellerGoodsInfo 结构体

type TaobaoCaipiaoGoodsInfoGetAPIRequest added in v1.2.0

type TaobaoCaipiaoGoodsInfoGetAPIRequest struct {
	model.Params
}

TaobaoCaipiaoGoodsInfoGetAPIRequest 根据卖家id与appkey获取商品信息 API请求 taobao.caipiao.goods.info.get

根据卖家id与appkey获取商品信息。

func NewTaobaoCaipiaoGoodsInfoGetRequest

func NewTaobaoCaipiaoGoodsInfoGetRequest() *TaobaoCaipiaoGoodsInfoGetAPIRequest

NewTaobaoCaipiaoGoodsInfoGetRequest 初始化TaobaoCaipiaoGoodsInfoGetAPIRequest对象

func (TaobaoCaipiaoGoodsInfoGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoCaipiaoGoodsInfoGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCaipiaoGoodsInfoGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCaipiaoGoodsInfoGetAPIRequest) GetRawParams added in v1.2.8

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

type TaobaoCaipiaoGoodsInfoGetAPIResponse

type TaobaoCaipiaoGoodsInfoGetAPIResponse struct {
	model.CommonResponse
	TaobaoCaipiaoGoodsInfoGetAPIResponseModel
}

TaobaoCaipiaoGoodsInfoGetAPIResponse 根据卖家id与appkey获取商品信息 API返回值 taobao.caipiao.goods.info.get

根据卖家id与appkey获取商品信息。

type TaobaoCaipiaoGoodsInfoGetAPIResponseModel added in v1.2.0

type TaobaoCaipiaoGoodsInfoGetAPIResponseModel struct {
	XMLName xml.Name `xml:"caipiao_goods_info_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询的结果列表
	Results []LotteryWangcaiSellerGoodsInfo `json:"results,omitempty" xml:"results>lottery_wangcai_seller_goods_info,omitempty"`
	// 返回列表的大小
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaoCaipiaoGoodsInfoGetAPIResponseModel is 根据卖家id与appkey获取商品信息 成功返回结果

type TaobaoCaipiaoGoodsInfoInputAPIRequest added in v1.2.0

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

TaobaoCaipiaoGoodsInfoInputAPIRequest 录入参加送彩票商品信息 API请求 taobao.caipiao.goods.info.input

录入参加送彩票商品信息,如果录入成功,返回true,如果录入失败,返回false,后端会根据商品id与赠送类型(goodsid_presenttype_uk)来决定是新增数据还是修改数据。

func NewTaobaoCaipiaoGoodsInfoInputRequest

func NewTaobaoCaipiaoGoodsInfoInputRequest() *TaobaoCaipiaoGoodsInfoInputAPIRequest

NewTaobaoCaipiaoGoodsInfoInputRequest 初始化TaobaoCaipiaoGoodsInfoInputAPIRequest对象

func (TaobaoCaipiaoGoodsInfoInputAPIRequest) GetActEndDate added in v1.2.0

GetActEndDate ActEndDate Getter

func (TaobaoCaipiaoGoodsInfoInputAPIRequest) GetActStartDate added in v1.2.0

func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetActStartDate() string

GetActStartDate ActStartDate Getter

func (TaobaoCaipiaoGoodsInfoInputAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCaipiaoGoodsInfoInputAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCaipiaoGoodsInfoInputAPIRequest) GetGoodsDesc added in v1.2.0

GetGoodsDesc GoodsDesc Getter

func (TaobaoCaipiaoGoodsInfoInputAPIRequest) GetGoodsId added in v1.2.0

GetGoodsId GoodsId Getter

func (TaobaoCaipiaoGoodsInfoInputAPIRequest) GetGoodsImage added in v1.2.0

GetGoodsImage GoodsImage Getter

func (TaobaoCaipiaoGoodsInfoInputAPIRequest) GetGoodsPrice added in v1.2.0

GetGoodsPrice GoodsPrice Getter

func (TaobaoCaipiaoGoodsInfoInputAPIRequest) GetGoodsTitle added in v1.2.0

GetGoodsTitle GoodsTitle Getter

func (TaobaoCaipiaoGoodsInfoInputAPIRequest) GetGoodsType added in v1.2.0

GetGoodsType GoodsType Getter

func (TaobaoCaipiaoGoodsInfoInputAPIRequest) GetLotteryTypeId added in v1.2.0

func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetLotteryTypeId() int64

GetLotteryTypeId LotteryTypeId Getter

func (TaobaoCaipiaoGoodsInfoInputAPIRequest) GetPresentType added in v1.2.0

func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetPresentType() int64

GetPresentType PresentType Getter

func (TaobaoCaipiaoGoodsInfoInputAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoCaipiaoGoodsInfoInputAPIRequest) SetActEndDate added in v1.2.0

func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetActEndDate(_actEndDate string) error

SetActEndDate is ActEndDate Setter 活动结束时间,格式需严格遵守yyyy-MM-dd HH:mm:ss,不可为空

func (*TaobaoCaipiaoGoodsInfoInputAPIRequest) SetActStartDate added in v1.2.0

func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetActStartDate(_actStartDate string) error

SetActStartDate is ActStartDate Setter 活动开始时间,格式需严格遵守yyyy-MM-dd HH:mm:ss,不可为空

func (*TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsDesc added in v1.2.0

func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsDesc(_goodsDesc string) error

SetGoodsDesc is GoodsDesc Setter 店铺相关商品参加的送彩票活动描述

func (*TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsId added in v1.2.0

func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsId(_goodsId int64) error

SetGoodsId is GoodsId Setter 商品在淘宝的唯一id,不可为空

func (*TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsImage added in v1.2.0

func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsImage(_goodsImage string) error

SetGoodsImage is GoodsImage Setter 商品主图地址

func (*TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsPrice added in v1.2.0

func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsPrice(_goodsPrice float64) error

SetGoodsPrice is GoodsPrice Setter 商品价格,保留两位小数,不可为空

func (*TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsTitle added in v1.2.0

func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsTitle(_goodsTitle string) error

SetGoodsTitle is GoodsTitle Setter 商品标题

func (*TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsType added in v1.2.0

func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsType(_goodsType int64) error

SetGoodsType is GoodsType Setter 商品类目编号,不可为空

func (*TaobaoCaipiaoGoodsInfoInputAPIRequest) SetLotteryTypeId added in v1.2.0

func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetLotteryTypeId(_lotteryTypeId int64) error

SetLotteryTypeId is LotteryTypeId Setter 彩种id,不可为空

func (*TaobaoCaipiaoGoodsInfoInputAPIRequest) SetPresentType added in v1.2.0

func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetPresentType(_presentType int64) error

SetPresentType is PresentType Setter 赠送类型:0-满就送;1-好评送;2-分享送;3-游戏送;4-收藏送,不可为空

type TaobaoCaipiaoGoodsInfoInputAPIResponse

type TaobaoCaipiaoGoodsInfoInputAPIResponse struct {
	model.CommonResponse
	TaobaoCaipiaoGoodsInfoInputAPIResponseModel
}

TaobaoCaipiaoGoodsInfoInputAPIResponse 录入参加送彩票商品信息 API返回值 taobao.caipiao.goods.info.input

录入参加送彩票商品信息,如果录入成功,返回true,如果录入失败,返回false,后端会根据商品id与赠送类型(goodsid_presenttype_uk)来决定是新增数据还是修改数据。

type TaobaoCaipiaoGoodsInfoInputAPIResponseModel added in v1.2.0

type TaobaoCaipiaoGoodsInfoInputAPIResponseModel struct {
	XMLName xml.Name `xml:"caipiao_goods_info_input_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 录入操作是否成功
	InputResult bool `json:"input_result,omitempty" xml:"input_result,omitempty"`
}

TaobaoCaipiaoGoodsInfoInputAPIResponseModel is 录入参加送彩票商品信息 成功返回结果

type TaobaoCaipiaoLotterytypesGetAPIRequest added in v1.2.0

type TaobaoCaipiaoLotterytypesGetAPIRequest struct {
	model.Params
}

TaobaoCaipiaoLotterytypesGetAPIRequest 获取可用的彩种列表 API请求 taobao.caipiao.lotterytypes.get

获取彩票系统支持的可用于赠送的彩种列表

func NewTaobaoCaipiaoLotterytypesGetRequest

func NewTaobaoCaipiaoLotterytypesGetRequest() *TaobaoCaipiaoLotterytypesGetAPIRequest

NewTaobaoCaipiaoLotterytypesGetRequest 初始化TaobaoCaipiaoLotterytypesGetAPIRequest对象

func (TaobaoCaipiaoLotterytypesGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoCaipiaoLotterytypesGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCaipiaoLotterytypesGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCaipiaoLotterytypesGetAPIRequest) GetRawParams added in v1.2.8

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

type TaobaoCaipiaoLotterytypesGetAPIResponse

type TaobaoCaipiaoLotterytypesGetAPIResponse struct {
	model.CommonResponse
	TaobaoCaipiaoLotterytypesGetAPIResponseModel
}

TaobaoCaipiaoLotterytypesGetAPIResponse 获取可用的彩种列表 API返回值 taobao.caipiao.lotterytypes.get

获取彩票系统支持的可用于赠送的彩种列表

type TaobaoCaipiaoLotterytypesGetAPIResponseModel added in v1.2.0

type TaobaoCaipiaoLotterytypesGetAPIResponseModel struct {
	XMLName xml.Name `xml:"caipiao_lotterytypes_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 彩种的数据结构
	Results []LotteryType `json:"results,omitempty" xml:"results>lottery_type,omitempty"`
	// 彩种个数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaoCaipiaoLotterytypesGetAPIResponseModel is 获取可用的彩种列表 成功返回结果

type TaobaoCaipiaoMarketingPutAPIRequest added in v1.2.0

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

TaobaoCaipiaoMarketingPutAPIRequest 创建或修改商家送彩票活动 API请求 taobao.caipiao.marketing.put

卖家通过此接口新增或修改送彩票活动的配置,比如活动时间、活动的条件等。

店铺装修、宝贝详情页的宣导素材示例: https://gw.alicdn.com/tfs/TB1_nOiSXXXXXbgXXXXXXXXXXXX-750-280.png https://gw.alicdn.com/tfs/TB1FZX6SXXXXXXzXFXXXXXXXXXX-790-280.png https://gw.alicdn.com/tfs/TB1z4t8SXXXXXckXpXXXXXXXXXX-750-280.png https://gw.alicdn.com/tfs/TB1BhqgSXXXXXcDXXXXXXXXXXXX-750-280.png https://gw.alicdn.com/tfs/TB1TYt9SXXXXXXAXFXXXXXXXXXX-750-280.png https://gw.alicdn.com/tfs/TB1tzpNSXXXXXacXVXXXXXXXXXX-790-280.png https://gw.alicdn.com/tfs/TB1UXdxSXXXXXXsapXXXXXXXXXX-790-280.png https://gw.alicdn.com/tfs/TB1_gV.SXXXXXbZXpXXXXXXXXXX-790-280.png

func NewTaobaoCaipiaoMarketingPutRequest

func NewTaobaoCaipiaoMarketingPutRequest() *TaobaoCaipiaoMarketingPutAPIRequest

NewTaobaoCaipiaoMarketingPutRequest 初始化TaobaoCaipiaoMarketingPutAPIRequest对象

func (TaobaoCaipiaoMarketingPutAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoCaipiaoMarketingPutAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCaipiaoMarketingPutAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCaipiaoMarketingPutAPIRequest) GetDetail added in v1.2.0

GetDetail Detail Getter

func (TaobaoCaipiaoMarketingPutAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoCaipiaoMarketingPutAPIRequest) SetDetail added in v1.2.0

SetDetail is Detail Setter 活动详情设置

type TaobaoCaipiaoMarketingPutAPIResponseModel added in v1.2.0

type TaobaoCaipiaoMarketingPutAPIResponseModel struct {
	XMLName xml.Name `xml:"caipiao_marketing_put_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 业务操作结果,true成功/false失败
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoCaipiaoMarketingPutAPIResponseModel is 创建或修改商家送彩票活动 成功返回结果

type TaobaoCaipiaoPresentStatGetAPIRequest added in v1.2.0

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

TaobaoCaipiaoPresentStatGetAPIRequest 获取卖家按天统计的彩票赠送数据 API请求 taobao.caipiao.present.stat.get

查询卖家一段时间内按天统计的彩票赠送数据,只支持查询90天以内的数据.

func NewTaobaoCaipiaoPresentStatGetRequest

func NewTaobaoCaipiaoPresentStatGetRequest() *TaobaoCaipiaoPresentStatGetAPIRequest

NewTaobaoCaipiaoPresentStatGetRequest 初始化TaobaoCaipiaoPresentStatGetAPIRequest对象

func (TaobaoCaipiaoPresentStatGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoCaipiaoPresentStatGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCaipiaoPresentStatGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCaipiaoPresentStatGetAPIRequest) GetDays added in v1.2.0

GetDays Days Getter

func (TaobaoCaipiaoPresentStatGetAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoCaipiaoPresentStatGetAPIRequest) SetDays added in v1.2.0

SetDays is Days Setter 指定查询的天数,从当前日期(不包括当前日期)向前推算的天数,可为空。如果为空、0、负数或者大于90天,则设置为默认的90天。举例:当天是20120703, days=2, 则统计数据的日期为:20120702,20120701.

type TaobaoCaipiaoPresentStatGetAPIResponse

type TaobaoCaipiaoPresentStatGetAPIResponse struct {
	model.CommonResponse
	TaobaoCaipiaoPresentStatGetAPIResponseModel
}

TaobaoCaipiaoPresentStatGetAPIResponse 获取卖家按天统计的彩票赠送数据 API返回值 taobao.caipiao.present.stat.get

查询卖家一段时间内按天统计的彩票赠送数据,只支持查询90天以内的数据.

type TaobaoCaipiaoPresentStatGetAPIResponseModel added in v1.2.0

type TaobaoCaipiaoPresentStatGetAPIResponseModel struct {
	XMLName xml.Name `xml:"caipiao_present_stat_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询的结果集
	Results []LotteryWangcaiPresentStat `json:"results,omitempty" xml:"results>lottery_wangcai_present_stat,omitempty"`
	// 查询的结果集大小
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaoCaipiaoPresentStatGetAPIResponseModel is 获取卖家按天统计的彩票赠送数据 成功返回结果

type TaobaoCaipiaoShopInfoInputAPIRequest added in v1.2.0

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

TaobaoCaipiaoShopInfoInputAPIRequest 录入参加送彩票店铺信息 API请求 taobao.caipiao.shop.info.input

录入参加送彩票店铺信息,如果录入成功,返回true,如果录入失败,返回false,后端会根据卖家id与赠送类型(sellerid_presenttype_uk)来决定是新增数据还是修改数据。

func NewTaobaoCaipiaoShopInfoInputRequest

func NewTaobaoCaipiaoShopInfoInputRequest() *TaobaoCaipiaoShopInfoInputAPIRequest

NewTaobaoCaipiaoShopInfoInputRequest 初始化TaobaoCaipiaoShopInfoInputAPIRequest对象

func (TaobaoCaipiaoShopInfoInputAPIRequest) GetActEndDate added in v1.2.0

func (r TaobaoCaipiaoShopInfoInputAPIRequest) GetActEndDate() string

GetActEndDate ActEndDate Getter

func (TaobaoCaipiaoShopInfoInputAPIRequest) GetActStartDate added in v1.2.0

func (r TaobaoCaipiaoShopInfoInputAPIRequest) GetActStartDate() string

GetActStartDate ActStartDate Getter

func (TaobaoCaipiaoShopInfoInputAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoCaipiaoShopInfoInputAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCaipiaoShopInfoInputAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCaipiaoShopInfoInputAPIRequest) GetPresentType added in v1.2.0

func (r TaobaoCaipiaoShopInfoInputAPIRequest) GetPresentType() int64

GetPresentType PresentType Getter

func (TaobaoCaipiaoShopInfoInputAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoCaipiaoShopInfoInputAPIRequest) GetShopDesc added in v1.2.0

GetShopDesc ShopDesc Getter

func (TaobaoCaipiaoShopInfoInputAPIRequest) GetShopName added in v1.2.0

GetShopName ShopName Getter

func (TaobaoCaipiaoShopInfoInputAPIRequest) GetShopType added in v1.2.0

GetShopType ShopType Getter

func (*TaobaoCaipiaoShopInfoInputAPIRequest) SetActEndDate added in v1.2.0

func (r *TaobaoCaipiaoShopInfoInputAPIRequest) SetActEndDate(_actEndDate string) error

SetActEndDate is ActEndDate Setter 活动结束时间,格式需严格遵守yyyy-MM-dd HH:mm:ss,不可为空

func (*TaobaoCaipiaoShopInfoInputAPIRequest) SetActStartDate added in v1.2.0

func (r *TaobaoCaipiaoShopInfoInputAPIRequest) SetActStartDate(_actStartDate string) error

SetActStartDate is ActStartDate Setter 活动开始时间,格式需严格遵守yyyy-MM-dd HH:mm:ss,不可为空

func (*TaobaoCaipiaoShopInfoInputAPIRequest) SetPresentType added in v1.2.0

func (r *TaobaoCaipiaoShopInfoInputAPIRequest) SetPresentType(_presentType int64) error

SetPresentType is PresentType Setter 赠送类型:0-满就送;1-好评送;2-分享送;3-游戏送;4-收藏送,不可为空

func (*TaobaoCaipiaoShopInfoInputAPIRequest) SetShopDesc added in v1.2.0

func (r *TaobaoCaipiaoShopInfoInputAPIRequest) SetShopDesc(_shopDesc string) error

SetShopDesc is ShopDesc Setter 店铺参加的送彩票活动描述

func (*TaobaoCaipiaoShopInfoInputAPIRequest) SetShopName added in v1.2.0

func (r *TaobaoCaipiaoShopInfoInputAPIRequest) SetShopName(_shopName string) error

SetShopName is ShopName Setter 店铺名称

func (*TaobaoCaipiaoShopInfoInputAPIRequest) SetShopType added in v1.2.0

func (r *TaobaoCaipiaoShopInfoInputAPIRequest) SetShopType(_shopType int64) error

SetShopType is ShopType Setter 店铺类目编号,不可为空

type TaobaoCaipiaoShopInfoInputAPIResponse

type TaobaoCaipiaoShopInfoInputAPIResponse struct {
	model.CommonResponse
	TaobaoCaipiaoShopInfoInputAPIResponseModel
}

TaobaoCaipiaoShopInfoInputAPIResponse 录入参加送彩票店铺信息 API返回值 taobao.caipiao.shop.info.input

录入参加送彩票店铺信息,如果录入成功,返回true,如果录入失败,返回false,后端会根据卖家id与赠送类型(sellerid_presenttype_uk)来决定是新增数据还是修改数据。

type TaobaoCaipiaoShopInfoInputAPIResponseModel added in v1.2.0

type TaobaoCaipiaoShopInfoInputAPIResponseModel struct {
	XMLName xml.Name `xml:"caipiao_shop_info_input_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 录入操作是否成功
	InputResult bool `json:"input_result,omitempty" xml:"input_result,omitempty"`
}

TaobaoCaipiaoShopInfoInputAPIResponseModel is 录入参加送彩票店铺信息 成功返回结果

type TaobaoCaipiaoSignstatusCheckAPIRequest added in v1.2.0

type TaobaoCaipiaoSignstatusCheckAPIRequest struct {
	model.Params
}

TaobaoCaipiaoSignstatusCheckAPIRequest 检查用户是否签署支付宝代购协议 API请求 taobao.caipiao.signstatus.check

检查用户是否签署了支付宝代扣协议。如果签署了,返回true; 如果没签署,返回false, 同时返回签署代扣协议的Url。

func NewTaobaoCaipiaoSignstatusCheckRequest

func NewTaobaoCaipiaoSignstatusCheckRequest() *TaobaoCaipiaoSignstatusCheckAPIRequest

NewTaobaoCaipiaoSignstatusCheckRequest 初始化TaobaoCaipiaoSignstatusCheckAPIRequest对象

func (TaobaoCaipiaoSignstatusCheckAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoCaipiaoSignstatusCheckAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCaipiaoSignstatusCheckAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCaipiaoSignstatusCheckAPIRequest) GetRawParams added in v1.2.8

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

type TaobaoCaipiaoSignstatusCheckAPIResponse

type TaobaoCaipiaoSignstatusCheckAPIResponse struct {
	model.CommonResponse
	TaobaoCaipiaoSignstatusCheckAPIResponseModel
}

TaobaoCaipiaoSignstatusCheckAPIResponse 检查用户是否签署支付宝代购协议 API返回值 taobao.caipiao.signstatus.check

检查用户是否签署了支付宝代扣协议。如果签署了,返回true; 如果没签署,返回false, 同时返回签署代扣协议的Url。

type TaobaoCaipiaoSignstatusCheckAPIResponseModel added in v1.2.0

type TaobaoCaipiaoSignstatusCheckAPIResponseModel struct {
	XMLName xml.Name `xml:"caipiao_signstatus_check_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 签署支付宝代扣协议的Url
	SignUrl string `json:"sign_url,omitempty" xml:"sign_url,omitempty"`
	// 是否签署了支付宝代扣协议
	Sign bool `json:"sign,omitempty" xml:"sign,omitempty"`
}

TaobaoCaipiaoSignstatusCheckAPIResponseModel is 检查用户是否签署支付宝代购协议 成功返回结果

type WangcaiMarketingDetail

type WangcaiMarketingDetail struct {
	// 参与活动的商品ID
	Items []int64 `json:"items,omitempty" xml:"items>int64,omitempty"`
	// 活动ID,一个活动可以关联多个送彩票设置
	ActivityId string `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 活动开始时间
	BeginTime string `json:"begin_time,omitempty" xml:"begin_time,omitempty"`
	// 活动结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 活动名称
	ActivityName string `json:"activity_name,omitempty" xml:"activity_name,omitempty"`
	// 外部系统主键
	BizId string `json:"biz_id,omitempty" xml:"biz_id,omitempty"`
	// 赠送的彩种,1双色球/8大乐透
	LotteryTypeId int64 `json:"lottery_type_id,omitempty" xml:"lottery_type_id,omitempty"`
	// 活动的最小金额门槛,以分为单位
	MinAmount int64 `json:"min_amount,omitempty" xml:"min_amount,omitempty"`
	// 赠送的彩票注数
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 活动类型,0全店/1指定商品
	ActivityType int64 `json:"activity_type,omitempty" xml:"activity_type,omitempty"`
}

WangcaiMarketingDetail 结构体

Jump to

Keyboard shortcuts

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