caipiao

package
v0.0.0-...-f648943 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

支持营销活动赠送彩票功能实现 auto sdk from taobao ApiMetadata.xml version 20140725 auther: [email protected]

Index

Constants

View Source
const VersionNo = "20140725"

Variables

This section is empty.

Functions

This section is empty.

Types

type CaipiaoGoodsInfoGetRequest

type CaipiaoGoodsInfoGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*CaipiaoGoodsInfoGetRequest) GetResponse

func (r *CaipiaoGoodsInfoGetRequest) GetResponse(accessToken string) (*CaipiaoGoodsInfoGetResponse, []byte, error)

type CaipiaoGoodsInfoGetResponse

type CaipiaoGoodsInfoGetResponse struct {
	Results struct {
		LotteryWangcaiSellerGoodsInfo []*LotteryWangcaiSellerGoodsInfo `json:"lottery_wangcai_seller_goods_info"`
	} `json:"results"`
	TotalResults int `json:"total_results"`
}

type CaipiaoGoodsInfoGetResponseResult

type CaipiaoGoodsInfoGetResponseResult struct {
	Response *CaipiaoGoodsInfoGetResponse `json:"caipiao_goods_info_get_response"`
}

type CaipiaoGoodsInfoInputRequest

type CaipiaoGoodsInfoInputRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*CaipiaoGoodsInfoInputRequest) GetResponse

func (r *CaipiaoGoodsInfoInputRequest) GetResponse(accessToken string) (*CaipiaoGoodsInfoInputResponse, []byte, error)

func (*CaipiaoGoodsInfoInputRequest) SetActEndDate

func (r *CaipiaoGoodsInfoInputRequest) SetActEndDate(value string)

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

func (*CaipiaoGoodsInfoInputRequest) SetActStartDate

func (r *CaipiaoGoodsInfoInputRequest) SetActStartDate(value string)

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

func (*CaipiaoGoodsInfoInputRequest) SetGoodsDesc

func (r *CaipiaoGoodsInfoInputRequest) SetGoodsDesc(value string)

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

func (*CaipiaoGoodsInfoInputRequest) SetGoodsId

func (r *CaipiaoGoodsInfoInputRequest) SetGoodsId(value string)

商品在淘宝的唯一id,不可为空

func (*CaipiaoGoodsInfoInputRequest) SetGoodsImage

func (r *CaipiaoGoodsInfoInputRequest) SetGoodsImage(value string)

商品主图地址

func (*CaipiaoGoodsInfoInputRequest) SetGoodsPrice

func (r *CaipiaoGoodsInfoInputRequest) SetGoodsPrice(value string)

商品价格,保留两位小数,不可为空

func (*CaipiaoGoodsInfoInputRequest) SetGoodsTitle

func (r *CaipiaoGoodsInfoInputRequest) SetGoodsTitle(value string)

商品标题

func (*CaipiaoGoodsInfoInputRequest) SetGoodsType

func (r *CaipiaoGoodsInfoInputRequest) SetGoodsType(value string)

商品类目编号,不可为空

func (*CaipiaoGoodsInfoInputRequest) SetLotteryTypeId

func (r *CaipiaoGoodsInfoInputRequest) SetLotteryTypeId(value string)

彩种id,不可为空

func (*CaipiaoGoodsInfoInputRequest) SetPresentType

func (r *CaipiaoGoodsInfoInputRequest) SetPresentType(value string)

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

type CaipiaoGoodsInfoInputResponse

type CaipiaoGoodsInfoInputResponse struct {
	InputResult bool `json:"input_result"`
}

type CaipiaoGoodsInfoInputResponseResult

type CaipiaoGoodsInfoInputResponseResult struct {
	Response *CaipiaoGoodsInfoInputResponse `json:"caipiao_goods_info_input_response"`
}

type CaipiaoLotterySendRequest

type CaipiaoLotterySendRequest struct {
	open_taobao.TaobaoMethodRequest
}

卖家给买家送彩票,可以指定彩种和注数。赠送成功,返回true; 以下几种情况情况, 返回false: 注数超过100注、卖家未签署支付宝代扣协议、卖家或者买家信息不存在等。

func (*CaipiaoLotterySendRequest) GetResponse

func (r *CaipiaoLotterySendRequest) GetResponse(accessToken string) (*CaipiaoLotterySendResponse, []byte, error)

func (*CaipiaoLotterySendRequest) SetBuyerNumId

func (r *CaipiaoLotterySendRequest) SetBuyerNumId(value string)

彩票接收方淘宝数字ID,不可为空、0和负数。

func (*CaipiaoLotterySendRequest) SetLotteryTypeId

func (r *CaipiaoLotterySendRequest) SetLotteryTypeId(value string)

彩种ID,此彩种ID为彩票系统中的序号。

func (*CaipiaoLotterySendRequest) SetSellerNumId

func (r *CaipiaoLotterySendRequest) SetSellerNumId(value string)

送彩方淘宝数字ID, 不可为空、0和负数。

func (*CaipiaoLotterySendRequest) SetStakeCount

func (r *CaipiaoLotterySendRequest) SetStakeCount(value string)

彩票注数,不可为空、0和负数,最大值为100。

func (*CaipiaoLotterySendRequest) SetSweetyWords

func (r *CaipiaoLotterySendRequest) SetSweetyWords(value string)

送彩票给接收方的赠言。 不能超过50个字符,1个中文字符、1个英文字母及1个数字等均当作一个字符,如果超过,则会截取。

type CaipiaoLotterySendResponse

type CaipiaoLotterySendResponse struct {
	SendResult bool `json:"send_result"`
}

type CaipiaoLotterySendResponseResult

type CaipiaoLotterySendResponseResult struct {
	Response *CaipiaoLotterySendResponse `json:"caipiao_lottery_send_response"`
}

type CaipiaoLotterySendbynickRequest

type CaipiaoLotterySendbynickRequest struct {
	open_taobao.TaobaoMethodRequest
}

卖家使用nick给买家送彩票,可以指定彩种和注数。赠送成功,返回true; 以下几种情况情况, 返回false: 注数超过100注、卖家未签署支付宝代扣协议、卖家或者买家信息不存在等。

func (*CaipiaoLotterySendbynickRequest) GetResponse

func (*CaipiaoLotterySendbynickRequest) SetBuyerNick

func (r *CaipiaoLotterySendbynickRequest) SetBuyerNick(value string)

彩票接收方nick, 不可为空、""。

func (*CaipiaoLotterySendbynickRequest) SetLotteryTypeId

func (r *CaipiaoLotterySendbynickRequest) SetLotteryTypeId(value string)

彩种ID,此彩种ID为彩票系统中的序号。

func (*CaipiaoLotterySendbynickRequest) SetStakeCount

func (r *CaipiaoLotterySendbynickRequest) SetStakeCount(value string)

彩票注数,不可为空、0和负数,最大值为100。

func (*CaipiaoLotterySendbynickRequest) SetSweetyWords

func (r *CaipiaoLotterySendbynickRequest) SetSweetyWords(value string)

送彩票给接收方的赠言。 不能超过20个字符,1个中文字符、1个英文字母及1个数字等均当作一个字符,如果超过,则会截取。

type CaipiaoLotterySendbynickResponse

type CaipiaoLotterySendbynickResponse struct {
	SendResult bool `json:"send_result"`
}

type CaipiaoLotterySendbynickResponseResult

type CaipiaoLotterySendbynickResponseResult struct {
	Response *CaipiaoLotterySendbynickResponse `json:"caipiao_lottery_sendbynick_response"`
}

type CaipiaoLotterytypesGetRequest

type CaipiaoLotterytypesGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*CaipiaoLotterytypesGetRequest) GetResponse

type CaipiaoLotterytypesGetResponse

type CaipiaoLotterytypesGetResponse struct {
	Results struct {
		LotteryType []*LotteryType `json:"lottery_type"`
	} `json:"results"`
	TotalResults int `json:"total_results"`
}

type CaipiaoLotterytypesGetResponseResult

type CaipiaoLotterytypesGetResponseResult struct {
	Response *CaipiaoLotterytypesGetResponse `json:"caipiao_lotterytypes_get_response"`
}

type CaipiaoPresentItemsGetRequest

type CaipiaoPresentItemsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询卖家指定时间范围内的赠送订单列表, 只查询3个月以内的数据

func (*CaipiaoPresentItemsGetRequest) GetResponse

func (*CaipiaoPresentItemsGetRequest) SetEndDate

func (r *CaipiaoPresentItemsGetRequest) SetEndDate(value string)

赠送订单的截止时间,格式为yyyyMMdd, 距当前最长时间间隔是3个月,最近可以取当天的时间。不可为空。要求endDate-startDate必须<=3个月,

func (*CaipiaoPresentItemsGetRequest) SetPageNo

func (r *CaipiaoPresentItemsGetRequest) SetPageNo(value string)

当前页码, 不可为空、0和负数。

func (*CaipiaoPresentItemsGetRequest) SetPageSize

func (r *CaipiaoPresentItemsGetRequest) SetPageSize(value string)

每页的大小,不可为空、0和负数。最大为500,如果超过500,则取默认的500.

func (*CaipiaoPresentItemsGetRequest) SetStartDate

func (r *CaipiaoPresentItemsGetRequest) SetStartDate(value string)

赠送订单的开始时间, 格式为yyyyMMdd, 距当前最长时间间隔是3个月, 最近可以取当天的时间. 不可为空。

type CaipiaoPresentItemsGetResponse

type CaipiaoPresentItemsGetResponse struct {
	Results struct {
		LotteryWangcaiPresent []*LotteryWangcaiPresent `json:"lottery_wangcai_present"`
	} `json:"results"`
	TotalResults int `json:"total_results"`
}

type CaipiaoPresentItemsGetResponseResult

type CaipiaoPresentItemsGetResponseResult struct {
	Response *CaipiaoPresentItemsGetResponse `json:"caipiao_present_items_get_response"`
}

type CaipiaoPresentStatGetRequest

type CaipiaoPresentStatGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*CaipiaoPresentStatGetRequest) GetResponse

func (r *CaipiaoPresentStatGetRequest) GetResponse(accessToken string) (*CaipiaoPresentStatGetResponse, []byte, error)

func (*CaipiaoPresentStatGetRequest) SetDays

func (r *CaipiaoPresentStatGetRequest) SetDays(value string)

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

type CaipiaoPresentStatGetResponse

type CaipiaoPresentStatGetResponse struct {
	Results struct {
		LotteryWangcaiPresentStat []*LotteryWangcaiPresentStat `json:"lottery_wangcai_present_stat"`
	} `json:"results"`
	TotalResults int `json:"total_results"`
}

type CaipiaoPresentStatGetResponseResult

type CaipiaoPresentStatGetResponseResult struct {
	Response *CaipiaoPresentStatGetResponse `json:"caipiao_present_stat_get_response"`
}

type CaipiaoPresentWinItemsGetRequest

type CaipiaoPresentWinItemsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}
获取卖家赠送的中奖订单列表(90天以内),支持两种方式查询:

1.按num查询中奖订单,不支持分页。 2.按date查询中奖订单或所有订单(以searchType区分),支持分页。 注意num与date只要传入一个即可,如果两个参数都传会以date方式查询。

func (*CaipiaoPresentWinItemsGetRequest) GetResponse

func (*CaipiaoPresentWinItemsGetRequest) SetDate

func (r *CaipiaoPresentWinItemsGetRequest) SetDate(value string)

查询日期,格式请严格遵守yyyy-MM-dd

func (*CaipiaoPresentWinItemsGetRequest) SetNum

func (r *CaipiaoPresentWinItemsGetRequest) SetNum(value string)

查询个数,最大值为500.如果为空、0和负数,则取默认值500

func (*CaipiaoPresentWinItemsGetRequest) SetPageNo

func (r *CaipiaoPresentWinItemsGetRequest) SetPageNo(value string)

查询页码,空,零,负的情况默认为1(注意每页数据量为50)

func (*CaipiaoPresentWinItemsGetRequest) SetSearchType

func (r *CaipiaoPresentWinItemsGetRequest) SetSearchType(value string)

0:查询中奖订单,1:查询所有订单,默认为0,注意按列表数量查询只会查询中奖订单。

type CaipiaoPresentWinItemsGetResponse

type CaipiaoPresentWinItemsGetResponse struct {
	Results struct {
		LotteryWangcaiPresent []*LotteryWangcaiPresent `json:"lottery_wangcai_present"`
	} `json:"results"`
	TotalResults int `json:"total_results"`
}

type CaipiaoPresentWinItemsGetResponseResult

type CaipiaoPresentWinItemsGetResponseResult struct {
	Response *CaipiaoPresentWinItemsGetResponse `json:"caipiao_present_win_items_get_response"`
}

type CaipiaoShopInfoInputRequest

type CaipiaoShopInfoInputRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*CaipiaoShopInfoInputRequest) GetResponse

func (r *CaipiaoShopInfoInputRequest) GetResponse(accessToken string) (*CaipiaoShopInfoInputResponse, []byte, error)

func (*CaipiaoShopInfoInputRequest) SetActEndDate

func (r *CaipiaoShopInfoInputRequest) SetActEndDate(value string)

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

func (*CaipiaoShopInfoInputRequest) SetActStartDate

func (r *CaipiaoShopInfoInputRequest) SetActStartDate(value string)

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

func (*CaipiaoShopInfoInputRequest) SetPresentType

func (r *CaipiaoShopInfoInputRequest) SetPresentType(value string)

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

func (*CaipiaoShopInfoInputRequest) SetShopDesc

func (r *CaipiaoShopInfoInputRequest) SetShopDesc(value string)

店铺参加的送彩票活动描述

func (*CaipiaoShopInfoInputRequest) SetShopName

func (r *CaipiaoShopInfoInputRequest) SetShopName(value string)

店铺名称

func (*CaipiaoShopInfoInputRequest) SetShopType

func (r *CaipiaoShopInfoInputRequest) SetShopType(value string)

店铺类目编号,不可为空

type CaipiaoShopInfoInputResponse

type CaipiaoShopInfoInputResponse struct {
	InputResult bool `json:"input_result"`
}

type CaipiaoShopInfoInputResponseResult

type CaipiaoShopInfoInputResponseResult struct {
	Response *CaipiaoShopInfoInputResponse `json:"caipiao_shop_info_input_response"`
}

type CaipiaoSignstatusCheckRequest

type CaipiaoSignstatusCheckRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*CaipiaoSignstatusCheckRequest) GetResponse

type CaipiaoSignstatusCheckResponse

type CaipiaoSignstatusCheckResponse struct {
	Sign    bool   `json:"sign"`
	SignUrl string `json:"sign_url"`
}

type CaipiaoSignstatusCheckResponseResult

type CaipiaoSignstatusCheckResponseResult struct {
	Response *CaipiaoSignstatusCheckResponse `json:"caipiao_signstatus_check_response"`
}

type LotteryType

type LotteryType struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

淘宝彩票彩种信息描述

type LotteryWangcaiPresent

type LotteryWangcaiPresent struct {
	AppName     string `json:"app_name"`
	LotteryName string `json:"lottery_name"`
	PresentDate string `json:"present_date"`
	PresentId   int    `json:"present_id"`
	StakeCount  int    `json:"stake_count"`
	Status      int    `json:"status"`
	StatusDesc  string `json:"status_desc"`
	SweetyWords string `json:"sweety_words"`
	UserNick    string `json:"user_nick"`
	UserNumId   int    `json:"user_num_id"`
	WinFee      int    `json:"win_fee"`
}

旺彩赠送DO

type LotteryWangcaiPresentStat

type LotteryWangcaiPresentStat struct {
	DateId       int `json:"date_id"`
	PresentFee   int `json:"present_fee"`
	PresentStake int `json:"present_stake"`
	PresentUser  int `json:"present_user"`
	SellerId     int `json:"seller_id"`
}

彩票赠送的统计数据DO

type LotteryWangcaiSellerGoodsInfo

type LotteryWangcaiSellerGoodsInfo struct {
	ActBeginTime  string `json:"act_begin_time"`
	ActEndTime    string `json:"act_end_time"`
	GoodsId       int    `json:"goods_id"`
	LotteryTypeId int    `json:"lottery_type_id"`
	PresentType   int    `json:"present_type"`
}

卖家商品信息

Jump to

Keyboard shortcuts

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