fans

package
v1.3.2 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 fans 包含互动吧API相关结构体

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

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"`
	// 奖金池标题
	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"`
	// 奖金池总额度
	CashValue int64 `json:"cash_value,omitempty" xml:"cash_value,omitempty"`
}

CreateCashPoolParamDo 结构体

type FansResult

type FansResult struct {
	// 推送成功列表
	DataList []bool `json:"data_list,omitempty" xml:"data_list>bool,omitempty"`
	// 失败message
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 失败错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 无意义
	TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"`
	// 返回data
	Data *CashPoolVo `json:"data,omitempty" xml:"data,omitempty"`
	// 调用成功失败
	Success bool `json:"success,omitempty" xml:"success,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 TmallfansarenapushAPIRequest added in v1.3.1

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

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

超级擂台消息推送

func NewTmallfansarenapushRequest added in v1.3.1

func NewTmallfansarenapushRequest() *TmallfansarenapushAPIRequest

NewTmallfansarenapushRequest 初始化TmallfansarenapushAPIRequest对象

func (TmallfansarenapushAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallfansarenapushAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallfansarenapushAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallfansarenapushAPIRequest) GetPushList added in v1.3.1

GetPushList PushList Getter

func (TmallfansarenapushAPIRequest) GetRawParams added in v1.3.1

func (r TmallfansarenapushAPIRequest) GetRawParams() model.Params

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

func (*TmallfansarenapushAPIRequest) SetPushList added in v1.3.1

func (r *TmallfansarenapushAPIRequest) SetPushList(_pushList []PushMessageParamDo) error

SetPushList is PushList Setter 推送列表

type TmallfansarenapushAPIResponse added in v1.3.1

type TmallfansarenapushAPIResponse struct {
	model.CommonResponse
	TmallfansarenapushAPIResponseModel
}

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

超级擂台消息推送

type TmallfansarenapushAPIResponseModel added in v1.3.1

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

TmallfansarenapushAPIResponseModel is 消息推送 成功返回结果

type TmallfansarenarecordAPIRequest added in v1.3.1

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

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

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

func NewTmallfansarenarecordRequest added in v1.3.1

func NewTmallfansarenarecordRequest() *TmallfansarenarecordAPIRequest

NewTmallfansarenarecordRequest 初始化TmallfansarenarecordAPIRequest对象

func (TmallfansarenarecordAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallfansarenarecordAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallfansarenarecordAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallfansarenarecordAPIRequest) GetCashPoolId added in v1.3.1

func (r TmallfansarenarecordAPIRequest) GetCashPoolId() int64

GetCashPoolId CashPoolId Getter

func (TmallfansarenarecordAPIRequest) GetMixNick added in v1.3.1

func (r TmallfansarenarecordAPIRequest) GetMixNick() string

GetMixNick MixNick Getter

func (TmallfansarenarecordAPIRequest) GetRawParams added in v1.3.1

func (r TmallfansarenarecordAPIRequest) GetRawParams() model.Params

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

func (TmallfansarenarecordAPIRequest) GetScore added in v1.3.1

GetScore Score Getter

func (*TmallfansarenarecordAPIRequest) SetCashPoolId added in v1.3.1

func (r *TmallfansarenarecordAPIRequest) SetCashPoolId(_cashPoolId int64) error

SetCashPoolId is CashPoolId Setter 资金池id

func (*TmallfansarenarecordAPIRequest) SetMixNick added in v1.3.1

func (r *TmallfansarenarecordAPIRequest) SetMixNick(_mixNick string) error

SetMixNick is MixNick Setter mixnick

func (*TmallfansarenarecordAPIRequest) SetScore added in v1.3.1

func (r *TmallfansarenarecordAPIRequest) SetScore(_score int64) error

SetScore is Score Setter 用户得分

type TmallfansarenarecordAPIResponse added in v1.3.1

type TmallfansarenarecordAPIResponse struct {
	model.CommonResponse
	TmallfansarenarecordAPIResponseModel
}

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

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

type TmallfansarenarecordAPIResponseModel added in v1.3.1

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

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

type TmallfanscashpoolcheckpayAPIRequest added in v1.3.1

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

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

检查资金池付款状态

func NewTmallfanscashpoolcheckpayRequest added in v1.3.1

func NewTmallfanscashpoolcheckpayRequest() *TmallfanscashpoolcheckpayAPIRequest

NewTmallfanscashpoolcheckpayRequest 初始化TmallfanscashpoolcheckpayAPIRequest对象

func (TmallfanscashpoolcheckpayAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallfanscashpoolcheckpayAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallfanscashpoolcheckpayAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallfanscashpoolcheckpayAPIRequest) GetCashPoolList added in v1.3.1

func (r TmallfanscashpoolcheckpayAPIRequest) GetCashPoolList() []int64

GetCashPoolList CashPoolList Getter

func (TmallfanscashpoolcheckpayAPIRequest) GetRawParams added in v1.3.1

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

func (*TmallfanscashpoolcheckpayAPIRequest) SetCashPoolList added in v1.3.1

func (r *TmallfanscashpoolcheckpayAPIRequest) SetCashPoolList(_cashPoolList []int64) error

SetCashPoolList is CashPoolList Setter 资金池列表

type TmallfanscashpoolcheckpayAPIResponse added in v1.3.1

type TmallfanscashpoolcheckpayAPIResponse struct {
	model.CommonResponse
	TmallfanscashpoolcheckpayAPIResponseModel
}

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

检查资金池付款状态

type TmallfanscashpoolcheckpayAPIResponseModel added in v1.3.1

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

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

type TmallfanscashpoolcreateAPIRequest added in v1.3.1

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

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

商家创建资金池接口

func NewTmallfanscashpoolcreateRequest added in v1.3.1

func NewTmallfanscashpoolcreateRequest() *TmallfanscashpoolcreateAPIRequest

NewTmallfanscashpoolcreateRequest 初始化TmallfanscashpoolcreateAPIRequest对象

func (TmallfanscashpoolcreateAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallfanscashpoolcreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallfanscashpoolcreateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallfanscashpoolcreateAPIRequest) GetCreateCashPoolParamDo added in v1.3.1

func (r TmallfanscashpoolcreateAPIRequest) GetCreateCashPoolParamDo() *CreateCashPoolParamDo

GetCreateCashPoolParamDo CreateCashPoolParamDo Getter

func (TmallfanscashpoolcreateAPIRequest) GetRawParams added in v1.3.1

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

func (*TmallfanscashpoolcreateAPIRequest) SetCreateCashPoolParamDo added in v1.3.1

func (r *TmallfanscashpoolcreateAPIRequest) SetCreateCashPoolParamDo(_createCashPoolParamDo *CreateCashPoolParamDo) error

SetCreateCashPoolParamDo is CreateCashPoolParamDo Setter 创建资奖池输入对象

type TmallfanscashpoolcreateAPIResponse added in v1.3.1

type TmallfanscashpoolcreateAPIResponse struct {
	model.CommonResponse
	TmallfanscashpoolcreateAPIResponseModel
}

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

商家创建资金池接口

type TmallfanscashpoolcreateAPIResponseModel added in v1.3.1

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

TmallfanscashpoolcreateAPIResponseModel is 创建资金池 成功返回结果

Jump to

Keyboard shortcuts

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