fans

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

互动吧API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CashPoolVo

type CashPoolVo struct {
	// 付款url
	PayUrl string `json:"pay_url,omitempty" xml:"pay_url,omitempty"`
	// 奖金池id
	CashPoolId int64 `json:"cash_pool_id,omitempty" xml:"cash_pool_id,omitempty"`
}

CashPoolVo

type CreateCashPoolParamDo

type CreateCashPoolParamDo struct {
	// 红包使用开始时间
	UseEndTime string `json:"use_end_time,omitempty" xml:"use_end_time,omitempty"`
	// 红包使用结束时间
	UseStartTime string `json:"use_start_time,omitempty" xml:"use_start_time,omitempty"`
	// 奖金池总额度
	CashValue int64 `json:"cash_value,omitempty" xml:"cash_value,omitempty"`
	// 奖金池标题
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// 奖金池描述
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 活动id
	ActivityId string `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 活动url
	ActivityUrl string `json:"activity_url,omitempty" xml:"activity_url,omitempty"`
	// 开奖时间
	DrawTime string `json:"draw_time,omitempty" xml:"draw_time,omitempty"`
	// 活动开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 活动结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 开始答题时间
	BeginQaTime string `json:"begin_qa_time,omitempty" xml:"begin_qa_time,omitempty"`
}

CreateCashPoolParamDo

type FansResult

type FansResult struct {
	// 推送成功列表
	DataList []bool `json:"data_list,omitempty" xml:"data_list>bool,omitempty"`
	// 无意义
	TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"`
	// 调用成功失败
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 失败message
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 失败错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 返回data
	Data *CashPoolVo `json:"data,omitempty" xml:"data,omitempty"`
}

FansResult

type PushMessageParamDo

type PushMessageParamDo struct {
	// 活动id
	ActivityId string `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 品牌名
	BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"`
	// 消息类型
	MessageType string `json:"message_type,omitempty" xml:"message_type,omitempty"`
	// mixnick
	MixNick string `json:"mix_nick,omitempty" xml:"mix_nick,omitempty"`
}

PushMessageParamDo

type TmallFansArenaPushAPIResponse

type TmallFansArenaPushAPIResponse struct {
	model.CommonResponse
	TmallFansArenaPushResponse
}

消息推送 API返回值 tmall.fans.arena.push

超级擂台消息推送

type TmallFansArenaPushRequest

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

消息推送 API请求 tmall.fans.arena.push

超级擂台消息推送

func NewTmallFansArenaPushRequest

func NewTmallFansArenaPushRequest() *TmallFansArenaPushRequest

初始化TmallFansArenaPushRequest对象

func (TmallFansArenaPushRequest) GetApiMethodName

func (r TmallFansArenaPushRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallFansArenaPushRequest) GetApiParams

func (r TmallFansArenaPushRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallFansArenaPushRequest) GetPushList

PushList Getter

func (*TmallFansArenaPushRequest) SetPushList

func (r *TmallFansArenaPushRequest) SetPushList(pushList []PushMessageParamDo) error

PushList Setter 推送列表

type TmallFansArenaPushResponse

type TmallFansArenaPushResponse struct {
	XMLName xml.Name `xml:"tmall_fans_arena_push_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回对象
	Result *FansResult `json:"result,omitempty" xml:"result,omitempty"`
}

消息推送 成功返回结果

type TmallFansArenaRecordAPIResponse

type TmallFansArenaRecordAPIResponse struct {
	model.CommonResponse
	TmallFansArenaRecordResponse
}

记录完成擂台的用户 API返回值 tmall.fans.arena.record

记录完成擂台的用户和完成分数

type TmallFansArenaRecordRequest

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

记录完成擂台的用户 API请求 tmall.fans.arena.record

记录完成擂台的用户和完成分数

func NewTmallFansArenaRecordRequest

func NewTmallFansArenaRecordRequest() *TmallFansArenaRecordRequest

初始化TmallFansArenaRecordRequest对象

func (TmallFansArenaRecordRequest) GetApiMethodName

func (r TmallFansArenaRecordRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallFansArenaRecordRequest) GetApiParams

func (r TmallFansArenaRecordRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallFansArenaRecordRequest) GetCashPoolId

func (r TmallFansArenaRecordRequest) GetCashPoolId() int64

CashPoolId Getter

func (TmallFansArenaRecordRequest) GetMixNick

func (r TmallFansArenaRecordRequest) GetMixNick() string

MixNick Getter

func (TmallFansArenaRecordRequest) GetScore

func (r TmallFansArenaRecordRequest) GetScore() int64

Score Getter

func (*TmallFansArenaRecordRequest) SetCashPoolId

func (r *TmallFansArenaRecordRequest) SetCashPoolId(cashPoolId int64) error

CashPoolId Setter 资金池id

func (*TmallFansArenaRecordRequest) SetMixNick

func (r *TmallFansArenaRecordRequest) SetMixNick(mixNick string) error

MixNick Setter mixnick

func (*TmallFansArenaRecordRequest) SetScore

func (r *TmallFansArenaRecordRequest) SetScore(score int64) error

Score Setter 用户得分

type TmallFansArenaRecordResponse

type TmallFansArenaRecordResponse struct {
	XMLName xml.Name `xml:"tmall_fans_arena_record_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回对象
	FansResult *FansResult `json:"fans_result,omitempty" xml:"fans_result,omitempty"`
}

记录完成擂台的用户 成功返回结果

type TmallFansCashpoolCheckpayAPIResponse

type TmallFansCashpoolCheckpayAPIResponse struct {
	model.CommonResponse
	TmallFansCashpoolCheckpayResponse
}

检查资金池付款状态 API返回值 tmall.fans.cashpool.checkpay

检查资金池付款状态

type TmallFansCashpoolCheckpayRequest

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

检查资金池付款状态 API请求 tmall.fans.cashpool.checkpay

检查资金池付款状态

func NewTmallFansCashpoolCheckpayRequest

func NewTmallFansCashpoolCheckpayRequest() *TmallFansCashpoolCheckpayRequest

初始化TmallFansCashpoolCheckpayRequest对象

func (TmallFansCashpoolCheckpayRequest) GetApiMethodName

func (r TmallFansCashpoolCheckpayRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallFansCashpoolCheckpayRequest) GetApiParams

func (r TmallFansCashpoolCheckpayRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallFansCashpoolCheckpayRequest) GetCashPoolList

func (r TmallFansCashpoolCheckpayRequest) GetCashPoolList() []int64

CashPoolList Getter

func (*TmallFansCashpoolCheckpayRequest) SetCashPoolList

func (r *TmallFansCashpoolCheckpayRequest) SetCashPoolList(cashPoolList []int64) error

CashPoolList Setter 资金池列表

type TmallFansCashpoolCheckpayResponse

type TmallFansCashpoolCheckpayResponse struct {
	XMLName xml.Name `xml:"tmall_fans_cashpool_checkpay_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值
	FansResult *FansResult `json:"fans_result,omitempty" xml:"fans_result,omitempty"`
}

检查资金池付款状态 成功返回结果

type TmallFansCashpoolCreateAPIResponse

type TmallFansCashpoolCreateAPIResponse struct {
	model.CommonResponse
	TmallFansCashpoolCreateResponse
}

创建资金池 API返回值 tmall.fans.cashpool.create

商家创建资金池接口

type TmallFansCashpoolCreateRequest

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

创建资金池 API请求 tmall.fans.cashpool.create

商家创建资金池接口

func NewTmallFansCashpoolCreateRequest

func NewTmallFansCashpoolCreateRequest() *TmallFansCashpoolCreateRequest

初始化TmallFansCashpoolCreateRequest对象

func (TmallFansCashpoolCreateRequest) GetApiMethodName

func (r TmallFansCashpoolCreateRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallFansCashpoolCreateRequest) GetApiParams

func (r TmallFansCashpoolCreateRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallFansCashpoolCreateRequest) GetCreateCashPoolParamDo

func (r TmallFansCashpoolCreateRequest) GetCreateCashPoolParamDo() *CreateCashPoolParamDo

CreateCashPoolParamDo Getter

func (*TmallFansCashpoolCreateRequest) SetCreateCashPoolParamDo

func (r *TmallFansCashpoolCreateRequest) SetCreateCashPoolParamDo(createCashPoolParamDo *CreateCashPoolParamDo) error

CreateCashPoolParamDo Setter 创建资奖池输入对象

type TmallFansCashpoolCreateResponse

type TmallFansCashpoolCreateResponse struct {
	XMLName xml.Name `xml:"tmall_fans_cashpool_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回对象
	FansResult *FansResult `json:"fans_result,omitempty" xml:"fans_result,omitempty"`
}

创建资金池 成功返回结果

Jump to

Keyboard shortcuts

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