jms

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseMsgGroupDo added in v1.3.4

func ReleaseMsgGroupDo(v *MsgGroupDo)

ReleaseMsgGroupDo 释放MsgGroupDo

func ReleaseTaobaoJushitaJmsGroupGetAPIRequest added in v1.3.4

func ReleaseTaobaoJushitaJmsGroupGetAPIRequest(v *TaobaoJushitaJmsGroupGetAPIRequest)

ReleaseTaobaoJushitaJmsGroupGetAPIRequest 将 TaobaoJushitaJmsGroupGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoJushitaJmsGroupGetAPIResponse added in v1.3.4

func ReleaseTaobaoJushitaJmsGroupGetAPIResponse(v *TaobaoJushitaJmsGroupGetAPIResponse)

ReleaseTaobaoJushitaJmsGroupGetAPIResponse 将 TaobaoJushitaJmsGroupGetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoJushitaJmsTopicsGetAPIRequest added in v1.3.4

func ReleaseTaobaoJushitaJmsTopicsGetAPIRequest(v *TaobaoJushitaJmsTopicsGetAPIRequest)

ReleaseTaobaoJushitaJmsTopicsGetAPIRequest 将 TaobaoJushitaJmsTopicsGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoJushitaJmsTopicsGetAPIResponse added in v1.3.4

func ReleaseTaobaoJushitaJmsTopicsGetAPIResponse(v *TaobaoJushitaJmsTopicsGetAPIResponse)

ReleaseTaobaoJushitaJmsTopicsGetAPIResponse 将 TaobaoJushitaJmsTopicsGetAPIResponse 保存到 sync.Pool

func ReleaseTaobaoJushitaJmsUserAddAPIRequest added in v1.3.4

func ReleaseTaobaoJushitaJmsUserAddAPIRequest(v *TaobaoJushitaJmsUserAddAPIRequest)

ReleaseTaobaoJushitaJmsUserAddAPIRequest 将 TaobaoJushitaJmsUserAddAPIRequest 放入 sync.Pool

func ReleaseTaobaoJushitaJmsUserAddAPIResponse added in v1.3.4

func ReleaseTaobaoJushitaJmsUserAddAPIResponse(v *TaobaoJushitaJmsUserAddAPIResponse)

ReleaseTaobaoJushitaJmsUserAddAPIResponse 将 TaobaoJushitaJmsUserAddAPIResponse 保存到 sync.Pool

func ReleaseTaobaoJushitaJmsUserDeleteAPIRequest added in v1.3.4

func ReleaseTaobaoJushitaJmsUserDeleteAPIRequest(v *TaobaoJushitaJmsUserDeleteAPIRequest)

ReleaseTaobaoJushitaJmsUserDeleteAPIRequest 将 TaobaoJushitaJmsUserDeleteAPIRequest 放入 sync.Pool

func ReleaseTaobaoJushitaJmsUserDeleteAPIResponse added in v1.3.4

func ReleaseTaobaoJushitaJmsUserDeleteAPIResponse(v *TaobaoJushitaJmsUserDeleteAPIResponse)

ReleaseTaobaoJushitaJmsUserDeleteAPIResponse 将 TaobaoJushitaJmsUserDeleteAPIResponse 保存到 sync.Pool

func ReleaseTaobaoJushitaJmsUserGetAPIRequest added in v1.3.4

func ReleaseTaobaoJushitaJmsUserGetAPIRequest(v *TaobaoJushitaJmsUserGetAPIRequest)

ReleaseTaobaoJushitaJmsUserGetAPIRequest 将 TaobaoJushitaJmsUserGetAPIRequest 放入 sync.Pool

func ReleaseTaobaoJushitaJmsUserGetAPIResponse added in v1.3.4

func ReleaseTaobaoJushitaJmsUserGetAPIResponse(v *TaobaoJushitaJmsUserGetAPIResponse)

ReleaseTaobaoJushitaJmsUserGetAPIResponse 将 TaobaoJushitaJmsUserGetAPIResponse 保存到 sync.Pool

func ReleaseTmcUser added in v1.3.4

func ReleaseTmcUser(v *TmcUser)

ReleaseTmcUser 释放TmcUser

Types

type MsgGroupDo added in v1.2.0

type MsgGroupDo struct {
	// 123
	Name string `json:"name,omitempty" xml:"name,omitempty"`
}

MsgGroupDo 结构体

func GetMsgGroupDo added in v1.3.4

func GetMsgGroupDo() *MsgGroupDo

GetMsgGroupDo() 从对象池中获取MsgGroupDo

type TaobaoJushitaJmsGroupGetAPIRequest added in v1.2.0

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

TaobaoJushitaJmsGroupGetAPIRequest 查询ONS分组 API请求 taobao.jushita.jms.group.get

查询当前appkey在ONS中已有的分组

func GetTaobaoJushitaJmsGroupGetAPIRequest added in v1.3.4

func GetTaobaoJushitaJmsGroupGetAPIRequest() *TaobaoJushitaJmsGroupGetAPIRequest

GetTaobaoJushitaJmsGroupGetRequest 从 sync.Pool 获取 TaobaoJushitaJmsGroupGetAPIRequest

func NewTaobaoJushitaJmsGroupGetRequest

func NewTaobaoJushitaJmsGroupGetRequest() *TaobaoJushitaJmsGroupGetAPIRequest

NewTaobaoJushitaJmsGroupGetRequest 初始化TaobaoJushitaJmsGroupGetAPIRequest对象

func (TaobaoJushitaJmsGroupGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoJushitaJmsGroupGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoJushitaJmsGroupGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoJushitaJmsGroupGetAPIRequest) GetGroupNames added in v1.2.0

func (r TaobaoJushitaJmsGroupGetAPIRequest) GetGroupNames() []string

GetGroupNames GroupNames Getter

func (TaobaoJushitaJmsGroupGetAPIRequest) GetPageNo added in v1.2.0

GetPageNo PageNo Getter

func (TaobaoJushitaJmsGroupGetAPIRequest) GetPageSize added in v1.2.0

func (r TaobaoJushitaJmsGroupGetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoJushitaJmsGroupGetAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoJushitaJmsGroupGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoJushitaJmsGroupGetAPIRequest) SetGroupNames added in v1.2.0

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

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

func (*TaobaoJushitaJmsGroupGetAPIRequest) SetPageNo added in v1.2.0

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

SetPageNo is PageNo Setter 页码

func (*TaobaoJushitaJmsGroupGetAPIRequest) SetPageSize added in v1.2.0

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

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

type TaobaoJushitaJmsGroupGetAPIResponse

type TaobaoJushitaJmsGroupGetAPIResponse struct {
	model.CommonResponse
	TaobaoJushitaJmsGroupGetAPIResponseModel
}

TaobaoJushitaJmsGroupGetAPIResponse 查询ONS分组 API返回值 taobao.jushita.jms.group.get

查询当前appkey在ONS中已有的分组

func GetTaobaoJushitaJmsGroupGetAPIResponse added in v1.3.4

func GetTaobaoJushitaJmsGroupGetAPIResponse() *TaobaoJushitaJmsGroupGetAPIResponse

GetTaobaoJushitaJmsGroupGetAPIResponse 从 sync.Pool 获取 TaobaoJushitaJmsGroupGetAPIResponse

func (*TaobaoJushitaJmsGroupGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoJushitaJmsGroupGetAPIResponseModel added in v1.2.0

type TaobaoJushitaJmsGroupGetAPIResponseModel struct {
	XMLName xml.Name `xml:"jushita_jms_group_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 分组信息
	Groups []MsgGroupDo `json:"groups,omitempty" xml:"groups>msg_group_do,omitempty"`
	// 返回的总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaoJushitaJmsGroupGetAPIResponseModel is 查询ONS分组 成功返回结果

func (*TaobaoJushitaJmsGroupGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoJushitaJmsTopicsGetAPIRequest added in v1.2.0

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

TaobaoJushitaJmsTopicsGetAPIRequest 根据用户nick获取开通的消息列表 API请求 taobao.jushita.jms.topics.get

根据用户nick获取开通的消息列表

func GetTaobaoJushitaJmsTopicsGetAPIRequest added in v1.3.4

func GetTaobaoJushitaJmsTopicsGetAPIRequest() *TaobaoJushitaJmsTopicsGetAPIRequest

GetTaobaoJushitaJmsTopicsGetRequest 从 sync.Pool 获取 TaobaoJushitaJmsTopicsGetAPIRequest

func NewTaobaoJushitaJmsTopicsGetRequest

func NewTaobaoJushitaJmsTopicsGetRequest() *TaobaoJushitaJmsTopicsGetAPIRequest

NewTaobaoJushitaJmsTopicsGetRequest 初始化TaobaoJushitaJmsTopicsGetAPIRequest对象

func (TaobaoJushitaJmsTopicsGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoJushitaJmsTopicsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoJushitaJmsTopicsGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoJushitaJmsTopicsGetAPIRequest) GetNick added in v1.2.0

GetNick Nick Getter

func (TaobaoJushitaJmsTopicsGetAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoJushitaJmsTopicsGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoJushitaJmsTopicsGetAPIRequest) SetNick added in v1.2.0

SetNick is Nick Setter 卖家nick

type TaobaoJushitaJmsTopicsGetAPIResponse

type TaobaoJushitaJmsTopicsGetAPIResponse struct {
	model.CommonResponse
	TaobaoJushitaJmsTopicsGetAPIResponseModel
}

TaobaoJushitaJmsTopicsGetAPIResponse 根据用户nick获取开通的消息列表 API返回值 taobao.jushita.jms.topics.get

根据用户nick获取开通的消息列表

func GetTaobaoJushitaJmsTopicsGetAPIResponse added in v1.3.4

func GetTaobaoJushitaJmsTopicsGetAPIResponse() *TaobaoJushitaJmsTopicsGetAPIResponse

GetTaobaoJushitaJmsTopicsGetAPIResponse 从 sync.Pool 获取 TaobaoJushitaJmsTopicsGetAPIResponse

func (*TaobaoJushitaJmsTopicsGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoJushitaJmsTopicsGetAPIResponseModel added in v1.2.0

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

TaobaoJushitaJmsTopicsGetAPIResponseModel is 根据用户nick获取开通的消息列表 成功返回结果

func (*TaobaoJushitaJmsTopicsGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoJushitaJmsUserAddAPIRequest added in v1.2.0

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

TaobaoJushitaJmsUserAddAPIRequest 添加ONS消息同步用户 API请求 taobao.jushita.jms.user.add

添加ONS消息同步用户

func GetTaobaoJushitaJmsUserAddAPIRequest added in v1.3.4

func GetTaobaoJushitaJmsUserAddAPIRequest() *TaobaoJushitaJmsUserAddAPIRequest

GetTaobaoJushitaJmsUserAddRequest 从 sync.Pool 获取 TaobaoJushitaJmsUserAddAPIRequest

func NewTaobaoJushitaJmsUserAddRequest

func NewTaobaoJushitaJmsUserAddRequest() *TaobaoJushitaJmsUserAddAPIRequest

NewTaobaoJushitaJmsUserAddRequest 初始化TaobaoJushitaJmsUserAddAPIRequest对象

func (TaobaoJushitaJmsUserAddAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoJushitaJmsUserAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoJushitaJmsUserAddAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoJushitaJmsUserAddAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoJushitaJmsUserAddAPIRequest) GetTopicNames added in v1.2.0

func (r TaobaoJushitaJmsUserAddAPIRequest) GetTopicNames() []string

GetTopicNames TopicNames Getter

func (*TaobaoJushitaJmsUserAddAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoJushitaJmsUserAddAPIRequest) SetTopicNames added in v1.2.0

func (r *TaobaoJushitaJmsUserAddAPIRequest) SetTopicNames(_topicNames []string) error

SetTopicNames is TopicNames Setter topic列表,不填则继承appkey所订阅的topic

type TaobaoJushitaJmsUserAddAPIResponse

type TaobaoJushitaJmsUserAddAPIResponse struct {
	model.CommonResponse
	TaobaoJushitaJmsUserAddAPIResponseModel
}

TaobaoJushitaJmsUserAddAPIResponse 添加ONS消息同步用户 API返回值 taobao.jushita.jms.user.add

添加ONS消息同步用户

func GetTaobaoJushitaJmsUserAddAPIResponse added in v1.3.4

func GetTaobaoJushitaJmsUserAddAPIResponse() *TaobaoJushitaJmsUserAddAPIResponse

GetTaobaoJushitaJmsUserAddAPIResponse 从 sync.Pool 获取 TaobaoJushitaJmsUserAddAPIResponse

func (*TaobaoJushitaJmsUserAddAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoJushitaJmsUserAddAPIResponseModel added in v1.2.0

type TaobaoJushitaJmsUserAddAPIResponseModel struct {
	XMLName xml.Name `xml:"jushita_jms_user_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功,如果失败请看错误信息
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoJushitaJmsUserAddAPIResponseModel is 添加ONS消息同步用户 成功返回结果

func (*TaobaoJushitaJmsUserAddAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoJushitaJmsUserDeleteAPIRequest added in v1.2.0

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

TaobaoJushitaJmsUserDeleteAPIRequest 删除ONS消息同步用户 API请求 taobao.jushita.jms.user.delete

删除ONS消息同步用户,删除后用户的消息将不会推送到聚石塔的ONS中

func GetTaobaoJushitaJmsUserDeleteAPIRequest added in v1.3.4

func GetTaobaoJushitaJmsUserDeleteAPIRequest() *TaobaoJushitaJmsUserDeleteAPIRequest

GetTaobaoJushitaJmsUserDeleteRequest 从 sync.Pool 获取 TaobaoJushitaJmsUserDeleteAPIRequest

func NewTaobaoJushitaJmsUserDeleteRequest

func NewTaobaoJushitaJmsUserDeleteRequest() *TaobaoJushitaJmsUserDeleteAPIRequest

NewTaobaoJushitaJmsUserDeleteRequest 初始化TaobaoJushitaJmsUserDeleteAPIRequest对象

func (TaobaoJushitaJmsUserDeleteAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoJushitaJmsUserDeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoJushitaJmsUserDeleteAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoJushitaJmsUserDeleteAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoJushitaJmsUserDeleteAPIRequest) GetUserNick added in v1.2.0

GetUserNick UserNick Getter

func (*TaobaoJushitaJmsUserDeleteAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoJushitaJmsUserDeleteAPIRequest) SetUserNick added in v1.2.0

func (r *TaobaoJushitaJmsUserDeleteAPIRequest) SetUserNick(_userNick string) error

SetUserNick is UserNick Setter 需要停止同步消息的用户nick

type TaobaoJushitaJmsUserDeleteAPIResponse

type TaobaoJushitaJmsUserDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoJushitaJmsUserDeleteAPIResponseModel
}

TaobaoJushitaJmsUserDeleteAPIResponse 删除ONS消息同步用户 API返回值 taobao.jushita.jms.user.delete

删除ONS消息同步用户,删除后用户的消息将不会推送到聚石塔的ONS中

func GetTaobaoJushitaJmsUserDeleteAPIResponse added in v1.3.4

func GetTaobaoJushitaJmsUserDeleteAPIResponse() *TaobaoJushitaJmsUserDeleteAPIResponse

GetTaobaoJushitaJmsUserDeleteAPIResponse 从 sync.Pool 获取 TaobaoJushitaJmsUserDeleteAPIResponse

func (*TaobaoJushitaJmsUserDeleteAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoJushitaJmsUserDeleteAPIResponseModel added in v1.2.0

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

TaobaoJushitaJmsUserDeleteAPIResponseModel is 删除ONS消息同步用户 成功返回结果

func (*TaobaoJushitaJmsUserDeleteAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoJushitaJmsUserGetAPIRequest added in v1.2.0

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

TaobaoJushitaJmsUserGetAPIRequest 查询某个用户是否同步消息 API请求 taobao.jushita.jms.user.get

查询某个用户是否同步消息,只支持单个查询

func GetTaobaoJushitaJmsUserGetAPIRequest added in v1.3.4

func GetTaobaoJushitaJmsUserGetAPIRequest() *TaobaoJushitaJmsUserGetAPIRequest

GetTaobaoJushitaJmsUserGetRequest 从 sync.Pool 获取 TaobaoJushitaJmsUserGetAPIRequest

func NewTaobaoJushitaJmsUserGetRequest

func NewTaobaoJushitaJmsUserGetRequest() *TaobaoJushitaJmsUserGetAPIRequest

NewTaobaoJushitaJmsUserGetRequest 初始化TaobaoJushitaJmsUserGetAPIRequest对象

func (TaobaoJushitaJmsUserGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoJushitaJmsUserGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoJushitaJmsUserGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoJushitaJmsUserGetAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoJushitaJmsUserGetAPIRequest) GetUserNick added in v1.2.0

func (r TaobaoJushitaJmsUserGetAPIRequest) GetUserNick() string

GetUserNick UserNick Getter

func (*TaobaoJushitaJmsUserGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoJushitaJmsUserGetAPIRequest) SetUserNick added in v1.2.0

func (r *TaobaoJushitaJmsUserGetAPIRequest) SetUserNick(_userNick string) error

SetUserNick is UserNick Setter 需要查询的用户名

type TaobaoJushitaJmsUserGetAPIResponse

type TaobaoJushitaJmsUserGetAPIResponse struct {
	model.CommonResponse
	TaobaoJushitaJmsUserGetAPIResponseModel
}

TaobaoJushitaJmsUserGetAPIResponse 查询某个用户是否同步消息 API返回值 taobao.jushita.jms.user.get

查询某个用户是否同步消息,只支持单个查询

func GetTaobaoJushitaJmsUserGetAPIResponse added in v1.3.4

func GetTaobaoJushitaJmsUserGetAPIResponse() *TaobaoJushitaJmsUserGetAPIResponse

GetTaobaoJushitaJmsUserGetAPIResponse 从 sync.Pool 获取 TaobaoJushitaJmsUserGetAPIResponse

func (*TaobaoJushitaJmsUserGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoJushitaJmsUserGetAPIResponseModel added in v1.2.0

type TaobaoJushitaJmsUserGetAPIResponseModel struct {
	XMLName xml.Name `xml:"jushita_jms_user_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 同步的用户信息
	OnsUser *TmcUser `json:"ons_user,omitempty" xml:"ons_user,omitempty"`
}

TaobaoJushitaJmsUserGetAPIResponseModel is 查询某个用户是否同步消息 成功返回结果

func (*TaobaoJushitaJmsUserGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TmcUser

type TmcUser struct {
	// 用户首次开通时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 用户最后开通时间
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 用户昵称
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,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