tmc

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 tmc 包含消息服务API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseAlibabaLsyMiniappMsgPushAPIRequest added in v1.3.4

func ReleaseAlibabaLsyMiniappMsgPushAPIRequest(v *AlibabaLsyMiniappMsgPushAPIRequest)

ReleaseAlibabaLsyMiniappMsgPushAPIRequest 将 AlibabaLsyMiniappMsgPushAPIRequest 放入 sync.Pool

func ReleaseAlibabaLsyMiniappMsgPushAPIResponse added in v1.3.4

func ReleaseAlibabaLsyMiniappMsgPushAPIResponse(v *AlibabaLsyMiniappMsgPushAPIResponse)

ReleaseAlibabaLsyMiniappMsgPushAPIResponse 将 AlibabaLsyMiniappMsgPushAPIResponse 保存到 sync.Pool

func ReleaseAlipayXiaodaiUserPermitAPIRequest added in v1.3.4

func ReleaseAlipayXiaodaiUserPermitAPIRequest(v *AlipayXiaodaiUserPermitAPIRequest)

ReleaseAlipayXiaodaiUserPermitAPIRequest 将 AlipayXiaodaiUserPermitAPIRequest 放入 sync.Pool

func ReleaseAlipayXiaodaiUserPermitAPIResponse added in v1.3.4

func ReleaseAlipayXiaodaiUserPermitAPIResponse(v *AlipayXiaodaiUserPermitAPIResponse)

ReleaseAlipayXiaodaiUserPermitAPIResponse 将 AlipayXiaodaiUserPermitAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcGroupAddAPIRequest added in v1.3.4

func ReleaseTaobaoTmcGroupAddAPIRequest(v *TaobaoTmcGroupAddAPIRequest)

ReleaseTaobaoTmcGroupAddAPIRequest 将 TaobaoTmcGroupAddAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcGroupAddAPIResponse added in v1.3.4

func ReleaseTaobaoTmcGroupAddAPIResponse(v *TaobaoTmcGroupAddAPIResponse)

ReleaseTaobaoTmcGroupAddAPIResponse 将 TaobaoTmcGroupAddAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcGroupDeleteAPIRequest added in v1.3.4

func ReleaseTaobaoTmcGroupDeleteAPIRequest(v *TaobaoTmcGroupDeleteAPIRequest)

ReleaseTaobaoTmcGroupDeleteAPIRequest 将 TaobaoTmcGroupDeleteAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcGroupDeleteAPIResponse added in v1.3.4

func ReleaseTaobaoTmcGroupDeleteAPIResponse(v *TaobaoTmcGroupDeleteAPIResponse)

ReleaseTaobaoTmcGroupDeleteAPIResponse 将 TaobaoTmcGroupDeleteAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcGroupsGetAPIRequest added in v1.3.4

func ReleaseTaobaoTmcGroupsGetAPIRequest(v *TaobaoTmcGroupsGetAPIRequest)

ReleaseTaobaoTmcGroupsGetAPIRequest 将 TaobaoTmcGroupsGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcGroupsGetAPIResponse added in v1.3.4

func ReleaseTaobaoTmcGroupsGetAPIResponse(v *TaobaoTmcGroupsGetAPIResponse)

ReleaseTaobaoTmcGroupsGetAPIResponse 将 TaobaoTmcGroupsGetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcMessageProduceAPIRequest added in v1.3.4

func ReleaseTaobaoTmcMessageProduceAPIRequest(v *TaobaoTmcMessageProduceAPIRequest)

ReleaseTaobaoTmcMessageProduceAPIRequest 将 TaobaoTmcMessageProduceAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcMessageProduceAPIResponse added in v1.3.4

func ReleaseTaobaoTmcMessageProduceAPIResponse(v *TaobaoTmcMessageProduceAPIResponse)

ReleaseTaobaoTmcMessageProduceAPIResponse 将 TaobaoTmcMessageProduceAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcMessagesConfirmAPIRequest added in v1.3.4

func ReleaseTaobaoTmcMessagesConfirmAPIRequest(v *TaobaoTmcMessagesConfirmAPIRequest)

ReleaseTaobaoTmcMessagesConfirmAPIRequest 将 TaobaoTmcMessagesConfirmAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcMessagesConfirmAPIResponse added in v1.3.4

func ReleaseTaobaoTmcMessagesConfirmAPIResponse(v *TaobaoTmcMessagesConfirmAPIResponse)

ReleaseTaobaoTmcMessagesConfirmAPIResponse 将 TaobaoTmcMessagesConfirmAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcMessagesConsumeAPIRequest added in v1.3.4

func ReleaseTaobaoTmcMessagesConsumeAPIRequest(v *TaobaoTmcMessagesConsumeAPIRequest)

ReleaseTaobaoTmcMessagesConsumeAPIRequest 将 TaobaoTmcMessagesConsumeAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcMessagesConsumeAPIResponse added in v1.3.4

func ReleaseTaobaoTmcMessagesConsumeAPIResponse(v *TaobaoTmcMessagesConsumeAPIResponse)

ReleaseTaobaoTmcMessagesConsumeAPIResponse 将 TaobaoTmcMessagesConsumeAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcMessagesProduceAPIRequest added in v1.3.4

func ReleaseTaobaoTmcMessagesProduceAPIRequest(v *TaobaoTmcMessagesProduceAPIRequest)

ReleaseTaobaoTmcMessagesProduceAPIRequest 将 TaobaoTmcMessagesProduceAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcMessagesProduceAPIResponse added in v1.3.4

func ReleaseTaobaoTmcMessagesProduceAPIResponse(v *TaobaoTmcMessagesProduceAPIResponse)

ReleaseTaobaoTmcMessagesProduceAPIResponse 将 TaobaoTmcMessagesProduceAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcQueueGetAPIRequest added in v1.3.4

func ReleaseTaobaoTmcQueueGetAPIRequest(v *TaobaoTmcQueueGetAPIRequest)

ReleaseTaobaoTmcQueueGetAPIRequest 将 TaobaoTmcQueueGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcQueueGetAPIResponse added in v1.3.4

func ReleaseTaobaoTmcQueueGetAPIResponse(v *TaobaoTmcQueueGetAPIResponse)

ReleaseTaobaoTmcQueueGetAPIResponse 将 TaobaoTmcQueueGetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcTopicGroupAddAPIRequest added in v1.3.4

func ReleaseTaobaoTmcTopicGroupAddAPIRequest(v *TaobaoTmcTopicGroupAddAPIRequest)

ReleaseTaobaoTmcTopicGroupAddAPIRequest 将 TaobaoTmcTopicGroupAddAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcTopicGroupAddAPIResponse added in v1.3.4

func ReleaseTaobaoTmcTopicGroupAddAPIResponse(v *TaobaoTmcTopicGroupAddAPIResponse)

ReleaseTaobaoTmcTopicGroupAddAPIResponse 将 TaobaoTmcTopicGroupAddAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcTopicGroupDeleteAPIRequest added in v1.3.4

func ReleaseTaobaoTmcTopicGroupDeleteAPIRequest(v *TaobaoTmcTopicGroupDeleteAPIRequest)

ReleaseTaobaoTmcTopicGroupDeleteAPIRequest 将 TaobaoTmcTopicGroupDeleteAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcTopicGroupDeleteAPIResponse added in v1.3.4

func ReleaseTaobaoTmcTopicGroupDeleteAPIResponse(v *TaobaoTmcTopicGroupDeleteAPIResponse)

ReleaseTaobaoTmcTopicGroupDeleteAPIResponse 将 TaobaoTmcTopicGroupDeleteAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcUserCancelAPIRequest added in v1.3.4

func ReleaseTaobaoTmcUserCancelAPIRequest(v *TaobaoTmcUserCancelAPIRequest)

ReleaseTaobaoTmcUserCancelAPIRequest 将 TaobaoTmcUserCancelAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcUserCancelAPIResponse added in v1.3.4

func ReleaseTaobaoTmcUserCancelAPIResponse(v *TaobaoTmcUserCancelAPIResponse)

ReleaseTaobaoTmcUserCancelAPIResponse 将 TaobaoTmcUserCancelAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcUserGetAPIRequest added in v1.3.4

func ReleaseTaobaoTmcUserGetAPIRequest(v *TaobaoTmcUserGetAPIRequest)

ReleaseTaobaoTmcUserGetAPIRequest 将 TaobaoTmcUserGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcUserGetAPIResponse added in v1.3.4

func ReleaseTaobaoTmcUserGetAPIResponse(v *TaobaoTmcUserGetAPIResponse)

ReleaseTaobaoTmcUserGetAPIResponse 将 TaobaoTmcUserGetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcUserPermitAPIRequest added in v1.3.4

func ReleaseTaobaoTmcUserPermitAPIRequest(v *TaobaoTmcUserPermitAPIRequest)

ReleaseTaobaoTmcUserPermitAPIRequest 将 TaobaoTmcUserPermitAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcUserPermitAPIResponse added in v1.3.4

func ReleaseTaobaoTmcUserPermitAPIResponse(v *TaobaoTmcUserPermitAPIResponse)

ReleaseTaobaoTmcUserPermitAPIResponse 将 TaobaoTmcUserPermitAPIResponse 保存到 sync.Pool

func ReleaseTaobaoTmcUserTopicsGetAPIRequest added in v1.3.4

func ReleaseTaobaoTmcUserTopicsGetAPIRequest(v *TaobaoTmcUserTopicsGetAPIRequest)

ReleaseTaobaoTmcUserTopicsGetAPIRequest 将 TaobaoTmcUserTopicsGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoTmcUserTopicsGetAPIResponse added in v1.3.4

func ReleaseTaobaoTmcUserTopicsGetAPIResponse(v *TaobaoTmcUserTopicsGetAPIResponse)

ReleaseTaobaoTmcUserTopicsGetAPIResponse 将 TaobaoTmcUserTopicsGetAPIResponse 保存到 sync.Pool

func ReleaseTmcGroup added in v1.3.4

func ReleaseTmcGroup(v *TmcGroup)

ReleaseTmcGroup 释放TmcGroup

func ReleaseTmcMessage added in v1.3.4

func ReleaseTmcMessage(v *TmcMessage)

ReleaseTmcMessage 释放TmcMessage

func ReleaseTmcProduceResult added in v1.3.4

func ReleaseTmcProduceResult(v *TmcProduceResult)

ReleaseTmcProduceResult 释放TmcProduceResult

func ReleaseTmcPublishMessage added in v1.3.4

func ReleaseTmcPublishMessage(v *TmcPublishMessage)

ReleaseTmcPublishMessage 释放TmcPublishMessage

func ReleaseTmcQueueInfo added in v1.3.4

func ReleaseTmcQueueInfo(v *TmcQueueInfo)

ReleaseTmcQueueInfo 释放TmcQueueInfo

func ReleaseTmcUser added in v1.3.4

func ReleaseTmcUser(v *TmcUser)

ReleaseTmcUser 释放TmcUser

Types

type AlibabaLsyMiniappMsgPushAPIRequest added in v1.2.0

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

AlibabaLsyMiniappMsgPushAPIRequest 零售云小程序消息推送 API请求 alibaba.lsy.miniapp.msg.push

零售云小程序消息推送,推送消息至零售云(喵零等)

func GetAlibabaLsyMiniappMsgPushAPIRequest added in v1.3.4

func GetAlibabaLsyMiniappMsgPushAPIRequest() *AlibabaLsyMiniappMsgPushAPIRequest

GetAlibabaLsyMiniappMsgPushRequest 从 sync.Pool 获取 AlibabaLsyMiniappMsgPushAPIRequest

func NewAlibabaLsyMiniappMsgPushRequest

func NewAlibabaLsyMiniappMsgPushRequest() *AlibabaLsyMiniappMsgPushAPIRequest

NewAlibabaLsyMiniappMsgPushRequest 初始化AlibabaLsyMiniappMsgPushAPIRequest对象

func (AlibabaLsyMiniappMsgPushAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaLsyMiniappMsgPushAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLsyMiniappMsgPushAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLsyMiniappMsgPushAPIRequest) GetAppId added in v1.2.0

GetAppId AppId Getter

func (AlibabaLsyMiniappMsgPushAPIRequest) GetMsgId added in v1.2.0

GetMsgId MsgId Getter

func (AlibabaLsyMiniappMsgPushAPIRequest) GetParams added in v1.2.0

GetParams Params Getter

func (AlibabaLsyMiniappMsgPushAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaLsyMiniappMsgPushAPIRequest) GetStoreId added in v1.2.0

GetStoreId StoreId Getter

func (AlibabaLsyMiniappMsgPushAPIRequest) GetTemplateId added in v1.2.0

func (r AlibabaLsyMiniappMsgPushAPIRequest) GetTemplateId() string

GetTemplateId TemplateId Getter

func (*AlibabaLsyMiniappMsgPushAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaLsyMiniappMsgPushAPIRequest) SetAppId added in v1.2.0

func (r *AlibabaLsyMiniappMsgPushAPIRequest) SetAppId(_appId string) error

SetAppId is AppId Setter 小程序ID

func (*AlibabaLsyMiniappMsgPushAPIRequest) SetMsgId added in v1.2.0

func (r *AlibabaLsyMiniappMsgPushAPIRequest) SetMsgId(_msgId int64) error

SetMsgId is MsgId Setter 消息ID

func (*AlibabaLsyMiniappMsgPushAPIRequest) SetParams added in v1.2.0

func (r *AlibabaLsyMiniappMsgPushAPIRequest) SetParams(_params string) error

SetParams is Params Setter 消息参数

func (*AlibabaLsyMiniappMsgPushAPIRequest) SetStoreId added in v1.2.0

func (r *AlibabaLsyMiniappMsgPushAPIRequest) SetStoreId(_storeId int64) error

SetStoreId is StoreId Setter 摊位ID

func (*AlibabaLsyMiniappMsgPushAPIRequest) SetTemplateId added in v1.2.0

func (r *AlibabaLsyMiniappMsgPushAPIRequest) SetTemplateId(_templateId string) error

SetTemplateId is TemplateId Setter 消息模板,miaoling_msg_isv_clue - 线索通知消息

type AlibabaLsyMiniappMsgPushAPIResponse

type AlibabaLsyMiniappMsgPushAPIResponse struct {
	model.CommonResponse
	AlibabaLsyMiniappMsgPushAPIResponseModel
}

AlibabaLsyMiniappMsgPushAPIResponse 零售云小程序消息推送 API返回值 alibaba.lsy.miniapp.msg.push

零售云小程序消息推送,推送消息至零售云(喵零等)

func GetAlibabaLsyMiniappMsgPushAPIResponse added in v1.3.4

func GetAlibabaLsyMiniappMsgPushAPIResponse() *AlibabaLsyMiniappMsgPushAPIResponse

GetAlibabaLsyMiniappMsgPushAPIResponse 从 sync.Pool 获取 AlibabaLsyMiniappMsgPushAPIResponse

func (*AlibabaLsyMiniappMsgPushAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaLsyMiniappMsgPushAPIResponseModel added in v1.2.0

type AlibabaLsyMiniappMsgPushAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lsy_miniapp_msg_push_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误提示
	FailMsg string `json:"fail_msg,omitempty" xml:"fail_msg,omitempty"`
	// 错误码
	FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"`
	// 是否成功
	Succ bool `json:"succ,omitempty" xml:"succ,omitempty"`
}

AlibabaLsyMiniappMsgPushAPIResponseModel is 零售云小程序消息推送 成功返回结果

func (*AlibabaLsyMiniappMsgPushAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlipayXiaodaiUserPermitAPIRequest added in v1.2.0

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

AlipayXiaodaiUserPermitAPIRequest 阿里金融用户授权 API请求 alipay.xiaodai.user.permit

阿里金融为用户开通消息通道接口

func GetAlipayXiaodaiUserPermitAPIRequest added in v1.3.4

func GetAlipayXiaodaiUserPermitAPIRequest() *AlipayXiaodaiUserPermitAPIRequest

GetAlipayXiaodaiUserPermitRequest 从 sync.Pool 获取 AlipayXiaodaiUserPermitAPIRequest

func NewAlipayXiaodaiUserPermitRequest

func NewAlipayXiaodaiUserPermitRequest() *AlipayXiaodaiUserPermitAPIRequest

NewAlipayXiaodaiUserPermitRequest 初始化AlipayXiaodaiUserPermitAPIRequest对象

func (AlipayXiaodaiUserPermitAPIRequest) GetApiMethodName added in v1.2.0

func (r AlipayXiaodaiUserPermitAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlipayXiaodaiUserPermitAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlipayXiaodaiUserPermitAPIRequest) GetRawParams added in v1.2.8

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

func (AlipayXiaodaiUserPermitAPIRequest) GetUserId added in v1.2.0

GetUserId UserId Getter

func (*AlipayXiaodaiUserPermitAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlipayXiaodaiUserPermitAPIRequest) SetUserId added in v1.2.0

func (r *AlipayXiaodaiUserPermitAPIRequest) SetUserId(_userId int64) error

SetUserId is UserId Setter 用户数字ID

type AlipayXiaodaiUserPermitAPIResponse

type AlipayXiaodaiUserPermitAPIResponse struct {
	model.CommonResponse
	AlipayXiaodaiUserPermitAPIResponseModel
}

AlipayXiaodaiUserPermitAPIResponse 阿里金融用户授权 API返回值 alipay.xiaodai.user.permit

阿里金融为用户开通消息通道接口

func GetAlipayXiaodaiUserPermitAPIResponse added in v1.3.4

func GetAlipayXiaodaiUserPermitAPIResponse() *AlipayXiaodaiUserPermitAPIResponse

GetAlipayXiaodaiUserPermitAPIResponse 从 sync.Pool 获取 AlipayXiaodaiUserPermitAPIResponse

func (*AlipayXiaodaiUserPermitAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlipayXiaodaiUserPermitAPIResponseModel added in v1.2.0

type AlipayXiaodaiUserPermitAPIResponseModel struct {
	XMLName xml.Name `xml:"alipay_xiaodai_user_permit_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlipayXiaodaiUserPermitAPIResponseModel is 阿里金融用户授权 成功返回结果

func (*AlipayXiaodaiUserPermitAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcGroupAddAPIRequest added in v1.2.0

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

TaobaoTmcGroupAddAPIRequest 为已开通用户添加用户分组 API请求 taobao.tmc.group.add

为已开通用户添加用户分组,授权消息使用

func GetTaobaoTmcGroupAddAPIRequest added in v1.3.4

func GetTaobaoTmcGroupAddAPIRequest() *TaobaoTmcGroupAddAPIRequest

GetTaobaoTmcGroupAddRequest 从 sync.Pool 获取 TaobaoTmcGroupAddAPIRequest

func NewTaobaoTmcGroupAddRequest

func NewTaobaoTmcGroupAddRequest() *TaobaoTmcGroupAddAPIRequest

NewTaobaoTmcGroupAddRequest 初始化TaobaoTmcGroupAddAPIRequest对象

func (TaobaoTmcGroupAddAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcGroupAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcGroupAddAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcGroupAddAPIRequest) GetGroupName added in v1.2.0

func (r TaobaoTmcGroupAddAPIRequest) GetGroupName() string

GetGroupName GroupName Getter

func (TaobaoTmcGroupAddAPIRequest) GetNicks added in v1.2.0

func (r TaobaoTmcGroupAddAPIRequest) GetNicks() []string

GetNicks Nicks Getter

func (TaobaoTmcGroupAddAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoTmcGroupAddAPIRequest) GetRawParams() model.Params

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

func (TaobaoTmcGroupAddAPIRequest) GetUserPlatform added in v1.2.0

func (r TaobaoTmcGroupAddAPIRequest) GetUserPlatform() string

GetUserPlatform UserPlatform Getter

func (*TaobaoTmcGroupAddAPIRequest) Reset added in v1.3.4

func (r *TaobaoTmcGroupAddAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcGroupAddAPIRequest) SetGroupName added in v1.2.0

func (r *TaobaoTmcGroupAddAPIRequest) SetGroupName(_groupName string) error

SetGroupName is GroupName Setter 分组名称,同一个应用下需要保证唯一性,最长32个字符。添加分组后,消息通道会为用户的消息分配独立分组,但之前的消息还是存储于默认分组中。不能以default开头,default开头为系统默认组。

func (*TaobaoTmcGroupAddAPIRequest) SetNicks added in v1.2.0

func (r *TaobaoTmcGroupAddAPIRequest) SetNicks(_nicks []string) error

SetNicks is Nicks Setter 用户昵称列表,以半角逗号分隔,支持子账号,支持增量添加用户

func (*TaobaoTmcGroupAddAPIRequest) SetUserPlatform added in v1.2.0

func (r *TaobaoTmcGroupAddAPIRequest) SetUserPlatform(_userPlatform string) error

SetUserPlatform is UserPlatform Setter 用户所属于的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户

type TaobaoTmcGroupAddAPIResponse

type TaobaoTmcGroupAddAPIResponse struct {
	model.CommonResponse
	TaobaoTmcGroupAddAPIResponseModel
}

TaobaoTmcGroupAddAPIResponse 为已开通用户添加用户分组 API返回值 taobao.tmc.group.add

为已开通用户添加用户分组,授权消息使用

func GetTaobaoTmcGroupAddAPIResponse added in v1.3.4

func GetTaobaoTmcGroupAddAPIResponse() *TaobaoTmcGroupAddAPIResponse

GetTaobaoTmcGroupAddAPIResponse 从 sync.Pool 获取 TaobaoTmcGroupAddAPIResponse

func (*TaobaoTmcGroupAddAPIResponse) Reset added in v1.3.4

func (m *TaobaoTmcGroupAddAPIResponse) Reset()

Reset 清空结构体

type TaobaoTmcGroupAddAPIResponseModel added in v1.2.0

type TaobaoTmcGroupAddAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_group_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 创建时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 分组名称
	GroupName string `json:"group_name,omitempty" xml:"group_name,omitempty"`
}

TaobaoTmcGroupAddAPIResponseModel is 为已开通用户添加用户分组 成功返回结果

func (*TaobaoTmcGroupAddAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcGroupDeleteAPIRequest added in v1.2.0

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

TaobaoTmcGroupDeleteAPIRequest 删除指定的分组或分组下的用户 API请求 taobao.tmc.group.delete

删除指定的分组或分组下的用户,授权消息使用

func GetTaobaoTmcGroupDeleteAPIRequest added in v1.3.4

func GetTaobaoTmcGroupDeleteAPIRequest() *TaobaoTmcGroupDeleteAPIRequest

GetTaobaoTmcGroupDeleteRequest 从 sync.Pool 获取 TaobaoTmcGroupDeleteAPIRequest

func NewTaobaoTmcGroupDeleteRequest

func NewTaobaoTmcGroupDeleteRequest() *TaobaoTmcGroupDeleteAPIRequest

NewTaobaoTmcGroupDeleteRequest 初始化TaobaoTmcGroupDeleteAPIRequest对象

func (TaobaoTmcGroupDeleteAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcGroupDeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcGroupDeleteAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcGroupDeleteAPIRequest) GetGroupName added in v1.2.0

func (r TaobaoTmcGroupDeleteAPIRequest) GetGroupName() string

GetGroupName GroupName Getter

func (TaobaoTmcGroupDeleteAPIRequest) GetNicks added in v1.2.0

func (r TaobaoTmcGroupDeleteAPIRequest) GetNicks() []string

GetNicks Nicks Getter

func (TaobaoTmcGroupDeleteAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoTmcGroupDeleteAPIRequest) GetRawParams() model.Params

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

func (TaobaoTmcGroupDeleteAPIRequest) GetUserPlatform added in v1.2.0

func (r TaobaoTmcGroupDeleteAPIRequest) GetUserPlatform() string

GetUserPlatform UserPlatform Getter

func (*TaobaoTmcGroupDeleteAPIRequest) Reset added in v1.3.4

func (r *TaobaoTmcGroupDeleteAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcGroupDeleteAPIRequest) SetGroupName added in v1.2.0

func (r *TaobaoTmcGroupDeleteAPIRequest) SetGroupName(_groupName string) error

SetGroupName is GroupName Setter 分组名称,分组删除后,用户的消息将会存储于默认分组中。警告:由于分组已经删除,用户之前未消费的消息将无法再获取。不能以default开头,default开头为系统默认组。

func (*TaobaoTmcGroupDeleteAPIRequest) SetNicks added in v1.2.0

func (r *TaobaoTmcGroupDeleteAPIRequest) SetNicks(_nicks []string) error

SetNicks is Nicks Setter 用户列表,不传表示删除整个分组,如果用户全部删除后,也会自动删除整个分组

func (*TaobaoTmcGroupDeleteAPIRequest) SetUserPlatform added in v1.2.0

func (r *TaobaoTmcGroupDeleteAPIRequest) SetUserPlatform(_userPlatform string) error

SetUserPlatform is UserPlatform Setter 用户所属于的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户

type TaobaoTmcGroupDeleteAPIResponse

type TaobaoTmcGroupDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoTmcGroupDeleteAPIResponseModel
}

TaobaoTmcGroupDeleteAPIResponse 删除指定的分组或分组下的用户 API返回值 taobao.tmc.group.delete

删除指定的分组或分组下的用户,授权消息使用

func GetTaobaoTmcGroupDeleteAPIResponse added in v1.3.4

func GetTaobaoTmcGroupDeleteAPIResponse() *TaobaoTmcGroupDeleteAPIResponse

GetTaobaoTmcGroupDeleteAPIResponse 从 sync.Pool 获取 TaobaoTmcGroupDeleteAPIResponse

func (*TaobaoTmcGroupDeleteAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcGroupDeleteAPIResponseModel added in v1.2.0

type TaobaoTmcGroupDeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_group_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoTmcGroupDeleteAPIResponseModel is 删除指定的分组或分组下的用户 成功返回结果

func (*TaobaoTmcGroupDeleteAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcGroupsGetAPIRequest added in v1.2.0

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

TaobaoTmcGroupsGetAPIRequest 获取自定义用户分组列表 API请求 taobao.tmc.groups.get

获取自定义用户分组列表

func GetTaobaoTmcGroupsGetAPIRequest added in v1.3.4

func GetTaobaoTmcGroupsGetAPIRequest() *TaobaoTmcGroupsGetAPIRequest

GetTaobaoTmcGroupsGetRequest 从 sync.Pool 获取 TaobaoTmcGroupsGetAPIRequest

func NewTaobaoTmcGroupsGetRequest

func NewTaobaoTmcGroupsGetRequest() *TaobaoTmcGroupsGetAPIRequest

NewTaobaoTmcGroupsGetRequest 初始化TaobaoTmcGroupsGetAPIRequest对象

func (TaobaoTmcGroupsGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcGroupsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcGroupsGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcGroupsGetAPIRequest) GetGroupNames added in v1.2.0

func (r TaobaoTmcGroupsGetAPIRequest) GetGroupNames() []string

GetGroupNames GroupNames Getter

func (TaobaoTmcGroupsGetAPIRequest) GetPageNo added in v1.2.0

func (r TaobaoTmcGroupsGetAPIRequest) GetPageNo() int64

GetPageNo PageNo Getter

func (TaobaoTmcGroupsGetAPIRequest) GetPageSize added in v1.2.0

func (r TaobaoTmcGroupsGetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoTmcGroupsGetAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoTmcGroupsGetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoTmcGroupsGetAPIRequest) Reset added in v1.3.4

func (r *TaobaoTmcGroupsGetAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcGroupsGetAPIRequest) SetGroupNames added in v1.2.0

func (r *TaobaoTmcGroupsGetAPIRequest) SetGroupNames(_groupNames []string) error

SetGroupNames is GroupNames Setter 要查询分组的名称,多个分组用半角逗号分隔,不传代表查询所有分组信息,但不会返回组下面的用户信息。如果应用没有设置分组则返回空。组名不能以default开头,default开头是系统默认的组。

func (*TaobaoTmcGroupsGetAPIRequest) SetPageNo added in v1.2.0

func (r *TaobaoTmcGroupsGetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页码

func (*TaobaoTmcGroupsGetAPIRequest) SetPageSize added in v1.2.0

func (r *TaobaoTmcGroupsGetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页返回多少个分组

type TaobaoTmcGroupsGetAPIResponse

type TaobaoTmcGroupsGetAPIResponse struct {
	model.CommonResponse
	TaobaoTmcGroupsGetAPIResponseModel
}

TaobaoTmcGroupsGetAPIResponse 获取自定义用户分组列表 API返回值 taobao.tmc.groups.get

获取自定义用户分组列表

func GetTaobaoTmcGroupsGetAPIResponse added in v1.3.4

func GetTaobaoTmcGroupsGetAPIResponse() *TaobaoTmcGroupsGetAPIResponse

GetTaobaoTmcGroupsGetAPIResponse 从 sync.Pool 获取 TaobaoTmcGroupsGetAPIResponse

func (*TaobaoTmcGroupsGetAPIResponse) Reset added in v1.3.4

func (m *TaobaoTmcGroupsGetAPIResponse) Reset()

Reset 清空结构体

type TaobaoTmcGroupsGetAPIResponseModel added in v1.2.0

type TaobaoTmcGroupsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_groups_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// dasdasd
	Groups []TmcGroup `json:"groups,omitempty" xml:"groups>tmc_group,omitempty"`
	// 分组总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaoTmcGroupsGetAPIResponseModel is 获取自定义用户分组列表 成功返回结果

func (*TaobaoTmcGroupsGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcMessageProduceAPIRequest added in v1.2.0

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

TaobaoTmcMessageProduceAPIRequest 发布单条消息 API请求 taobao.tmc.message.produce

发布单条消息

func GetTaobaoTmcMessageProduceAPIRequest added in v1.3.4

func GetTaobaoTmcMessageProduceAPIRequest() *TaobaoTmcMessageProduceAPIRequest

GetTaobaoTmcMessageProduceRequest 从 sync.Pool 获取 TaobaoTmcMessageProduceAPIRequest

func NewTaobaoTmcMessageProduceRequest

func NewTaobaoTmcMessageProduceRequest() *TaobaoTmcMessageProduceAPIRequest

NewTaobaoTmcMessageProduceRequest 初始化TaobaoTmcMessageProduceAPIRequest对象

func (TaobaoTmcMessageProduceAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcMessageProduceAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcMessageProduceAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcMessageProduceAPIRequest) GetContent added in v1.2.0

GetContent Content Getter

func (TaobaoTmcMessageProduceAPIRequest) GetDelayMillis added in v1.2.5

func (r TaobaoTmcMessageProduceAPIRequest) GetDelayMillis() int64

GetDelayMillis DelayMillis Getter

func (TaobaoTmcMessageProduceAPIRequest) GetExpiresMillis added in v1.2.5

func (r TaobaoTmcMessageProduceAPIRequest) GetExpiresMillis() int64

GetExpiresMillis ExpiresMillis Getter

func (TaobaoTmcMessageProduceAPIRequest) GetMediaContent added in v1.2.0

func (r TaobaoTmcMessageProduceAPIRequest) GetMediaContent() *model.File

GetMediaContent MediaContent Getter

func (TaobaoTmcMessageProduceAPIRequest) GetMediaContent2 added in v1.2.0

func (r TaobaoTmcMessageProduceAPIRequest) GetMediaContent2() *model.File

GetMediaContent2 MediaContent2 Getter

func (TaobaoTmcMessageProduceAPIRequest) GetMediaContent3 added in v1.2.0

func (r TaobaoTmcMessageProduceAPIRequest) GetMediaContent3() *model.File

GetMediaContent3 MediaContent3 Getter

func (TaobaoTmcMessageProduceAPIRequest) GetMediaContent4 added in v1.2.0

func (r TaobaoTmcMessageProduceAPIRequest) GetMediaContent4() *model.File

GetMediaContent4 MediaContent4 Getter

func (TaobaoTmcMessageProduceAPIRequest) GetMediaContent5 added in v1.2.0

func (r TaobaoTmcMessageProduceAPIRequest) GetMediaContent5() *model.File

GetMediaContent5 MediaContent5 Getter

func (TaobaoTmcMessageProduceAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoTmcMessageProduceAPIRequest) GetTargetGroup added in v1.2.0

func (r TaobaoTmcMessageProduceAPIRequest) GetTargetGroup() string

GetTargetGroup TargetGroup Getter

func (TaobaoTmcMessageProduceAPIRequest) GetTopic added in v1.2.0

GetTopic Topic Getter

func (*TaobaoTmcMessageProduceAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcMessageProduceAPIRequest) SetContent added in v1.2.0

func (r *TaobaoTmcMessageProduceAPIRequest) SetContent(_content string) error

SetContent is Content Setter 消息内容的JSON表述,必须按照topic的定义来填充

func (*TaobaoTmcMessageProduceAPIRequest) SetDelayMillis added in v1.2.5

func (r *TaobaoTmcMessageProduceAPIRequest) SetDelayMillis(_delayMillis int64) error

SetDelayMillis is DelayMillis Setter 延时参数 时间戳 预期发送时间

func (*TaobaoTmcMessageProduceAPIRequest) SetExpiresMillis added in v1.2.5

func (r *TaobaoTmcMessageProduceAPIRequest) SetExpiresMillis(_expiresMillis int64) error

SetExpiresMillis is ExpiresMillis Setter 提前过期 相对时间差 毫秒

func (*TaobaoTmcMessageProduceAPIRequest) SetMediaContent added in v1.2.0

func (r *TaobaoTmcMessageProduceAPIRequest) SetMediaContent(_mediaContent *model.File) error

SetMediaContent is MediaContent Setter 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。

func (*TaobaoTmcMessageProduceAPIRequest) SetMediaContent2 added in v1.2.0

func (r *TaobaoTmcMessageProduceAPIRequest) SetMediaContent2(_mediaContent2 *model.File) error

SetMediaContent2 is MediaContent2 Setter 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。

func (*TaobaoTmcMessageProduceAPIRequest) SetMediaContent3 added in v1.2.0

func (r *TaobaoTmcMessageProduceAPIRequest) SetMediaContent3(_mediaContent3 *model.File) error

SetMediaContent3 is MediaContent3 Setter 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。

func (*TaobaoTmcMessageProduceAPIRequest) SetMediaContent4 added in v1.2.0

func (r *TaobaoTmcMessageProduceAPIRequest) SetMediaContent4(_mediaContent4 *model.File) error

SetMediaContent4 is MediaContent4 Setter 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。

func (*TaobaoTmcMessageProduceAPIRequest) SetMediaContent5 added in v1.2.0

func (r *TaobaoTmcMessageProduceAPIRequest) SetMediaContent5(_mediaContent5 *model.File) error

SetMediaContent5 is MediaContent5 Setter 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。

func (*TaobaoTmcMessageProduceAPIRequest) SetTargetGroup added in v1.2.0

func (r *TaobaoTmcMessageProduceAPIRequest) SetTargetGroup(_targetGroup string) error

SetTargetGroup is TargetGroup Setter 目标分组,一般为default

func (*TaobaoTmcMessageProduceAPIRequest) SetTopic added in v1.2.0

func (r *TaobaoTmcMessageProduceAPIRequest) SetTopic(_topic string) error

SetTopic is Topic Setter 消息类型

type TaobaoTmcMessageProduceAPIResponse

type TaobaoTmcMessageProduceAPIResponse struct {
	model.CommonResponse
	TaobaoTmcMessageProduceAPIResponseModel
}

TaobaoTmcMessageProduceAPIResponse 发布单条消息 API返回值 taobao.tmc.message.produce

发布单条消息

func GetTaobaoTmcMessageProduceAPIResponse added in v1.3.4

func GetTaobaoTmcMessageProduceAPIResponse() *TaobaoTmcMessageProduceAPIResponse

GetTaobaoTmcMessageProduceAPIResponse 从 sync.Pool 获取 TaobaoTmcMessageProduceAPIResponse

func (*TaobaoTmcMessageProduceAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcMessageProduceAPIResponseModel added in v1.2.0

type TaobaoTmcMessageProduceAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_message_produce_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 消息ID
	MsgIds []string `json:"msg_ids,omitempty" xml:"msg_ids>string,omitempty"`
	// 投递目标数
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoTmcMessageProduceAPIResponseModel is 发布单条消息 成功返回结果

func (*TaobaoTmcMessageProduceAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcMessagesConfirmAPIRequest added in v1.2.0

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

TaobaoTmcMessagesConfirmAPIRequest 确认消费消息的状态 API请求 taobao.tmc.messages.confirm

确认消费消息的状态

func GetTaobaoTmcMessagesConfirmAPIRequest added in v1.3.4

func GetTaobaoTmcMessagesConfirmAPIRequest() *TaobaoTmcMessagesConfirmAPIRequest

GetTaobaoTmcMessagesConfirmRequest 从 sync.Pool 获取 TaobaoTmcMessagesConfirmAPIRequest

func NewTaobaoTmcMessagesConfirmRequest

func NewTaobaoTmcMessagesConfirmRequest() *TaobaoTmcMessagesConfirmAPIRequest

NewTaobaoTmcMessagesConfirmRequest 初始化TaobaoTmcMessagesConfirmAPIRequest对象

func (TaobaoTmcMessagesConfirmAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcMessagesConfirmAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcMessagesConfirmAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcMessagesConfirmAPIRequest) GetFMessageIds added in v1.2.0

func (r TaobaoTmcMessagesConfirmAPIRequest) GetFMessageIds() []string

GetFMessageIds FMessageIds Getter

func (TaobaoTmcMessagesConfirmAPIRequest) GetGroupName added in v1.2.0

func (r TaobaoTmcMessagesConfirmAPIRequest) GetGroupName() string

GetGroupName GroupName Getter

func (TaobaoTmcMessagesConfirmAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoTmcMessagesConfirmAPIRequest) GetSMessageIds added in v1.2.0

func (r TaobaoTmcMessagesConfirmAPIRequest) GetSMessageIds() []string

GetSMessageIds SMessageIds Getter

func (*TaobaoTmcMessagesConfirmAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcMessagesConfirmAPIRequest) SetFMessageIds added in v1.2.0

func (r *TaobaoTmcMessagesConfirmAPIRequest) SetFMessageIds(_fMessageIds []string) error

SetFMessageIds is FMessageIds Setter 处理失败的消息ID列表--已废弃,无需传此字段

func (*TaobaoTmcMessagesConfirmAPIRequest) SetGroupName added in v1.2.0

func (r *TaobaoTmcMessagesConfirmAPIRequest) SetGroupName(_groupName string) error

SetGroupName is GroupName Setter 分组名称,不传代表默认分组

func (*TaobaoTmcMessagesConfirmAPIRequest) SetSMessageIds added in v1.2.0

func (r *TaobaoTmcMessagesConfirmAPIRequest) SetSMessageIds(_sMessageIds []string) error

SetSMessageIds is SMessageIds Setter 处理成功的消息ID列表 最大 200个ID

type TaobaoTmcMessagesConfirmAPIResponse

type TaobaoTmcMessagesConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoTmcMessagesConfirmAPIResponseModel
}

TaobaoTmcMessagesConfirmAPIResponse 确认消费消息的状态 API返回值 taobao.tmc.messages.confirm

确认消费消息的状态

func GetTaobaoTmcMessagesConfirmAPIResponse added in v1.3.4

func GetTaobaoTmcMessagesConfirmAPIResponse() *TaobaoTmcMessagesConfirmAPIResponse

GetTaobaoTmcMessagesConfirmAPIResponse 从 sync.Pool 获取 TaobaoTmcMessagesConfirmAPIResponse

func (*TaobaoTmcMessagesConfirmAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcMessagesConfirmAPIResponseModel added in v1.2.0

type TaobaoTmcMessagesConfirmAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_messages_confirm_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoTmcMessagesConfirmAPIResponseModel is 确认消费消息的状态 成功返回结果

func (*TaobaoTmcMessagesConfirmAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcMessagesConsumeAPIRequest added in v1.2.0

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

TaobaoTmcMessagesConsumeAPIRequest 消费多条消息 API请求 taobao.tmc.messages.consume

消费多条消息。消费时如果没有返回消息,建议做控制,不要一直调api,浪费应用的流量。如对程序做好优化,若没有消息则,sleep 100ms 等。

func GetTaobaoTmcMessagesConsumeAPIRequest added in v1.3.4

func GetTaobaoTmcMessagesConsumeAPIRequest() *TaobaoTmcMessagesConsumeAPIRequest

GetTaobaoTmcMessagesConsumeRequest 从 sync.Pool 获取 TaobaoTmcMessagesConsumeAPIRequest

func NewTaobaoTmcMessagesConsumeRequest

func NewTaobaoTmcMessagesConsumeRequest() *TaobaoTmcMessagesConsumeAPIRequest

NewTaobaoTmcMessagesConsumeRequest 初始化TaobaoTmcMessagesConsumeAPIRequest对象

func (TaobaoTmcMessagesConsumeAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcMessagesConsumeAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcMessagesConsumeAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcMessagesConsumeAPIRequest) GetGroupName added in v1.2.0

func (r TaobaoTmcMessagesConsumeAPIRequest) GetGroupName() string

GetGroupName GroupName Getter

func (TaobaoTmcMessagesConsumeAPIRequest) GetQuantity added in v1.2.0

func (r TaobaoTmcMessagesConsumeAPIRequest) GetQuantity() int64

GetQuantity Quantity Getter

func (TaobaoTmcMessagesConsumeAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoTmcMessagesConsumeAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcMessagesConsumeAPIRequest) SetGroupName added in v1.2.0

func (r *TaobaoTmcMessagesConsumeAPIRequest) SetGroupName(_groupName string) error

SetGroupName is GroupName Setter 用户分组名称,不传表示消费默认分组,如果应用没有设置用户分组,传入分组名称将会返回错误

func (*TaobaoTmcMessagesConsumeAPIRequest) SetQuantity added in v1.2.0

func (r *TaobaoTmcMessagesConsumeAPIRequest) SetQuantity(_quantity int64) error

SetQuantity is Quantity Setter 每次批量消费消息的条数,最小值:10;最大值:200

type TaobaoTmcMessagesConsumeAPIResponse

type TaobaoTmcMessagesConsumeAPIResponse struct {
	model.CommonResponse
	TaobaoTmcMessagesConsumeAPIResponseModel
}

TaobaoTmcMessagesConsumeAPIResponse 消费多条消息 API返回值 taobao.tmc.messages.consume

消费多条消息。消费时如果没有返回消息,建议做控制,不要一直调api,浪费应用的流量。如对程序做好优化,若没有消息则,sleep 100ms 等。

func GetTaobaoTmcMessagesConsumeAPIResponse added in v1.3.4

func GetTaobaoTmcMessagesConsumeAPIResponse() *TaobaoTmcMessagesConsumeAPIResponse

GetTaobaoTmcMessagesConsumeAPIResponse 从 sync.Pool 获取 TaobaoTmcMessagesConsumeAPIResponse

func (*TaobaoTmcMessagesConsumeAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcMessagesConsumeAPIResponseModel added in v1.2.0

type TaobaoTmcMessagesConsumeAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_messages_consume_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 消息列表
	Messages []TmcMessage `json:"messages,omitempty" xml:"messages>tmc_message,omitempty"`
}

TaobaoTmcMessagesConsumeAPIResponseModel is 消费多条消息 成功返回结果

func (*TaobaoTmcMessagesConsumeAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcMessagesProduceAPIRequest added in v1.2.0

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

TaobaoTmcMessagesProduceAPIRequest 批量发送消息 API请求 taobao.tmc.messages.produce

批量发送消息

func GetTaobaoTmcMessagesProduceAPIRequest added in v1.3.4

func GetTaobaoTmcMessagesProduceAPIRequest() *TaobaoTmcMessagesProduceAPIRequest

GetTaobaoTmcMessagesProduceRequest 从 sync.Pool 获取 TaobaoTmcMessagesProduceAPIRequest

func NewTaobaoTmcMessagesProduceRequest

func NewTaobaoTmcMessagesProduceRequest() *TaobaoTmcMessagesProduceAPIRequest

NewTaobaoTmcMessagesProduceRequest 初始化TaobaoTmcMessagesProduceAPIRequest对象

func (TaobaoTmcMessagesProduceAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcMessagesProduceAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcMessagesProduceAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcMessagesProduceAPIRequest) GetMessages added in v1.2.0

GetMessages Messages Getter

func (TaobaoTmcMessagesProduceAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoTmcMessagesProduceAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcMessagesProduceAPIRequest) SetMessages added in v1.2.0

func (r *TaobaoTmcMessagesProduceAPIRequest) SetMessages(_messages []TmcPublishMessage) error

SetMessages is Messages Setter tmc消息列表, 最多50条,元素结构与taobao.tmc.message.produce一致,用json表示的消息列表。例如:[{"content": "{\"tid\":1234554321,\"status\":\"X_LOGISTICS_PRINTED\",\"action_time\":\"2014-08-08 18:24:00\",\"seller_nick\": \"向阳aa\",\"operator\":\"小张\"}","topic": "taobao_jds_TradeTrace"},{"content": "{\"tid\":1234554321,\"status\":\"X_LOGISTICS_PRINTED\",\"action_time\":\"2014-08-08 18:24:00\",\"seller_nick\": \"向阳aa\",\"operator\":\"小张\"}","topic": "taobao_jds_TradeTrace"}]

type TaobaoTmcMessagesProduceAPIResponse

type TaobaoTmcMessagesProduceAPIResponse struct {
	model.CommonResponse
	TaobaoTmcMessagesProduceAPIResponseModel
}

TaobaoTmcMessagesProduceAPIResponse 批量发送消息 API返回值 taobao.tmc.messages.produce

批量发送消息

func GetTaobaoTmcMessagesProduceAPIResponse added in v1.3.4

func GetTaobaoTmcMessagesProduceAPIResponse() *TaobaoTmcMessagesProduceAPIResponse

GetTaobaoTmcMessagesProduceAPIResponse 从 sync.Pool 获取 TaobaoTmcMessagesProduceAPIResponse

func (*TaobaoTmcMessagesProduceAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcMessagesProduceAPIResponseModel added in v1.2.0

type TaobaoTmcMessagesProduceAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_messages_produce_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 发送结果,与发送时的参数顺序一致。如果is_all_success为true时,不用校验result是否成功
	Results []TmcProduceResult `json:"results,omitempty" xml:"results>tmc_produce_result,omitempty"`
	// 是否全部成功
	IsAllSuccess bool `json:"is_all_success,omitempty" xml:"is_all_success,omitempty"`
}

TaobaoTmcMessagesProduceAPIResponseModel is 批量发送消息 成功返回结果

func (*TaobaoTmcMessagesProduceAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcQueueGetAPIRequest added in v1.2.0

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

TaobaoTmcQueueGetAPIRequest 获取消息队列积压情况 API请求 taobao.tmc.queue.get

根据appkey和groupName获取消息队列积压情况

func GetTaobaoTmcQueueGetAPIRequest added in v1.3.4

func GetTaobaoTmcQueueGetAPIRequest() *TaobaoTmcQueueGetAPIRequest

GetTaobaoTmcQueueGetRequest 从 sync.Pool 获取 TaobaoTmcQueueGetAPIRequest

func NewTaobaoTmcQueueGetRequest

func NewTaobaoTmcQueueGetRequest() *TaobaoTmcQueueGetAPIRequest

NewTaobaoTmcQueueGetRequest 初始化TaobaoTmcQueueGetAPIRequest对象

func (TaobaoTmcQueueGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcQueueGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcQueueGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcQueueGetAPIRequest) GetGroupName added in v1.2.0

func (r TaobaoTmcQueueGetAPIRequest) GetGroupName() string

GetGroupName GroupName Getter

func (TaobaoTmcQueueGetAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoTmcQueueGetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoTmcQueueGetAPIRequest) Reset added in v1.3.4

func (r *TaobaoTmcQueueGetAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcQueueGetAPIRequest) SetGroupName added in v1.2.0

func (r *TaobaoTmcQueueGetAPIRequest) SetGroupName(_groupName string) error

SetGroupName is GroupName Setter TMC组名

type TaobaoTmcQueueGetAPIResponse

type TaobaoTmcQueueGetAPIResponse struct {
	model.CommonResponse
	TaobaoTmcQueueGetAPIResponseModel
}

TaobaoTmcQueueGetAPIResponse 获取消息队列积压情况 API返回值 taobao.tmc.queue.get

根据appkey和groupName获取消息队列积压情况

func GetTaobaoTmcQueueGetAPIResponse added in v1.3.4

func GetTaobaoTmcQueueGetAPIResponse() *TaobaoTmcQueueGetAPIResponse

GetTaobaoTmcQueueGetAPIResponse 从 sync.Pool 获取 TaobaoTmcQueueGetAPIResponse

func (*TaobaoTmcQueueGetAPIResponse) Reset added in v1.3.4

func (m *TaobaoTmcQueueGetAPIResponse) Reset()

Reset 清空结构体

type TaobaoTmcQueueGetAPIResponseModel added in v1.2.0

type TaobaoTmcQueueGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_queue_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 队列详细信息
	Datas []TmcQueueInfo `json:"datas,omitempty" xml:"datas>tmc_queue_info,omitempty"`
}

TaobaoTmcQueueGetAPIResponseModel is 获取消息队列积压情况 成功返回结果

func (*TaobaoTmcQueueGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcTopicGroupAddAPIRequest added in v1.2.0

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

TaobaoTmcTopicGroupAddAPIRequest topic分组路由 API请求 taobao.tmc.topic.group.add

根据topic名称路由消息到不同的分组。(前提:发送方未指定分组名) 如果是需要授权的消息,分组路由先判断用户分组路由(使用taobao.tmc.group.add添加的路由),用户分组路由不存在时,才会判断topic分组路由

func GetTaobaoTmcTopicGroupAddAPIRequest added in v1.3.4

func GetTaobaoTmcTopicGroupAddAPIRequest() *TaobaoTmcTopicGroupAddAPIRequest

GetTaobaoTmcTopicGroupAddRequest 从 sync.Pool 获取 TaobaoTmcTopicGroupAddAPIRequest

func NewTaobaoTmcTopicGroupAddRequest

func NewTaobaoTmcTopicGroupAddRequest() *TaobaoTmcTopicGroupAddAPIRequest

NewTaobaoTmcTopicGroupAddRequest 初始化TaobaoTmcTopicGroupAddAPIRequest对象

func (TaobaoTmcTopicGroupAddAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcTopicGroupAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcTopicGroupAddAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcTopicGroupAddAPIRequest) GetGroupName added in v1.2.0

func (r TaobaoTmcTopicGroupAddAPIRequest) GetGroupName() string

GetGroupName GroupName Getter

func (TaobaoTmcTopicGroupAddAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoTmcTopicGroupAddAPIRequest) GetTopics added in v1.2.0

func (r TaobaoTmcTopicGroupAddAPIRequest) GetTopics() []string

GetTopics Topics Getter

func (*TaobaoTmcTopicGroupAddAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcTopicGroupAddAPIRequest) SetGroupName added in v1.2.0

func (r *TaobaoTmcTopicGroupAddAPIRequest) SetGroupName(_groupName string) error

SetGroupName is GroupName Setter 消息分组名,如果不存在,会自动创建

func (*TaobaoTmcTopicGroupAddAPIRequest) SetTopics added in v1.2.0

func (r *TaobaoTmcTopicGroupAddAPIRequest) SetTopics(_topics []string) error

SetTopics is Topics Setter 消息topic名称,多个以逗号(,)分割

type TaobaoTmcTopicGroupAddAPIResponse

type TaobaoTmcTopicGroupAddAPIResponse struct {
	model.CommonResponse
	TaobaoTmcTopicGroupAddAPIResponseModel
}

TaobaoTmcTopicGroupAddAPIResponse topic分组路由 API返回值 taobao.tmc.topic.group.add

根据topic名称路由消息到不同的分组。(前提:发送方未指定分组名) 如果是需要授权的消息,分组路由先判断用户分组路由(使用taobao.tmc.group.add添加的路由),用户分组路由不存在时,才会判断topic分组路由

func GetTaobaoTmcTopicGroupAddAPIResponse added in v1.3.4

func GetTaobaoTmcTopicGroupAddAPIResponse() *TaobaoTmcTopicGroupAddAPIResponse

GetTaobaoTmcTopicGroupAddAPIResponse 从 sync.Pool 获取 TaobaoTmcTopicGroupAddAPIResponse

func (*TaobaoTmcTopicGroupAddAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcTopicGroupAddAPIResponseModel added in v1.2.0

type TaobaoTmcTopicGroupAddAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_topic_group_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// true
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoTmcTopicGroupAddAPIResponseModel is topic分组路由 成功返回结果

func (*TaobaoTmcTopicGroupAddAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcTopicGroupDeleteAPIRequest added in v1.2.0

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

TaobaoTmcTopicGroupDeleteAPIRequest 删除消息topic分组路由 API请求 taobao.tmc.topic.group.delete

删除根据topic名称路由消息到不同的分组关系

func GetTaobaoTmcTopicGroupDeleteAPIRequest added in v1.3.4

func GetTaobaoTmcTopicGroupDeleteAPIRequest() *TaobaoTmcTopicGroupDeleteAPIRequest

GetTaobaoTmcTopicGroupDeleteRequest 从 sync.Pool 获取 TaobaoTmcTopicGroupDeleteAPIRequest

func NewTaobaoTmcTopicGroupDeleteRequest

func NewTaobaoTmcTopicGroupDeleteRequest() *TaobaoTmcTopicGroupDeleteAPIRequest

NewTaobaoTmcTopicGroupDeleteRequest 初始化TaobaoTmcTopicGroupDeleteAPIRequest对象

func (TaobaoTmcTopicGroupDeleteAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcTopicGroupDeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcTopicGroupDeleteAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcTopicGroupDeleteAPIRequest) GetGroupId added in v1.2.0

GetGroupId GroupId Getter

func (TaobaoTmcTopicGroupDeleteAPIRequest) GetGroupName added in v1.2.0

GetGroupName GroupName Getter

func (TaobaoTmcTopicGroupDeleteAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoTmcTopicGroupDeleteAPIRequest) GetTopics added in v1.2.0

GetTopics Topics Getter

func (*TaobaoTmcTopicGroupDeleteAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcTopicGroupDeleteAPIRequest) SetGroupId added in v1.2.0

func (r *TaobaoTmcTopicGroupDeleteAPIRequest) SetGroupId(_groupId int64) error

SetGroupId is GroupId Setter 消息分组Id,一般不用填写,如果分组已经被删除,则根据问题排查工具返回的ID删除路由关系

func (*TaobaoTmcTopicGroupDeleteAPIRequest) SetGroupName added in v1.2.0

func (r *TaobaoTmcTopicGroupDeleteAPIRequest) SetGroupName(_groupName string) error

SetGroupName is GroupName Setter 消息分组名

func (*TaobaoTmcTopicGroupDeleteAPIRequest) SetTopics added in v1.2.0

func (r *TaobaoTmcTopicGroupDeleteAPIRequest) SetTopics(_topics []string) error

SetTopics is Topics Setter 消息topic名称,多个以逗号(,)分割

type TaobaoTmcTopicGroupDeleteAPIResponse

type TaobaoTmcTopicGroupDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoTmcTopicGroupDeleteAPIResponseModel
}

TaobaoTmcTopicGroupDeleteAPIResponse 删除消息topic分组路由 API返回值 taobao.tmc.topic.group.delete

删除根据topic名称路由消息到不同的分组关系

func GetTaobaoTmcTopicGroupDeleteAPIResponse added in v1.3.4

func GetTaobaoTmcTopicGroupDeleteAPIResponse() *TaobaoTmcTopicGroupDeleteAPIResponse

GetTaobaoTmcTopicGroupDeleteAPIResponse 从 sync.Pool 获取 TaobaoTmcTopicGroupDeleteAPIResponse

func (*TaobaoTmcTopicGroupDeleteAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcTopicGroupDeleteAPIResponseModel added in v1.2.0

type TaobaoTmcTopicGroupDeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_topic_group_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// true
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoTmcTopicGroupDeleteAPIResponseModel is 删除消息topic分组路由 成功返回结果

func (*TaobaoTmcTopicGroupDeleteAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcUserCancelAPIRequest added in v1.2.0

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

TaobaoTmcUserCancelAPIRequest 取消用户的消息服务 API请求 taobao.tmc.user.cancel

取消用户的消息服务

func GetTaobaoTmcUserCancelAPIRequest added in v1.3.4

func GetTaobaoTmcUserCancelAPIRequest() *TaobaoTmcUserCancelAPIRequest

GetTaobaoTmcUserCancelRequest 从 sync.Pool 获取 TaobaoTmcUserCancelAPIRequest

func NewTaobaoTmcUserCancelRequest

func NewTaobaoTmcUserCancelRequest() *TaobaoTmcUserCancelAPIRequest

NewTaobaoTmcUserCancelRequest 初始化TaobaoTmcUserCancelAPIRequest对象

func (TaobaoTmcUserCancelAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcUserCancelAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcUserCancelAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcUserCancelAPIRequest) GetNick added in v1.2.0

GetNick Nick Getter

func (TaobaoTmcUserCancelAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoTmcUserCancelAPIRequest) GetRawParams() model.Params

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

func (TaobaoTmcUserCancelAPIRequest) GetUserPlatform added in v1.2.0

func (r TaobaoTmcUserCancelAPIRequest) GetUserPlatform() string

GetUserPlatform UserPlatform Getter

func (*TaobaoTmcUserCancelAPIRequest) Reset added in v1.3.4

func (r *TaobaoTmcUserCancelAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcUserCancelAPIRequest) SetNick added in v1.2.0

func (r *TaobaoTmcUserCancelAPIRequest) SetNick(_nick string) error

SetNick is Nick Setter 用户昵称

func (*TaobaoTmcUserCancelAPIRequest) SetUserPlatform added in v1.2.0

func (r *TaobaoTmcUserCancelAPIRequest) SetUserPlatform(_userPlatform string) error

SetUserPlatform is UserPlatform Setter 用户所属的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户

type TaobaoTmcUserCancelAPIResponse

type TaobaoTmcUserCancelAPIResponse struct {
	model.CommonResponse
	TaobaoTmcUserCancelAPIResponseModel
}

TaobaoTmcUserCancelAPIResponse 取消用户的消息服务 API返回值 taobao.tmc.user.cancel

取消用户的消息服务

func GetTaobaoTmcUserCancelAPIResponse added in v1.3.4

func GetTaobaoTmcUserCancelAPIResponse() *TaobaoTmcUserCancelAPIResponse

GetTaobaoTmcUserCancelAPIResponse 从 sync.Pool 获取 TaobaoTmcUserCancelAPIResponse

func (*TaobaoTmcUserCancelAPIResponse) Reset added in v1.3.4

func (m *TaobaoTmcUserCancelAPIResponse) Reset()

Reset 清空结构体

type TaobaoTmcUserCancelAPIResponseModel added in v1.2.0

type TaobaoTmcUserCancelAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_user_cancel_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功,如果为false并且没有错误码,表示删除的用户不存在。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoTmcUserCancelAPIResponseModel is 取消用户的消息服务 成功返回结果

func (*TaobaoTmcUserCancelAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcUserGetAPIRequest added in v1.2.0

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

TaobaoTmcUserGetAPIRequest 获取用户已开通消息 API请求 taobao.tmc.user.get

查询指定用户开通的消息通道和组

func GetTaobaoTmcUserGetAPIRequest added in v1.3.4

func GetTaobaoTmcUserGetAPIRequest() *TaobaoTmcUserGetAPIRequest

GetTaobaoTmcUserGetRequest 从 sync.Pool 获取 TaobaoTmcUserGetAPIRequest

func NewTaobaoTmcUserGetRequest

func NewTaobaoTmcUserGetRequest() *TaobaoTmcUserGetAPIRequest

NewTaobaoTmcUserGetRequest 初始化TaobaoTmcUserGetAPIRequest对象

func (TaobaoTmcUserGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcUserGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcUserGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcUserGetAPIRequest) GetFields added in v1.2.0

func (r TaobaoTmcUserGetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaoTmcUserGetAPIRequest) GetNick added in v1.2.0

func (r TaobaoTmcUserGetAPIRequest) GetNick() string

GetNick Nick Getter

func (TaobaoTmcUserGetAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoTmcUserGetAPIRequest) GetRawParams() model.Params

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

func (TaobaoTmcUserGetAPIRequest) GetUserPlatform added in v1.2.0

func (r TaobaoTmcUserGetAPIRequest) GetUserPlatform() string

GetUserPlatform UserPlatform Getter

func (*TaobaoTmcUserGetAPIRequest) Reset added in v1.3.4

func (r *TaobaoTmcUserGetAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcUserGetAPIRequest) SetFields added in v1.2.0

func (r *TaobaoTmcUserGetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需返回的字段列表,多个字段以半角逗号分隔。可选值:TmcUser结构体中的所有字段,一定要返回topic。

func (*TaobaoTmcUserGetAPIRequest) SetNick added in v1.2.0

func (r *TaobaoTmcUserGetAPIRequest) SetNick(_nick string) error

SetNick is Nick Setter 用户昵称

func (*TaobaoTmcUserGetAPIRequest) SetUserPlatform added in v1.2.0

func (r *TaobaoTmcUserGetAPIRequest) SetUserPlatform(_userPlatform string) error

SetUserPlatform is UserPlatform Setter 用户所属的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户

type TaobaoTmcUserGetAPIResponse

type TaobaoTmcUserGetAPIResponse struct {
	model.CommonResponse
	TaobaoTmcUserGetAPIResponseModel
}

TaobaoTmcUserGetAPIResponse 获取用户已开通消息 API返回值 taobao.tmc.user.get

查询指定用户开通的消息通道和组

func GetTaobaoTmcUserGetAPIResponse added in v1.3.4

func GetTaobaoTmcUserGetAPIResponse() *TaobaoTmcUserGetAPIResponse

GetTaobaoTmcUserGetAPIResponse 从 sync.Pool 获取 TaobaoTmcUserGetAPIResponse

func (*TaobaoTmcUserGetAPIResponse) Reset added in v1.3.4

func (m *TaobaoTmcUserGetAPIResponse) Reset()

Reset 清空结构体

type TaobaoTmcUserGetAPIResponseModel added in v1.2.0

type TaobaoTmcUserGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_user_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 开通的用户数据
	TmcUser *TmcUser `json:"tmc_user,omitempty" xml:"tmc_user,omitempty"`
}

TaobaoTmcUserGetAPIResponseModel is 获取用户已开通消息 成功返回结果

func (*TaobaoTmcUserGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcUserPermitAPIRequest added in v1.2.0

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

TaobaoTmcUserPermitAPIRequest 为已授权的用户开通消息服务 API请求 taobao.tmc.user.permit

为已授权的用户开通消息服务,授权消息使用。<br/><span style="color:red">注意:topic覆盖更新,务必传入全量topic,或者不传topics,使用appkey订阅的所有topic</span>

func GetTaobaoTmcUserPermitAPIRequest added in v1.3.4

func GetTaobaoTmcUserPermitAPIRequest() *TaobaoTmcUserPermitAPIRequest

GetTaobaoTmcUserPermitRequest 从 sync.Pool 获取 TaobaoTmcUserPermitAPIRequest

func NewTaobaoTmcUserPermitRequest

func NewTaobaoTmcUserPermitRequest() *TaobaoTmcUserPermitAPIRequest

NewTaobaoTmcUserPermitRequest 初始化TaobaoTmcUserPermitAPIRequest对象

func (TaobaoTmcUserPermitAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcUserPermitAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcUserPermitAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcUserPermitAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoTmcUserPermitAPIRequest) GetRawParams() model.Params

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

func (TaobaoTmcUserPermitAPIRequest) GetTopics added in v1.2.0

func (r TaobaoTmcUserPermitAPIRequest) GetTopics() []string

GetTopics Topics Getter

func (*TaobaoTmcUserPermitAPIRequest) Reset added in v1.3.4

func (r *TaobaoTmcUserPermitAPIRequest) Reset()

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcUserPermitAPIRequest) SetTopics added in v1.2.0

func (r *TaobaoTmcUserPermitAPIRequest) SetTopics(_topics []string) error

SetTopics is Topics Setter 消息主题列表,用半角逗号分隔。当用户订阅的topic是应用订阅的子集时才需要设置,不设置表示继承应用所订阅的所有topic,一般情况建议不要设置。

type TaobaoTmcUserPermitAPIResponse

type TaobaoTmcUserPermitAPIResponse struct {
	model.CommonResponse
	TaobaoTmcUserPermitAPIResponseModel
}

TaobaoTmcUserPermitAPIResponse 为已授权的用户开通消息服务 API返回值 taobao.tmc.user.permit

为已授权的用户开通消息服务,授权消息使用。<br/><span style="color:red">注意:topic覆盖更新,务必传入全量topic,或者不传topics,使用appkey订阅的所有topic</span>

func GetTaobaoTmcUserPermitAPIResponse added in v1.3.4

func GetTaobaoTmcUserPermitAPIResponse() *TaobaoTmcUserPermitAPIResponse

GetTaobaoTmcUserPermitAPIResponse 从 sync.Pool 获取 TaobaoTmcUserPermitAPIResponse

func (*TaobaoTmcUserPermitAPIResponse) Reset added in v1.3.4

func (m *TaobaoTmcUserPermitAPIResponse) Reset()

Reset 清空结构体

type TaobaoTmcUserPermitAPIResponseModel added in v1.2.0

type TaobaoTmcUserPermitAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_user_permit_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoTmcUserPermitAPIResponseModel is 为已授权的用户开通消息服务 成功返回结果

func (*TaobaoTmcUserPermitAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcUserTopicsGetAPIRequest added in v1.2.0

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

TaobaoTmcUserTopicsGetAPIRequest 获取用户开通的topic列表 API请求 taobao.tmc.user.topics.get

获取用户开通的topic列表,授权消息使用

func GetTaobaoTmcUserTopicsGetAPIRequest added in v1.3.4

func GetTaobaoTmcUserTopicsGetAPIRequest() *TaobaoTmcUserTopicsGetAPIRequest

GetTaobaoTmcUserTopicsGetRequest 从 sync.Pool 获取 TaobaoTmcUserTopicsGetAPIRequest

func NewTaobaoTmcUserTopicsGetRequest

func NewTaobaoTmcUserTopicsGetRequest() *TaobaoTmcUserTopicsGetAPIRequest

NewTaobaoTmcUserTopicsGetRequest 初始化TaobaoTmcUserTopicsGetAPIRequest对象

func (TaobaoTmcUserTopicsGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTmcUserTopicsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTmcUserTopicsGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTmcUserTopicsGetAPIRequest) GetNick added in v1.2.0

GetNick Nick Getter

func (TaobaoTmcUserTopicsGetAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoTmcUserTopicsGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoTmcUserTopicsGetAPIRequest) SetNick added in v1.2.0

func (r *TaobaoTmcUserTopicsGetAPIRequest) SetNick(_nick string) error

SetNick is Nick Setter 卖家nick

type TaobaoTmcUserTopicsGetAPIResponse

type TaobaoTmcUserTopicsGetAPIResponse struct {
	model.CommonResponse
	TaobaoTmcUserTopicsGetAPIResponseModel
}

TaobaoTmcUserTopicsGetAPIResponse 获取用户开通的topic列表 API返回值 taobao.tmc.user.topics.get

获取用户开通的topic列表,授权消息使用

func GetTaobaoTmcUserTopicsGetAPIResponse added in v1.3.4

func GetTaobaoTmcUserTopicsGetAPIResponse() *TaobaoTmcUserTopicsGetAPIResponse

GetTaobaoTmcUserTopicsGetAPIResponse 从 sync.Pool 获取 TaobaoTmcUserTopicsGetAPIResponse

func (*TaobaoTmcUserTopicsGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoTmcUserTopicsGetAPIResponseModel added in v1.2.0

type TaobaoTmcUserTopicsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmc_user_topics_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// topic列表
	Topics []string `json:"topics,omitempty" xml:"topics>string,omitempty"`
	// 错误信息
	ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"`
	// 错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

TaobaoTmcUserTopicsGetAPIResponseModel is 获取用户开通的topic列表 成功返回结果

func (*TaobaoTmcUserTopicsGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TmcGroup

type TmcGroup struct {
	// 分组名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
}

TmcGroup 结构体

func GetTmcGroup added in v1.3.4

func GetTmcGroup() *TmcGroup

GetTmcGroup() 从对象池中获取TmcGroup

type TmcMessage

type TmcMessage struct {
	// 用户的昵称
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`
	// 消息详细内容,格式为JSON/XML
	Content string `json:"content,omitempty" xml:"content,omitempty"`
	// 消息发布时间
	PubTime string `json:"pub_time,omitempty" xml:"pub_time,omitempty"`
	// 消息发布者的AppKey
	PubAppKey string `json:"pub_app_key,omitempty" xml:"pub_app_key,omitempty"`
	// 消息所属主题
	Topic string `json:"topic,omitempty" xml:"topic,omitempty"`
	// 消息所属的用户编号
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 消息ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

TmcMessage 结构体

func GetTmcMessage added in v1.3.4

func GetTmcMessage() *TmcMessage

GetTmcMessage() 从对象池中获取TmcMessage

type TmcProduceResult

type TmcProduceResult struct {
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TmcProduceResult 结构体

func GetTmcProduceResult added in v1.3.4

func GetTmcProduceResult() *TmcProduceResult

GetTmcProduceResult() 从对象池中获取TmcProduceResult

type TmcPublishMessage

type TmcPublishMessage struct {
	// 消息内容的JSON表述,必须按照topic的定义来填充
	Content string `json:"content,omitempty" xml:"content,omitempty"`
	// 目标分组
	TargetGroup string `json:"target_group,omitempty" xml:"target_group,omitempty"`
	// 消息类型
	Topic string `json:"topic,omitempty" xml:"topic,omitempty"`
}

TmcPublishMessage 结构体

func GetTmcPublishMessage added in v1.3.4

func GetTmcPublishMessage() *TmcPublishMessage

GetTmcPublishMessage() 从对象池中获取TmcPublishMessage

type TmcQueueInfo

type TmcQueueInfo struct {
	// TMC组名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 消息队列Broker名称
	BrokerName string `json:"broker_name,omitempty" xml:"broker_name,omitempty"`
	// 当前队列当天读取量
	GetTotal int64 `json:"get_total,omitempty" xml:"get_total,omitempty"`
	// 当前队列当天写入量
	PutToal int64 `json:"put_toal,omitempty" xml:"put_toal,omitempty"`
}

TmcQueueInfo 结构体

func GetTmcQueueInfo added in v1.3.4

func GetTmcQueueInfo() *TmcQueueInfo

GetTmcQueueInfo() 从对象池中获取TmcQueueInfo

type TmcUser

type TmcUser struct {
	// 用户开通的消息类型列表。如果为空表示应用开通的所有类型
	Topics []string `json:"topics,omitempty" xml:"topics>string,omitempty"`
	// 用户首次开通时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 接收用户消息的组名
	GroupName string `json:"group_name,omitempty" xml:"group_name,omitempty"`
	// 用户最后开通时间
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 用户昵称
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`
	// 用户所属的平台类型,tbUIC:淘宝用户; icbu: icbu用户
	UserPlatform string `json:"user_platform,omitempty" xml:"user_platform,omitempty"`
	// 用户ID
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 用户授权是否有效,true表示授权有效,false表示授权过期
	IsValid bool `json:"is_valid,omitempty" xml:"is_valid,omitempty"`
}

TmcUser 结构体

func GetTmcUser added in v1.3.4

func GetTmcUser() *TmcUser

GetTmcUser() 从对象池中获取TmcUser

Jump to

Keyboard shortcuts

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