Documentation ¶
Overview ¶
消息amp通道 model
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SendMessageReq ¶
type SendMessageReq struct { // 接受者ID,如果是群,则是群ID。如果是用户,则是uid。 TargetId string `json:"target_id,omitempty" xml:"target_id,omitempty"` // 选用的模板ID TemplateInstanceId string `json:"template_instance_id,omitempty" xml:"template_instance_id,omitempty"` // 模板渲染参数 TemplateData string `json:"template_data,omitempty" xml:"template_data,omitempty"` // 跳转的目标链接参数,如:page=xxxx ActionUrlParams string `json:"action_url_params,omitempty" xml:"action_url_params,omitempty"` }
SendMessageReq
type TaobaoMessageSendAPIResponse ¶
type TaobaoMessageSendAPIResponse struct { model.CommonResponse TaobaoMessageSendResponse }
消息发送 API返回值 taobao.message.send
消息发送接口
type TaobaoMessageSendRequest ¶
消息发送 API请求 taobao.message.send
消息发送接口
func NewTaobaoMessageSendRequest ¶
func NewTaobaoMessageSendRequest() *TaobaoMessageSendRequest
初始化TaobaoMessageSendRequest对象
func (TaobaoMessageSendRequest) GetApiMethodName ¶
func (r TaobaoMessageSendRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoMessageSendRequest) GetApiParams ¶
func (r TaobaoMessageSendRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoMessageSendRequest) GetSendMessageReq ¶
func (r TaobaoMessageSendRequest) GetSendMessageReq() *SendMessageReq
SendMessageReq Getter
func (*TaobaoMessageSendRequest) SetSendMessageReq ¶
func (r *TaobaoMessageSendRequest) SetSendMessageReq(sendMessageReq *SendMessageReq) error
SendMessageReq Setter 消息发送相关参数
type TaobaoMessageSendResponse ¶
type TaobaoMessageSendResponse struct { XMLName xml.Name `xml:"message_send_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 是否成功 IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` // 返回值 Model string `json:"model,omitempty" xml:"model,omitempty"` // 错误信息 MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` // 错误码 MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` }
消息发送 成功返回结果
Click to show internal directories.
Click to hide internal directories.