tmc

package
v1.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaLsyMiniappMsgPushAPIResponse

type AlibabaLsyMiniappMsgPushAPIResponse struct {
	model.CommonResponse
	AlibabaLsyMiniappMsgPushResponse
}

零售云小程序消息推送 APIResponse alibaba.lsy.miniapp.msg.push

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

type AlibabaLsyMiniappMsgPushRequest

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

零售云小程序消息推送 APIRequest alibaba.lsy.miniapp.msg.push

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

func NewAlibabaLsyMiniappMsgPushRequest

func NewAlibabaLsyMiniappMsgPushRequest() *AlibabaLsyMiniappMsgPushRequest

func (AlibabaLsyMiniappMsgPushRequest) GetApiMethodName

func (r AlibabaLsyMiniappMsgPushRequest) GetApiMethodName() string

func (AlibabaLsyMiniappMsgPushRequest) GetApiParams

func (r AlibabaLsyMiniappMsgPushRequest) GetApiParams() url.Values

func (AlibabaLsyMiniappMsgPushRequest) GetAppId

func (AlibabaLsyMiniappMsgPushRequest) GetMsgId

func (AlibabaLsyMiniappMsgPushRequest) GetParams

func (AlibabaLsyMiniappMsgPushRequest) GetStoreId

func (r AlibabaLsyMiniappMsgPushRequest) GetStoreId() int64

func (AlibabaLsyMiniappMsgPushRequest) GetTemplateId

func (r AlibabaLsyMiniappMsgPushRequest) GetTemplateId() string

func (*AlibabaLsyMiniappMsgPushRequest) SetAppId

func (r *AlibabaLsyMiniappMsgPushRequest) SetAppId(appId string) error

func (*AlibabaLsyMiniappMsgPushRequest) SetMsgId

func (r *AlibabaLsyMiniappMsgPushRequest) SetMsgId(msgId int64) error

func (*AlibabaLsyMiniappMsgPushRequest) SetParams

func (r *AlibabaLsyMiniappMsgPushRequest) SetParams(params string) error

func (*AlibabaLsyMiniappMsgPushRequest) SetStoreId

func (r *AlibabaLsyMiniappMsgPushRequest) SetStoreId(storeId int64) error

func (*AlibabaLsyMiniappMsgPushRequest) SetTemplateId

func (r *AlibabaLsyMiniappMsgPushRequest) SetTemplateId(templateId string) error

type AlibabaLsyMiniappMsgPushResponse

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

type AlipayXiaodaiUserPermitAPIResponse

type AlipayXiaodaiUserPermitAPIResponse struct {
	model.CommonResponse
	AlipayXiaodaiUserPermitResponse
}

阿里金融用户授权 APIResponse alipay.xiaodai.user.permit

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

type AlipayXiaodaiUserPermitRequest

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

阿里金融用户授权 APIRequest alipay.xiaodai.user.permit

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

func NewAlipayXiaodaiUserPermitRequest

func NewAlipayXiaodaiUserPermitRequest() *AlipayXiaodaiUserPermitRequest

func (AlipayXiaodaiUserPermitRequest) GetApiMethodName

func (r AlipayXiaodaiUserPermitRequest) GetApiMethodName() string

func (AlipayXiaodaiUserPermitRequest) GetApiParams

func (r AlipayXiaodaiUserPermitRequest) GetApiParams() url.Values

func (AlipayXiaodaiUserPermitRequest) GetUserId

func (r AlipayXiaodaiUserPermitRequest) GetUserId() int64

func (*AlipayXiaodaiUserPermitRequest) SetUserId

func (r *AlipayXiaodaiUserPermitRequest) SetUserId(userId int64) error

type AlipayXiaodaiUserPermitResponse

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

type GiftMessageBizCondition

type GiftMessageBizCondition struct {
	Paginator *Paginator `json:"paginator,omitempty" xml:"paginator,omitempty"`

	ValidateDate string `json:"validate_date,omitempty" xml:"validate_date,omitempty"`

	ReceiverId string `json:"receiver_id,omitempty" xml:"receiver_id,omitempty"`

	MessageStatus int64 `json:"message_status,omitempty" xml:"message_status,omitempty"`

	Id int64 `json:"id,omitempty" xml:"id,omitempty"`

	Sort int64 `json:"sort,omitempty" xml:"sort,omitempty"`
}

GiftMessageBizCondition

type Paginator

type Paginator struct {
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`

	CurrentPageNum int64 `json:"current_page_num,omitempty" xml:"current_page_num,omitempty"`
}

Paginator

type TaobaoIstoreGiftingMessageGetAPIResponse

type TaobaoIstoreGiftingMessageGetAPIResponse struct {
	model.CommonResponse
	TaobaoIstoreGiftingMessageGetResponse
}

gifting消息获取 APIResponse taobao.istore.gifting.message.get

该api通过参数查询对应的gifting消息

type TaobaoIstoreGiftingMessageGetRequest

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

gifting消息获取 APIRequest taobao.istore.gifting.message.get

该api通过参数查询对应的gifting消息

func NewTaobaoIstoreGiftingMessageGetRequest

func NewTaobaoIstoreGiftingMessageGetRequest() *TaobaoIstoreGiftingMessageGetRequest

func (TaobaoIstoreGiftingMessageGetRequest) GetApiMethodName

func (r TaobaoIstoreGiftingMessageGetRequest) GetApiMethodName() string

func (TaobaoIstoreGiftingMessageGetRequest) GetApiParams

func (TaobaoIstoreGiftingMessageGetRequest) GetGiftMessageBizCondition

func (r TaobaoIstoreGiftingMessageGetRequest) GetGiftMessageBizCondition() *GiftMessageBizCondition

func (*TaobaoIstoreGiftingMessageGetRequest) SetGiftMessageBizCondition

func (r *TaobaoIstoreGiftingMessageGetRequest) SetGiftMessageBizCondition(giftMessageBizCondition *GiftMessageBizCondition) error

type TaobaoIstoreGiftingMessageGetResponse

type TaobaoIstoreGiftingMessageGetResponse struct {
	XMLName   xml.Name `xml:"istore_gifting_message_get_response"`
	RequestId string   `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识

	Result *TaobaoIstoreGiftingMessageGetResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

type TaobaoIstoreGiftingMessageGetResultDto

type TaobaoIstoreGiftingMessageGetResultDto struct {
	ResultList []string `json:"result_list,omitempty" xml:"result_list>string,omitempty"`

	BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"`

	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`

	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`

	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoIstoreGiftingMessageGetResultDto

type TaobaoTmcGroupAddAPIResponse

type TaobaoTmcGroupAddAPIResponse struct {
	model.CommonResponse
	TaobaoTmcGroupAddResponse
}

为已开通用户添加用户分组 APIResponse taobao.tmc.group.add

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

type TaobaoTmcGroupAddRequest

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

为已开通用户添加用户分组 APIRequest taobao.tmc.group.add

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

func NewTaobaoTmcGroupAddRequest

func NewTaobaoTmcGroupAddRequest() *TaobaoTmcGroupAddRequest

func (TaobaoTmcGroupAddRequest) GetApiMethodName

func (r TaobaoTmcGroupAddRequest) GetApiMethodName() string

func (TaobaoTmcGroupAddRequest) GetApiParams

func (r TaobaoTmcGroupAddRequest) GetApiParams() url.Values

func (TaobaoTmcGroupAddRequest) GetGroupName

func (r TaobaoTmcGroupAddRequest) GetGroupName() string

func (TaobaoTmcGroupAddRequest) GetNicks

func (r TaobaoTmcGroupAddRequest) GetNicks() []string

func (TaobaoTmcGroupAddRequest) GetUserPlatform

func (r TaobaoTmcGroupAddRequest) GetUserPlatform() string

func (*TaobaoTmcGroupAddRequest) SetGroupName

func (r *TaobaoTmcGroupAddRequest) SetGroupName(groupName string) error

func (*TaobaoTmcGroupAddRequest) SetNicks

func (r *TaobaoTmcGroupAddRequest) SetNicks(nicks []string) error

func (*TaobaoTmcGroupAddRequest) SetUserPlatform

func (r *TaobaoTmcGroupAddRequest) SetUserPlatform(userPlatform string) error

type TaobaoTmcGroupAddResponse

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

type TaobaoTmcGroupDeleteAPIResponse

type TaobaoTmcGroupDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoTmcGroupDeleteResponse
}

删除指定的分组或分组下的用户 APIResponse taobao.tmc.group.delete

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

type TaobaoTmcGroupDeleteRequest

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

删除指定的分组或分组下的用户 APIRequest taobao.tmc.group.delete

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

func NewTaobaoTmcGroupDeleteRequest

func NewTaobaoTmcGroupDeleteRequest() *TaobaoTmcGroupDeleteRequest

func (TaobaoTmcGroupDeleteRequest) GetApiMethodName

func (r TaobaoTmcGroupDeleteRequest) GetApiMethodName() string

func (TaobaoTmcGroupDeleteRequest) GetApiParams

func (r TaobaoTmcGroupDeleteRequest) GetApiParams() url.Values

func (TaobaoTmcGroupDeleteRequest) GetGroupName

func (r TaobaoTmcGroupDeleteRequest) GetGroupName() string

func (TaobaoTmcGroupDeleteRequest) GetNicks

func (r TaobaoTmcGroupDeleteRequest) GetNicks() []string

func (TaobaoTmcGroupDeleteRequest) GetUserPlatform

func (r TaobaoTmcGroupDeleteRequest) GetUserPlatform() string

func (*TaobaoTmcGroupDeleteRequest) SetGroupName

func (r *TaobaoTmcGroupDeleteRequest) SetGroupName(groupName string) error

func (*TaobaoTmcGroupDeleteRequest) SetNicks

func (r *TaobaoTmcGroupDeleteRequest) SetNicks(nicks []string) error

func (*TaobaoTmcGroupDeleteRequest) SetUserPlatform

func (r *TaobaoTmcGroupDeleteRequest) SetUserPlatform(userPlatform string) error

type TaobaoTmcGroupDeleteResponse

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

type TaobaoTmcGroupsGetAPIResponse

type TaobaoTmcGroupsGetAPIResponse struct {
	model.CommonResponse
	TaobaoTmcGroupsGetResponse
}

获取自定义用户分组列表 APIResponse taobao.tmc.groups.get

获取自定义用户分组列表

type TaobaoTmcGroupsGetRequest

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

获取自定义用户分组列表 APIRequest taobao.tmc.groups.get

获取自定义用户分组列表

func NewTaobaoTmcGroupsGetRequest

func NewTaobaoTmcGroupsGetRequest() *TaobaoTmcGroupsGetRequest

func (TaobaoTmcGroupsGetRequest) GetApiMethodName

func (r TaobaoTmcGroupsGetRequest) GetApiMethodName() string

func (TaobaoTmcGroupsGetRequest) GetApiParams

func (r TaobaoTmcGroupsGetRequest) GetApiParams() url.Values

func (TaobaoTmcGroupsGetRequest) GetGroupNames

func (r TaobaoTmcGroupsGetRequest) GetGroupNames() []string

func (TaobaoTmcGroupsGetRequest) GetPageNo

func (r TaobaoTmcGroupsGetRequest) GetPageNo() int64

func (TaobaoTmcGroupsGetRequest) GetPageSize

func (r TaobaoTmcGroupsGetRequest) GetPageSize() int64

func (*TaobaoTmcGroupsGetRequest) SetGroupNames

func (r *TaobaoTmcGroupsGetRequest) SetGroupNames(groupNames []string) error

func (*TaobaoTmcGroupsGetRequest) SetPageNo

func (r *TaobaoTmcGroupsGetRequest) SetPageNo(pageNo int64) error

func (*TaobaoTmcGroupsGetRequest) SetPageSize

func (r *TaobaoTmcGroupsGetRequest) SetPageSize(pageSize int64) error

type TaobaoTmcGroupsGetResponse

type TaobaoTmcGroupsGetResponse struct {
	XMLName   xml.Name `xml:"tmc_groups_get_response"`
	RequestId string   `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识

	Groups []TmcGroup `json:"groups,omitempty" xml:"groups>tmc_group,omitempty"`

	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

type TaobaoTmcMessageProduceAPIResponse

type TaobaoTmcMessageProduceAPIResponse struct {
	model.CommonResponse
	TaobaoTmcMessageProduceResponse
}

发布单条消息 APIResponse taobao.tmc.message.produce

发布单条消息

type TaobaoTmcMessageProduceRequest

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

发布单条消息 APIRequest taobao.tmc.message.produce

发布单条消息

func NewTaobaoTmcMessageProduceRequest

func NewTaobaoTmcMessageProduceRequest() *TaobaoTmcMessageProduceRequest

func (TaobaoTmcMessageProduceRequest) GetApiMethodName

func (r TaobaoTmcMessageProduceRequest) GetApiMethodName() string

func (TaobaoTmcMessageProduceRequest) GetApiParams

func (r TaobaoTmcMessageProduceRequest) GetApiParams() url.Values

func (TaobaoTmcMessageProduceRequest) GetContent

func (r TaobaoTmcMessageProduceRequest) GetContent() string

func (TaobaoTmcMessageProduceRequest) GetMediaContent

func (r TaobaoTmcMessageProduceRequest) GetMediaContent() []*model.File

func (TaobaoTmcMessageProduceRequest) GetMediaContent2

func (r TaobaoTmcMessageProduceRequest) GetMediaContent2() []*model.File

func (TaobaoTmcMessageProduceRequest) GetMediaContent3

func (r TaobaoTmcMessageProduceRequest) GetMediaContent3() []*model.File

func (TaobaoTmcMessageProduceRequest) GetMediaContent4

func (r TaobaoTmcMessageProduceRequest) GetMediaContent4() []*model.File

func (TaobaoTmcMessageProduceRequest) GetMediaContent5

func (r TaobaoTmcMessageProduceRequest) GetMediaContent5() []*model.File

func (TaobaoTmcMessageProduceRequest) GetTargetGroup

func (r TaobaoTmcMessageProduceRequest) GetTargetGroup() string

func (TaobaoTmcMessageProduceRequest) GetTopic

func (*TaobaoTmcMessageProduceRequest) SetContent

func (r *TaobaoTmcMessageProduceRequest) SetContent(content string) error

func (*TaobaoTmcMessageProduceRequest) SetMediaContent

func (r *TaobaoTmcMessageProduceRequest) SetMediaContent(mediaContent []*model.File) error

func (*TaobaoTmcMessageProduceRequest) SetMediaContent2

func (r *TaobaoTmcMessageProduceRequest) SetMediaContent2(mediaContent2 []*model.File) error

func (*TaobaoTmcMessageProduceRequest) SetMediaContent3

func (r *TaobaoTmcMessageProduceRequest) SetMediaContent3(mediaContent3 []*model.File) error

func (*TaobaoTmcMessageProduceRequest) SetMediaContent4

func (r *TaobaoTmcMessageProduceRequest) SetMediaContent4(mediaContent4 []*model.File) error

func (*TaobaoTmcMessageProduceRequest) SetMediaContent5

func (r *TaobaoTmcMessageProduceRequest) SetMediaContent5(mediaContent5 []*model.File) error

func (*TaobaoTmcMessageProduceRequest) SetTargetGroup

func (r *TaobaoTmcMessageProduceRequest) SetTargetGroup(targetGroup string) error

func (*TaobaoTmcMessageProduceRequest) SetTopic

func (r *TaobaoTmcMessageProduceRequest) SetTopic(topic string) error

type TaobaoTmcMessageProduceResponse

type TaobaoTmcMessageProduceResponse struct {
	XMLName   xml.Name `xml:"tmc_message_produce_response"`
	RequestId string   `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识

	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`

	Total int64 `json:"total,omitempty" xml:"total,omitempty"`

	MsgIds []string `json:"msg_ids,omitempty" xml:"msg_ids>string,omitempty"`
}

type TaobaoTmcMessagesConfirmAPIResponse

type TaobaoTmcMessagesConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoTmcMessagesConfirmResponse
}

确认消费消息的状态 APIResponse taobao.tmc.messages.confirm

确认消费消息的状态

type TaobaoTmcMessagesConfirmRequest

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

确认消费消息的状态 APIRequest taobao.tmc.messages.confirm

确认消费消息的状态

func NewTaobaoTmcMessagesConfirmRequest

func NewTaobaoTmcMessagesConfirmRequest() *TaobaoTmcMessagesConfirmRequest

func (TaobaoTmcMessagesConfirmRequest) GetApiMethodName

func (r TaobaoTmcMessagesConfirmRequest) GetApiMethodName() string

func (TaobaoTmcMessagesConfirmRequest) GetApiParams

func (r TaobaoTmcMessagesConfirmRequest) GetApiParams() url.Values

func (TaobaoTmcMessagesConfirmRequest) GetFMessageIds

func (r TaobaoTmcMessagesConfirmRequest) GetFMessageIds() []int64

func (TaobaoTmcMessagesConfirmRequest) GetGroupName

func (r TaobaoTmcMessagesConfirmRequest) GetGroupName() string

func (TaobaoTmcMessagesConfirmRequest) GetSMessageIds

func (r TaobaoTmcMessagesConfirmRequest) GetSMessageIds() []int64

func (*TaobaoTmcMessagesConfirmRequest) SetFMessageIds

func (r *TaobaoTmcMessagesConfirmRequest) SetFMessageIds(fMessageIds []int64) error

func (*TaobaoTmcMessagesConfirmRequest) SetGroupName

func (r *TaobaoTmcMessagesConfirmRequest) SetGroupName(groupName string) error

func (*TaobaoTmcMessagesConfirmRequest) SetSMessageIds

func (r *TaobaoTmcMessagesConfirmRequest) SetSMessageIds(sMessageIds []int64) error

type TaobaoTmcMessagesConfirmResponse

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

type TaobaoTmcMessagesConsumeAPIResponse

type TaobaoTmcMessagesConsumeAPIResponse struct {
	model.CommonResponse
	TaobaoTmcMessagesConsumeResponse
}

消费多条消息 APIResponse taobao.tmc.messages.consume

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

type TaobaoTmcMessagesConsumeRequest

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

消费多条消息 APIRequest taobao.tmc.messages.consume

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

func NewTaobaoTmcMessagesConsumeRequest

func NewTaobaoTmcMessagesConsumeRequest() *TaobaoTmcMessagesConsumeRequest

func (TaobaoTmcMessagesConsumeRequest) GetApiMethodName

func (r TaobaoTmcMessagesConsumeRequest) GetApiMethodName() string

func (TaobaoTmcMessagesConsumeRequest) GetApiParams

func (r TaobaoTmcMessagesConsumeRequest) GetApiParams() url.Values

func (TaobaoTmcMessagesConsumeRequest) GetGroupName

func (r TaobaoTmcMessagesConsumeRequest) GetGroupName() string

func (TaobaoTmcMessagesConsumeRequest) GetQuantity

func (r TaobaoTmcMessagesConsumeRequest) GetQuantity() int64

func (*TaobaoTmcMessagesConsumeRequest) SetGroupName

func (r *TaobaoTmcMessagesConsumeRequest) SetGroupName(groupName string) error

func (*TaobaoTmcMessagesConsumeRequest) SetQuantity

func (r *TaobaoTmcMessagesConsumeRequest) SetQuantity(quantity int64) error

type TaobaoTmcMessagesConsumeResponse

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

type TaobaoTmcMessagesProduceAPIResponse

type TaobaoTmcMessagesProduceAPIResponse struct {
	model.CommonResponse
	TaobaoTmcMessagesProduceResponse
}

批量发送消息 APIResponse taobao.tmc.messages.produce

批量发送消息

type TaobaoTmcMessagesProduceRequest

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

批量发送消息 APIRequest taobao.tmc.messages.produce

批量发送消息

func NewTaobaoTmcMessagesProduceRequest

func NewTaobaoTmcMessagesProduceRequest() *TaobaoTmcMessagesProduceRequest

func (TaobaoTmcMessagesProduceRequest) GetApiMethodName

func (r TaobaoTmcMessagesProduceRequest) GetApiMethodName() string

func (TaobaoTmcMessagesProduceRequest) GetApiParams

func (r TaobaoTmcMessagesProduceRequest) GetApiParams() url.Values

func (TaobaoTmcMessagesProduceRequest) GetMessages

func (*TaobaoTmcMessagesProduceRequest) SetMessages

func (r *TaobaoTmcMessagesProduceRequest) SetMessages(messages []TmcPublishMessage) error

type TaobaoTmcMessagesProduceResponse

type TaobaoTmcMessagesProduceResponse struct {
	XMLName   xml.Name `xml:"tmc_messages_produce_response"`
	RequestId string   `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识

	IsAllSuccess bool `json:"is_all_success,omitempty" xml:"is_all_success,omitempty"`

	Results []TmcProduceResult `json:"results,omitempty" xml:"results>tmc_produce_result,omitempty"`
}

type TaobaoTmcMsgSendrecordAPIResponse

type TaobaoTmcMsgSendrecordAPIResponse struct {
	model.CommonResponse
	TaobaoTmcMsgSendrecordResponse
}

消息发送记录查询 APIResponse taobao.tmc.msg.sendrecord

查询单条消息发送记录,只返回返回条数和时间。

type TaobaoTmcMsgSendrecordRequest

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

消息发送记录查询 APIRequest taobao.tmc.msg.sendrecord

查询单条消息发送记录,只返回返回条数和时间。

func NewTaobaoTmcMsgSendrecordRequest

func NewTaobaoTmcMsgSendrecordRequest() *TaobaoTmcMsgSendrecordRequest

func (TaobaoTmcMsgSendrecordRequest) GetApiMethodName

func (r TaobaoTmcMsgSendrecordRequest) GetApiMethodName() string

func (TaobaoTmcMsgSendrecordRequest) GetApiParams

func (r TaobaoTmcMsgSendrecordRequest) GetApiParams() url.Values

func (TaobaoTmcMsgSendrecordRequest) GetDataId

func (r TaobaoTmcMsgSendrecordRequest) GetDataId() string

func (TaobaoTmcMsgSendrecordRequest) GetGroupName

func (r TaobaoTmcMsgSendrecordRequest) GetGroupName() string

func (TaobaoTmcMsgSendrecordRequest) GetTopicName

func (r TaobaoTmcMsgSendrecordRequest) GetTopicName() string

func (*TaobaoTmcMsgSendrecordRequest) SetDataId

func (r *TaobaoTmcMsgSendrecordRequest) SetDataId(dataId string) error

func (*TaobaoTmcMsgSendrecordRequest) SetGroupName

func (r *TaobaoTmcMsgSendrecordRequest) SetGroupName(groupName string) error

func (*TaobaoTmcMsgSendrecordRequest) SetTopicName

func (r *TaobaoTmcMsgSendrecordRequest) SetTopicName(topicName string) error

type TaobaoTmcMsgSendrecordResponse

type TaobaoTmcMsgSendrecordResponse struct {
	XMLName   xml.Name `xml:"tmc_msg_sendrecord_response"`
	RequestId string   `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识

	TmcSendTimes int64 `json:"tmc_send_times,omitempty" xml:"tmc_send_times,omitempty"`

	TbSendTimes int64 `json:"tb_send_times,omitempty" xml:"tb_send_times,omitempty"`

	TbSendList string `json:"tb_send_list,omitempty" xml:"tb_send_list,omitempty"`

	TmcSendList string `json:"tmc_send_list,omitempty" xml:"tmc_send_list,omitempty"`
}

type TaobaoTmcQueueGetAPIResponse

type TaobaoTmcQueueGetAPIResponse struct {
	model.CommonResponse
	TaobaoTmcQueueGetResponse
}

获取消息队列积压情况 APIResponse taobao.tmc.queue.get

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

type TaobaoTmcQueueGetRequest

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

获取消息队列积压情况 APIRequest taobao.tmc.queue.get

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

func NewTaobaoTmcQueueGetRequest

func NewTaobaoTmcQueueGetRequest() *TaobaoTmcQueueGetRequest

func (TaobaoTmcQueueGetRequest) GetApiMethodName

func (r TaobaoTmcQueueGetRequest) GetApiMethodName() string

func (TaobaoTmcQueueGetRequest) GetApiParams

func (r TaobaoTmcQueueGetRequest) GetApiParams() url.Values

func (TaobaoTmcQueueGetRequest) GetGroupName

func (r TaobaoTmcQueueGetRequest) GetGroupName() string

func (*TaobaoTmcQueueGetRequest) SetGroupName

func (r *TaobaoTmcQueueGetRequest) SetGroupName(groupName string) error

type TaobaoTmcQueueGetResponse

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

type TaobaoTmcTopicGroupAddAPIResponse

type TaobaoTmcTopicGroupAddAPIResponse struct {
	model.CommonResponse
	TaobaoTmcTopicGroupAddResponse
}

topic分组路由 APIResponse taobao.tmc.topic.group.add

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

type TaobaoTmcTopicGroupAddRequest

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

topic分组路由 APIRequest taobao.tmc.topic.group.add

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

func NewTaobaoTmcTopicGroupAddRequest

func NewTaobaoTmcTopicGroupAddRequest() *TaobaoTmcTopicGroupAddRequest

func (TaobaoTmcTopicGroupAddRequest) GetApiMethodName

func (r TaobaoTmcTopicGroupAddRequest) GetApiMethodName() string

func (TaobaoTmcTopicGroupAddRequest) GetApiParams

func (r TaobaoTmcTopicGroupAddRequest) GetApiParams() url.Values

func (TaobaoTmcTopicGroupAddRequest) GetGroupName

func (r TaobaoTmcTopicGroupAddRequest) GetGroupName() string

func (TaobaoTmcTopicGroupAddRequest) GetTopics

func (r TaobaoTmcTopicGroupAddRequest) GetTopics() []string

func (*TaobaoTmcTopicGroupAddRequest) SetGroupName

func (r *TaobaoTmcTopicGroupAddRequest) SetGroupName(groupName string) error

func (*TaobaoTmcTopicGroupAddRequest) SetTopics

func (r *TaobaoTmcTopicGroupAddRequest) SetTopics(topics []string) error

type TaobaoTmcTopicGroupAddResponse

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

	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

type TaobaoTmcTopicGroupDeleteAPIResponse

type TaobaoTmcTopicGroupDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoTmcTopicGroupDeleteResponse
}

删除消息topic分组路由 APIResponse taobao.tmc.topic.group.delete

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

type TaobaoTmcTopicGroupDeleteRequest

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

删除消息topic分组路由 APIRequest taobao.tmc.topic.group.delete

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

func NewTaobaoTmcTopicGroupDeleteRequest

func NewTaobaoTmcTopicGroupDeleteRequest() *TaobaoTmcTopicGroupDeleteRequest

func (TaobaoTmcTopicGroupDeleteRequest) GetApiMethodName

func (r TaobaoTmcTopicGroupDeleteRequest) GetApiMethodName() string

func (TaobaoTmcTopicGroupDeleteRequest) GetApiParams

func (r TaobaoTmcTopicGroupDeleteRequest) GetApiParams() url.Values

func (TaobaoTmcTopicGroupDeleteRequest) GetGroupId

func (r TaobaoTmcTopicGroupDeleteRequest) GetGroupId() int64

func (TaobaoTmcTopicGroupDeleteRequest) GetGroupName

func (r TaobaoTmcTopicGroupDeleteRequest) GetGroupName() string

func (TaobaoTmcTopicGroupDeleteRequest) GetTopics

func (r TaobaoTmcTopicGroupDeleteRequest) GetTopics() []string

func (*TaobaoTmcTopicGroupDeleteRequest) SetGroupId

func (r *TaobaoTmcTopicGroupDeleteRequest) SetGroupId(groupId int64) error

func (*TaobaoTmcTopicGroupDeleteRequest) SetGroupName

func (r *TaobaoTmcTopicGroupDeleteRequest) SetGroupName(groupName string) error

func (*TaobaoTmcTopicGroupDeleteRequest) SetTopics

func (r *TaobaoTmcTopicGroupDeleteRequest) SetTopics(topics []string) error

type TaobaoTmcTopicGroupDeleteResponse

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

	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

type TaobaoTmcUserCancelAPIResponse

type TaobaoTmcUserCancelAPIResponse struct {
	model.CommonResponse
	TaobaoTmcUserCancelResponse
}

取消用户的消息服务 APIResponse taobao.tmc.user.cancel

取消用户的消息服务

type TaobaoTmcUserCancelRequest

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

取消用户的消息服务 APIRequest taobao.tmc.user.cancel

取消用户的消息服务

func NewTaobaoTmcUserCancelRequest

func NewTaobaoTmcUserCancelRequest() *TaobaoTmcUserCancelRequest

func (TaobaoTmcUserCancelRequest) GetApiMethodName

func (r TaobaoTmcUserCancelRequest) GetApiMethodName() string

func (TaobaoTmcUserCancelRequest) GetApiParams

func (r TaobaoTmcUserCancelRequest) GetApiParams() url.Values

func (TaobaoTmcUserCancelRequest) GetNick

func (r TaobaoTmcUserCancelRequest) GetNick() string

func (TaobaoTmcUserCancelRequest) GetUserPlatform

func (r TaobaoTmcUserCancelRequest) GetUserPlatform() string

func (*TaobaoTmcUserCancelRequest) SetNick

func (r *TaobaoTmcUserCancelRequest) SetNick(nick string) error

func (*TaobaoTmcUserCancelRequest) SetUserPlatform

func (r *TaobaoTmcUserCancelRequest) SetUserPlatform(userPlatform string) error

type TaobaoTmcUserCancelResponse

type TaobaoTmcUserCancelResponse struct {
	XMLName   xml.Name `xml:"tmc_user_cancel_response"`
	RequestId string   `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识

	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

type TaobaoTmcUserGetAPIResponse

type TaobaoTmcUserGetAPIResponse struct {
	model.CommonResponse
	TaobaoTmcUserGetResponse
}

获取用户已开通消息 APIResponse taobao.tmc.user.get

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

type TaobaoTmcUserGetRequest

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

获取用户已开通消息 APIRequest taobao.tmc.user.get

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

func NewTaobaoTmcUserGetRequest

func NewTaobaoTmcUserGetRequest() *TaobaoTmcUserGetRequest

func (TaobaoTmcUserGetRequest) GetApiMethodName

func (r TaobaoTmcUserGetRequest) GetApiMethodName() string

func (TaobaoTmcUserGetRequest) GetApiParams

func (r TaobaoTmcUserGetRequest) GetApiParams() url.Values

func (TaobaoTmcUserGetRequest) GetFields

func (r TaobaoTmcUserGetRequest) GetFields() string

func (TaobaoTmcUserGetRequest) GetNick

func (r TaobaoTmcUserGetRequest) GetNick() string

func (TaobaoTmcUserGetRequest) GetUserPlatform

func (r TaobaoTmcUserGetRequest) GetUserPlatform() string

func (*TaobaoTmcUserGetRequest) SetFields

func (r *TaobaoTmcUserGetRequest) SetFields(fields string) error

func (*TaobaoTmcUserGetRequest) SetNick

func (r *TaobaoTmcUserGetRequest) SetNick(nick string) error

func (*TaobaoTmcUserGetRequest) SetUserPlatform

func (r *TaobaoTmcUserGetRequest) SetUserPlatform(userPlatform string) error

type TaobaoTmcUserGetResponse

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

type TaobaoTmcUserPermitAPIResponse

type TaobaoTmcUserPermitAPIResponse struct {
	model.CommonResponse
	TaobaoTmcUserPermitResponse
}

为已授权的用户开通消息服务 APIResponse taobao.tmc.user.permit

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

type TaobaoTmcUserPermitRequest

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

为已授权的用户开通消息服务 APIRequest taobao.tmc.user.permit

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

func NewTaobaoTmcUserPermitRequest

func NewTaobaoTmcUserPermitRequest() *TaobaoTmcUserPermitRequest

func (TaobaoTmcUserPermitRequest) GetApiMethodName

func (r TaobaoTmcUserPermitRequest) GetApiMethodName() string

func (TaobaoTmcUserPermitRequest) GetApiParams

func (r TaobaoTmcUserPermitRequest) GetApiParams() url.Values

func (TaobaoTmcUserPermitRequest) GetTopics

func (r TaobaoTmcUserPermitRequest) GetTopics() []string

func (*TaobaoTmcUserPermitRequest) SetTopics

func (r *TaobaoTmcUserPermitRequest) SetTopics(topics []string) error

type TaobaoTmcUserPermitResponse

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

type TaobaoTmcUserTopicsGetAPIResponse

type TaobaoTmcUserTopicsGetAPIResponse struct {
	model.CommonResponse
	TaobaoTmcUserTopicsGetResponse
}

获取用户开通的topic列表 APIResponse taobao.tmc.user.topics.get

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

type TaobaoTmcUserTopicsGetRequest

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

获取用户开通的topic列表 APIRequest taobao.tmc.user.topics.get

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

func NewTaobaoTmcUserTopicsGetRequest

func NewTaobaoTmcUserTopicsGetRequest() *TaobaoTmcUserTopicsGetRequest

func (TaobaoTmcUserTopicsGetRequest) GetApiMethodName

func (r TaobaoTmcUserTopicsGetRequest) GetApiMethodName() string

func (TaobaoTmcUserTopicsGetRequest) GetApiParams

func (r TaobaoTmcUserTopicsGetRequest) GetApiParams() url.Values

func (TaobaoTmcUserTopicsGetRequest) GetNick

func (*TaobaoTmcUserTopicsGetRequest) SetNick

func (r *TaobaoTmcUserTopicsGetRequest) SetNick(nick string) error

type TaobaoTmcUserTopicsGetResponse

type TaobaoTmcUserTopicsGetResponse struct {
	XMLName   xml.Name `xml:"tmc_user_topics_get_response"`
	RequestId string   `json:"request_id,omitempty" xml:"request_id,omitempty"` // 平台颁发的每次请求访问的唯一标识

	ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"`

	Topics []string `json:"topics,omitempty" xml:"topics>string,omitempty"`

	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

type TmcGroup

type TmcGroup struct {
	Name string `json:"name,omitempty" xml:"name,omitempty"`
}

TmcGroup

type TmcMessage

type TmcMessage struct {
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`

	Topic string `json:"topic,omitempty" xml:"topic,omitempty"`

	PubAppKey string `json:"pub_app_key,omitempty" xml:"pub_app_key,omitempty"`

	PubTime string `json:"pub_time,omitempty" xml:"pub_time,omitempty"`

	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`

	Content string `json:"content,omitempty" xml:"content,omitempty"`

	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
}

TmcMessage

type TmcProduceResult

type TmcProduceResult struct {
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`

	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`

	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
}

TmcProduceResult

type TmcPublishMessage

type TmcPublishMessage struct {
	TargetGroup string `json:"target_group,omitempty" xml:"target_group,omitempty"`

	Topic string `json:"topic,omitempty" xml:"topic,omitempty"`

	Content string `json:"content,omitempty" xml:"content,omitempty"`
}

TmcPublishMessage

type TmcQueueInfo

type TmcQueueInfo struct {
	GetTotal int64 `json:"get_total,omitempty" xml:"get_total,omitempty"`

	PutToal int64 `json:"put_toal,omitempty" xml:"put_toal,omitempty"`

	Name string `json:"name,omitempty" xml:"name,omitempty"`

	BrokerName string `json:"broker_name,omitempty" xml:"broker_name,omitempty"`
}

TmcQueueInfo

type TmcUser

type TmcUser struct {
	UserPlatform string `json:"user_platform,omitempty" xml:"user_platform,omitempty"`

	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`

	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`

	IsValid bool `json:"is_valid,omitempty" xml:"is_valid,omitempty"`

	Created string `json:"created,omitempty" xml:"created,omitempty"`

	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`

	Topics []string `json:"topics,omitempty" xml:"topics>string,omitempty"`

	GroupName string `json:"group_name,omitempty" xml:"group_name,omitempty"`
}

TmcUser

Jump to

Keyboard shortcuts

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