fans

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 4 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

func ReleaseCashPoolVo added in v1.3.4

func ReleaseCashPoolVo(v *CashPoolVo)

ReleaseCashPoolVo 释放CashPoolVo

func ReleaseCreateCashPoolParamDo added in v1.3.4

func ReleaseCreateCashPoolParamDo(v *CreateCashPoolParamDo)

ReleaseCreateCashPoolParamDo 释放CreateCashPoolParamDo

func ReleaseFansResult added in v1.3.4

func ReleaseFansResult(v *FansResult)

ReleaseFansResult 释放FansResult

func ReleasePushMessageParamDo added in v1.3.4

func ReleasePushMessageParamDo(v *PushMessageParamDo)

ReleasePushMessageParamDo 释放PushMessageParamDo

func ReleaseTmallFansArenaPushAPIRequest added in v1.3.4

func ReleaseTmallFansArenaPushAPIRequest(v *TmallFansArenaPushAPIRequest)

ReleaseTmallFansArenaPushAPIRequest 将 TmallFansArenaPushAPIRequest 放入 sync.Pool

func ReleaseTmallFansArenaPushAPIResponse added in v1.3.4

func ReleaseTmallFansArenaPushAPIResponse(v *TmallFansArenaPushAPIResponse)

ReleaseTmallFansArenaPushAPIResponse 将 TmallFansArenaPushAPIResponse 保存到 sync.Pool

func ReleaseTmallFansArenaRecordAPIRequest added in v1.3.4

func ReleaseTmallFansArenaRecordAPIRequest(v *TmallFansArenaRecordAPIRequest)

ReleaseTmallFansArenaRecordAPIRequest 将 TmallFansArenaRecordAPIRequest 放入 sync.Pool

func ReleaseTmallFansArenaRecordAPIResponse added in v1.3.4

func ReleaseTmallFansArenaRecordAPIResponse(v *TmallFansArenaRecordAPIResponse)

ReleaseTmallFansArenaRecordAPIResponse 将 TmallFansArenaRecordAPIResponse 保存到 sync.Pool

func ReleaseTmallFansCashpoolCheckpayAPIRequest added in v1.3.4

func ReleaseTmallFansCashpoolCheckpayAPIRequest(v *TmallFansCashpoolCheckpayAPIRequest)

ReleaseTmallFansCashpoolCheckpayAPIRequest 将 TmallFansCashpoolCheckpayAPIRequest 放入 sync.Pool

func ReleaseTmallFansCashpoolCheckpayAPIResponse added in v1.3.4

func ReleaseTmallFansCashpoolCheckpayAPIResponse(v *TmallFansCashpoolCheckpayAPIResponse)

ReleaseTmallFansCashpoolCheckpayAPIResponse 将 TmallFansCashpoolCheckpayAPIResponse 保存到 sync.Pool

func ReleaseTmallFansCashpoolCreateAPIRequest added in v1.3.4

func ReleaseTmallFansCashpoolCreateAPIRequest(v *TmallFansCashpoolCreateAPIRequest)

ReleaseTmallFansCashpoolCreateAPIRequest 将 TmallFansCashpoolCreateAPIRequest 放入 sync.Pool

func ReleaseTmallFansCashpoolCreateAPIResponse added in v1.3.4

func ReleaseTmallFansCashpoolCreateAPIResponse(v *TmallFansCashpoolCreateAPIResponse)

ReleaseTmallFansCashpoolCreateAPIResponse 将 TmallFansCashpoolCreateAPIResponse 保存到 sync.Pool

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 结构体

func GetCashPoolVo added in v1.3.4

func GetCashPoolVo() *CashPoolVo

GetCashPoolVo() 从对象池中获取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 结构体

func GetCreateCashPoolParamDo added in v1.3.4

func GetCreateCashPoolParamDo() *CreateCashPoolParamDo

GetCreateCashPoolParamDo() 从对象池中获取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 结构体

func GetFansResult added in v1.3.4

func GetFansResult() *FansResult

GetFansResult() 从对象池中获取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 结构体

func GetPushMessageParamDo added in v1.3.4

func GetPushMessageParamDo() *PushMessageParamDo

GetPushMessageParamDo() 从对象池中获取PushMessageParamDo

type TmallFansArenaPushAPIRequest added in v1.2.0

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

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

超级擂台消息推送

func GetTmallFansArenaPushAPIRequest added in v1.3.4

func GetTmallFansArenaPushAPIRequest() *TmallFansArenaPushAPIRequest

GetTmallFansArenaPushRequest 从 sync.Pool 获取 TmallFansArenaPushAPIRequest

func NewTmallFansArenaPushRequest

func NewTmallFansArenaPushRequest() *TmallFansArenaPushAPIRequest

NewTmallFansArenaPushRequest 初始化TmallFansArenaPushAPIRequest对象

func (TmallFansArenaPushAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallFansArenaPushAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallFansArenaPushAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallFansArenaPushAPIRequest) GetPushList added in v1.2.0

GetPushList PushList Getter

func (TmallFansArenaPushAPIRequest) GetRawParams added in v1.2.8

func (r TmallFansArenaPushAPIRequest) GetRawParams() model.Params

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

func (*TmallFansArenaPushAPIRequest) Reset added in v1.3.4

func (r *TmallFansArenaPushAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

func (*TmallFansArenaPushAPIRequest) SetPushList added in v1.2.0

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

SetPushList is PushList Setter 推送列表

type TmallFansArenaPushAPIResponse

type TmallFansArenaPushAPIResponse struct {
	model.CommonResponse
	TmallFansArenaPushAPIResponseModel
}

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

超级擂台消息推送

func GetTmallFansArenaPushAPIResponse added in v1.3.4

func GetTmallFansArenaPushAPIResponse() *TmallFansArenaPushAPIResponse

GetTmallFansArenaPushAPIResponse 从 sync.Pool 获取 TmallFansArenaPushAPIResponse

func (*TmallFansArenaPushAPIResponse) Reset added in v1.3.4

func (m *TmallFansArenaPushAPIResponse) Reset()

Reset 清空结构体

type TmallFansArenaPushAPIResponseModel added in v1.2.0

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 消息推送 成功返回结果

func (*TmallFansArenaPushAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TmallFansArenaRecordAPIRequest added in v1.2.0

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

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

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

func GetTmallFansArenaRecordAPIRequest added in v1.3.4

func GetTmallFansArenaRecordAPIRequest() *TmallFansArenaRecordAPIRequest

GetTmallFansArenaRecordRequest 从 sync.Pool 获取 TmallFansArenaRecordAPIRequest

func NewTmallFansArenaRecordRequest

func NewTmallFansArenaRecordRequest() *TmallFansArenaRecordAPIRequest

NewTmallFansArenaRecordRequest 初始化TmallFansArenaRecordAPIRequest对象

func (TmallFansArenaRecordAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallFansArenaRecordAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallFansArenaRecordAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallFansArenaRecordAPIRequest) GetCashPoolId added in v1.2.0

func (r TmallFansArenaRecordAPIRequest) GetCashPoolId() int64

GetCashPoolId CashPoolId Getter

func (TmallFansArenaRecordAPIRequest) GetMixNick added in v1.2.0

func (r TmallFansArenaRecordAPIRequest) GetMixNick() string

GetMixNick MixNick Getter

func (TmallFansArenaRecordAPIRequest) GetRawParams added in v1.2.8

func (r TmallFansArenaRecordAPIRequest) GetRawParams() model.Params

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

func (TmallFansArenaRecordAPIRequest) GetScore added in v1.2.0

GetScore Score Getter

func (*TmallFansArenaRecordAPIRequest) Reset added in v1.3.4

func (r *TmallFansArenaRecordAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

func (*TmallFansArenaRecordAPIRequest) SetCashPoolId added in v1.2.0

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

SetCashPoolId is CashPoolId Setter 资金池id

func (*TmallFansArenaRecordAPIRequest) SetMixNick added in v1.2.0

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

SetMixNick is MixNick Setter mixnick

func (*TmallFansArenaRecordAPIRequest) SetScore added in v1.2.0

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

SetScore is Score Setter 用户得分

type TmallFansArenaRecordAPIResponse

type TmallFansArenaRecordAPIResponse struct {
	model.CommonResponse
	TmallFansArenaRecordAPIResponseModel
}

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

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

func GetTmallFansArenaRecordAPIResponse added in v1.3.4

func GetTmallFansArenaRecordAPIResponse() *TmallFansArenaRecordAPIResponse

GetTmallFansArenaRecordAPIResponse 从 sync.Pool 获取 TmallFansArenaRecordAPIResponse

func (*TmallFansArenaRecordAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TmallFansArenaRecordAPIResponseModel added in v1.2.0

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 记录完成擂台的用户 成功返回结果

func (*TmallFansArenaRecordAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TmallFansCashpoolCheckpayAPIRequest added in v1.2.0

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

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

检查资金池付款状态

func GetTmallFansCashpoolCheckpayAPIRequest added in v1.3.4

func GetTmallFansCashpoolCheckpayAPIRequest() *TmallFansCashpoolCheckpayAPIRequest

GetTmallFansCashpoolCheckpayRequest 从 sync.Pool 获取 TmallFansCashpoolCheckpayAPIRequest

func NewTmallFansCashpoolCheckpayRequest

func NewTmallFansCashpoolCheckpayRequest() *TmallFansCashpoolCheckpayAPIRequest

NewTmallFansCashpoolCheckpayRequest 初始化TmallFansCashpoolCheckpayAPIRequest对象

func (TmallFansCashpoolCheckpayAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallFansCashpoolCheckpayAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallFansCashpoolCheckpayAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallFansCashpoolCheckpayAPIRequest) GetCashPoolList added in v1.2.0

func (r TmallFansCashpoolCheckpayAPIRequest) GetCashPoolList() []int64

GetCashPoolList CashPoolList Getter

func (TmallFansCashpoolCheckpayAPIRequest) GetRawParams added in v1.2.8

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

func (*TmallFansCashpoolCheckpayAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TmallFansCashpoolCheckpayAPIRequest) SetCashPoolList added in v1.2.0

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

SetCashPoolList is CashPoolList Setter 资金池列表

type TmallFansCashpoolCheckpayAPIResponse

type TmallFansCashpoolCheckpayAPIResponse struct {
	model.CommonResponse
	TmallFansCashpoolCheckpayAPIResponseModel
}

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

检查资金池付款状态

func GetTmallFansCashpoolCheckpayAPIResponse added in v1.3.4

func GetTmallFansCashpoolCheckpayAPIResponse() *TmallFansCashpoolCheckpayAPIResponse

GetTmallFansCashpoolCheckpayAPIResponse 从 sync.Pool 获取 TmallFansCashpoolCheckpayAPIResponse

func (*TmallFansCashpoolCheckpayAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TmallFansCashpoolCheckpayAPIResponseModel added in v1.2.0

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 检查资金池付款状态 成功返回结果

func (*TmallFansCashpoolCheckpayAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TmallFansCashpoolCreateAPIRequest added in v1.2.0

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

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

商家创建资金池接口

func GetTmallFansCashpoolCreateAPIRequest added in v1.3.4

func GetTmallFansCashpoolCreateAPIRequest() *TmallFansCashpoolCreateAPIRequest

GetTmallFansCashpoolCreateRequest 从 sync.Pool 获取 TmallFansCashpoolCreateAPIRequest

func NewTmallFansCashpoolCreateRequest

func NewTmallFansCashpoolCreateRequest() *TmallFansCashpoolCreateAPIRequest

NewTmallFansCashpoolCreateRequest 初始化TmallFansCashpoolCreateAPIRequest对象

func (TmallFansCashpoolCreateAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallFansCashpoolCreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallFansCashpoolCreateAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallFansCashpoolCreateAPIRequest) GetCreateCashPoolParamDo added in v1.2.0

func (r TmallFansCashpoolCreateAPIRequest) GetCreateCashPoolParamDo() *CreateCashPoolParamDo

GetCreateCashPoolParamDo CreateCashPoolParamDo Getter

func (TmallFansCashpoolCreateAPIRequest) GetRawParams added in v1.2.8

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

func (*TmallFansCashpoolCreateAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TmallFansCashpoolCreateAPIRequest) SetCreateCashPoolParamDo added in v1.2.0

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

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

type TmallFansCashpoolCreateAPIResponse

type TmallFansCashpoolCreateAPIResponse struct {
	model.CommonResponse
	TmallFansCashpoolCreateAPIResponseModel
}

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

商家创建资金池接口

func GetTmallFansCashpoolCreateAPIResponse added in v1.3.4

func GetTmallFansCashpoolCreateAPIResponse() *TmallFansCashpoolCreateAPIResponse

GetTmallFansCashpoolCreateAPIResponse 从 sync.Pool 获取 TmallFansCashpoolCreateAPIResponse

func (*TmallFansCashpoolCreateAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TmallFansCashpoolCreateAPIResponseModel added in v1.2.0

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 创建资金池 成功返回结果

func (*TmallFansCashpoolCreateAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

Jump to

Keyboard shortcuts

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