Documentation ¶
Overview ¶
Package msgamp 包含消息amp通道相关结构体
Index ¶
- func ReleaseMiniappBcChatMsgRequest(v *MiniappBcChatMsgRequest)
- func ReleaseSendMessageReq(v *SendMessageReq)
- func ReleaseTaobaoBcChatMessageSendAPIRequest(v *TaobaoBcChatMessageSendAPIRequest)
- func ReleaseTaobaoBcChatMessageSendAPIResponse(v *TaobaoBcChatMessageSendAPIResponse)
- func ReleaseTaobaoBcChatMessageSendResult(v *TaobaoBcChatMessageSendResult)
- func ReleaseTaobaoMessageSendAPIRequest(v *TaobaoMessageSendAPIRequest)
- func ReleaseTaobaoMessageSendAPIResponse(v *TaobaoMessageSendAPIResponse)
- type MiniappBcChatMsgRequest
- type SendMessageReq
- type TaobaoBcChatMessageSendAPIRequest
- func (r TaobaoBcChatMessageSendAPIRequest) GetApiMethodName() string
- func (r TaobaoBcChatMessageSendAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoBcChatMessageSendAPIRequest) GetMsgRequest() *MiniappBcChatMsgRequest
- func (r TaobaoBcChatMessageSendAPIRequest) GetRawParams() model.Params
- func (r TaobaoBcChatMessageSendAPIRequest) GetTopRecourceId() string
- func (r TaobaoBcChatMessageSendAPIRequest) GetTopRecourceToken() string
- func (r *TaobaoBcChatMessageSendAPIRequest) Reset()
- func (r *TaobaoBcChatMessageSendAPIRequest) SetMsgRequest(_msgRequest *MiniappBcChatMsgRequest) error
- func (r *TaobaoBcChatMessageSendAPIRequest) SetTopRecourceId(_topRecourceId string) error
- func (r *TaobaoBcChatMessageSendAPIRequest) SetTopRecourceToken(_topRecourceToken string) error
- type TaobaoBcChatMessageSendAPIResponse
- type TaobaoBcChatMessageSendAPIResponseModel
- type TaobaoBcChatMessageSendResult
- type TaobaoMessageSendAPIRequest
- func (r TaobaoMessageSendAPIRequest) GetApiMethodName() string
- func (r TaobaoMessageSendAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoMessageSendAPIRequest) GetRawParams() model.Params
- func (r TaobaoMessageSendAPIRequest) GetSendMessageReq() *SendMessageReq
- func (r *TaobaoMessageSendAPIRequest) Reset()
- func (r *TaobaoMessageSendAPIRequest) SetSendMessageReq(_sendMessageReq *SendMessageReq) error
- type TaobaoMessageSendAPIResponse
- type TaobaoMessageSendAPIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseMiniappBcChatMsgRequest ¶ added in v1.3.4
func ReleaseMiniappBcChatMsgRequest(v *MiniappBcChatMsgRequest)
ReleaseMiniappBcChatMsgRequest 释放MiniappBcChatMsgRequest
func ReleaseSendMessageReq ¶ added in v1.3.4
func ReleaseSendMessageReq(v *SendMessageReq)
ReleaseSendMessageReq 释放SendMessageReq
func ReleaseTaobaoBcChatMessageSendAPIRequest ¶ added in v1.3.4
func ReleaseTaobaoBcChatMessageSendAPIRequest(v *TaobaoBcChatMessageSendAPIRequest)
ReleaseTaobaoBcChatMessageSendAPIRequest 将 TaobaoBcChatMessageSendAPIRequest 放入 sync.Pool
func ReleaseTaobaoBcChatMessageSendAPIResponse ¶ added in v1.3.4
func ReleaseTaobaoBcChatMessageSendAPIResponse(v *TaobaoBcChatMessageSendAPIResponse)
ReleaseTaobaoBcChatMessageSendAPIResponse 将 TaobaoBcChatMessageSendAPIResponse 保存到 sync.Pool
func ReleaseTaobaoBcChatMessageSendResult ¶ added in v1.3.4
func ReleaseTaobaoBcChatMessageSendResult(v *TaobaoBcChatMessageSendResult)
ReleaseTaobaoBcChatMessageSendResult 释放TaobaoBcChatMessageSendResult
func ReleaseTaobaoMessageSendAPIRequest ¶ added in v1.3.4
func ReleaseTaobaoMessageSendAPIRequest(v *TaobaoMessageSendAPIRequest)
ReleaseTaobaoMessageSendAPIRequest 将 TaobaoMessageSendAPIRequest 放入 sync.Pool
func ReleaseTaobaoMessageSendAPIResponse ¶ added in v1.3.4
func ReleaseTaobaoMessageSendAPIResponse(v *TaobaoMessageSendAPIResponse)
ReleaseTaobaoMessageSendAPIResponse 将 TaobaoMessageSendAPIResponse 保存到 sync.Pool
Types ¶
type MiniappBcChatMsgRequest ¶ added in v1.2.5
type MiniappBcChatMsgRequest struct { // 消息实例ID,在控制台申请到 MsgInstanceId string `json:"msg_instance_id,omitempty" xml:"msg_instance_id,omitempty"` // 对应着商家C端APPID AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"` // 消息自定义消息占位符 MsgData string `json:"msg_data,omitempty" xml:"msg_data,omitempty"` // 自定义参数 UrlParams string `json:"url_params,omitempty" xml:"url_params,omitempty"` }
MiniappBcChatMsgRequest 结构体
func GetMiniappBcChatMsgRequest ¶ added in v1.3.4
func GetMiniappBcChatMsgRequest() *MiniappBcChatMsgRequest
GetMiniappBcChatMsgRequest() 从对象池中获取MiniappBcChatMsgRequest
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 结构体
func GetSendMessageReq ¶ added in v1.3.4
func GetSendMessageReq() *SendMessageReq
GetSendMessageReq() 从对象池中获取SendMessageReq
type TaobaoBcChatMessageSendAPIRequest ¶ added in v1.2.5
type TaobaoBcChatMessageSendAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoBcChatMessageSendAPIRequest 小程序资源授权-BC客服消息 API请求 taobao.bc.chat.message.send
小程序资源授权-消息订阅
func GetTaobaoBcChatMessageSendAPIRequest ¶ added in v1.3.4
func GetTaobaoBcChatMessageSendAPIRequest() *TaobaoBcChatMessageSendAPIRequest
GetTaobaoBcChatMessageSendRequest 从 sync.Pool 获取 TaobaoBcChatMessageSendAPIRequest
func NewTaobaoBcChatMessageSendRequest ¶ added in v1.2.5
func NewTaobaoBcChatMessageSendRequest() *TaobaoBcChatMessageSendAPIRequest
NewTaobaoBcChatMessageSendRequest 初始化TaobaoBcChatMessageSendAPIRequest对象
func (TaobaoBcChatMessageSendAPIRequest) GetApiMethodName ¶ added in v1.2.5
func (r TaobaoBcChatMessageSendAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoBcChatMessageSendAPIRequest) GetApiParams ¶ added in v1.2.5
func (r TaobaoBcChatMessageSendAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoBcChatMessageSendAPIRequest) GetMsgRequest ¶ added in v1.2.5
func (r TaobaoBcChatMessageSendAPIRequest) GetMsgRequest() *MiniappBcChatMsgRequest
GetMsgRequest MsgRequest Getter
func (TaobaoBcChatMessageSendAPIRequest) GetRawParams ¶ added in v1.2.8
func (r TaobaoBcChatMessageSendAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaoBcChatMessageSendAPIRequest) GetTopRecourceId ¶ added in v1.2.5
func (r TaobaoBcChatMessageSendAPIRequest) GetTopRecourceId() string
GetTopRecourceId TopRecourceId Getter
func (TaobaoBcChatMessageSendAPIRequest) GetTopRecourceToken ¶ added in v1.2.5
func (r TaobaoBcChatMessageSendAPIRequest) GetTopRecourceToken() string
GetTopRecourceToken TopRecourceToken Getter
func (*TaobaoBcChatMessageSendAPIRequest) Reset ¶ added in v1.3.4
func (r *TaobaoBcChatMessageSendAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*TaobaoBcChatMessageSendAPIRequest) SetMsgRequest ¶ added in v1.2.5
func (r *TaobaoBcChatMessageSendAPIRequest) SetMsgRequest(_msgRequest *MiniappBcChatMsgRequest) error
SetMsgRequest is MsgRequest Setter 请求参数
func (*TaobaoBcChatMessageSendAPIRequest) SetTopRecourceId ¶ added in v1.2.5
func (r *TaobaoBcChatMessageSendAPIRequest) SetTopRecourceId(_topRecourceId string) error
SetTopRecourceId is TopRecourceId Setter 资源点
func (*TaobaoBcChatMessageSendAPIRequest) SetTopRecourceToken ¶ added in v1.2.5
func (r *TaobaoBcChatMessageSendAPIRequest) SetTopRecourceToken(_topRecourceToken string) error
SetTopRecourceToken is TopRecourceToken Setter 资源授权token
type TaobaoBcChatMessageSendAPIResponse ¶ added in v1.2.5
type TaobaoBcChatMessageSendAPIResponse struct { model.CommonResponse TaobaoBcChatMessageSendAPIResponseModel }
TaobaoBcChatMessageSendAPIResponse 小程序资源授权-BC客服消息 API返回值 taobao.bc.chat.message.send
小程序资源授权-消息订阅
func GetTaobaoBcChatMessageSendAPIResponse ¶ added in v1.3.4
func GetTaobaoBcChatMessageSendAPIResponse() *TaobaoBcChatMessageSendAPIResponse
GetTaobaoBcChatMessageSendAPIResponse 从 sync.Pool 获取 TaobaoBcChatMessageSendAPIResponse
func (*TaobaoBcChatMessageSendAPIResponse) Reset ¶ added in v1.3.4
func (m *TaobaoBcChatMessageSendAPIResponse) Reset()
Reset 清空结构体
type TaobaoBcChatMessageSendAPIResponseModel ¶ added in v1.2.5
type TaobaoBcChatMessageSendAPIResponseModel struct { XMLName xml.Name `xml:"bc_chat_message_send_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 接口返回model Result *TaobaoBcChatMessageSendResult `json:"result,omitempty" xml:"result,omitempty"` }
TaobaoBcChatMessageSendAPIResponseModel is 小程序资源授权-BC客服消息 成功返回结果
func (*TaobaoBcChatMessageSendAPIResponseModel) Reset ¶ added in v1.3.4
func (m *TaobaoBcChatMessageSendAPIResponseModel) Reset()
Reset 清空结构体
type TaobaoBcChatMessageSendResult ¶ added in v1.2.5
type TaobaoBcChatMessageSendResult struct { // SERVICE_ERROR MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` // model Model string `json:"model,omitempty" xml:"model,omitempty"` // SERVICE_ERROR MsgErrMessage string `json:"msg_err_message,omitempty" xml:"msg_err_message,omitempty"` // 是否成功 IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` }
TaobaoBcChatMessageSendResult 结构体
func GetTaobaoBcChatMessageSendResult ¶ added in v1.3.4
func GetTaobaoBcChatMessageSendResult() *TaobaoBcChatMessageSendResult
GetTaobaoBcChatMessageSendResult() 从对象池中获取TaobaoBcChatMessageSendResult
type TaobaoMessageSendAPIRequest ¶ added in v1.2.0
TaobaoMessageSendAPIRequest 消息发送 API请求 taobao.message.send
消息发送接口
func GetTaobaoMessageSendAPIRequest ¶ added in v1.3.4
func GetTaobaoMessageSendAPIRequest() *TaobaoMessageSendAPIRequest
GetTaobaoMessageSendRequest 从 sync.Pool 获取 TaobaoMessageSendAPIRequest
func NewTaobaoMessageSendRequest ¶
func NewTaobaoMessageSendRequest() *TaobaoMessageSendAPIRequest
NewTaobaoMessageSendRequest 初始化TaobaoMessageSendAPIRequest对象
func (TaobaoMessageSendAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoMessageSendAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoMessageSendAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoMessageSendAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoMessageSendAPIRequest) GetRawParams ¶ added in v1.2.8
func (r TaobaoMessageSendAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaoMessageSendAPIRequest) GetSendMessageReq ¶ added in v1.2.0
func (r TaobaoMessageSendAPIRequest) GetSendMessageReq() *SendMessageReq
GetSendMessageReq SendMessageReq Getter
func (*TaobaoMessageSendAPIRequest) Reset ¶ added in v1.3.4
func (r *TaobaoMessageSendAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*TaobaoMessageSendAPIRequest) SetSendMessageReq ¶ added in v1.2.0
func (r *TaobaoMessageSendAPIRequest) SetSendMessageReq(_sendMessageReq *SendMessageReq) error
SetSendMessageReq is SendMessageReq Setter 消息发送相关参数
type TaobaoMessageSendAPIResponse ¶
type TaobaoMessageSendAPIResponse struct { model.CommonResponse TaobaoMessageSendAPIResponseModel }
TaobaoMessageSendAPIResponse 消息发送 API返回值 taobao.message.send
消息发送接口
func GetTaobaoMessageSendAPIResponse ¶ added in v1.3.4
func GetTaobaoMessageSendAPIResponse() *TaobaoMessageSendAPIResponse
GetTaobaoMessageSendAPIResponse 从 sync.Pool 获取 TaobaoMessageSendAPIResponse
func (*TaobaoMessageSendAPIResponse) Reset ¶ added in v1.3.4
func (m *TaobaoMessageSendAPIResponse) Reset()
Reset 清空结构体
type TaobaoMessageSendAPIResponseModel ¶ added in v1.2.0
type TaobaoMessageSendAPIResponseModel struct { XMLName xml.Name `xml:"message_send_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,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"` // 是否成功 IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` }
TaobaoMessageSendAPIResponseModel is 消息发送 成功返回结果
func (*TaobaoMessageSendAPIResponseModel) Reset ¶ added in v1.3.4
func (m *TaobaoMessageSendAPIResponseModel) Reset()
Reset 清空结构体