Documentation ¶
Overview ¶
Package jms 包含ONS消息服务相关结构体
Index ¶
- type MsgGroupDo
- type TaobaoJushitaJmsGroupGetAPIRequest
- func (r TaobaoJushitaJmsGroupGetAPIRequest) GetApiMethodName() string
- func (r TaobaoJushitaJmsGroupGetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoJushitaJmsGroupGetAPIRequest) GetGroupNames() []string
- func (r TaobaoJushitaJmsGroupGetAPIRequest) GetPageNo() int64
- func (r TaobaoJushitaJmsGroupGetAPIRequest) GetPageSize() int64
- func (r TaobaoJushitaJmsGroupGetAPIRequest) GetRawParams() model.Params
- func (r *TaobaoJushitaJmsGroupGetAPIRequest) SetGroupNames(_groupNames []string) error
- func (r *TaobaoJushitaJmsGroupGetAPIRequest) SetPageNo(_pageNo int64) error
- func (r *TaobaoJushitaJmsGroupGetAPIRequest) SetPageSize(_pageSize int64) error
- type TaobaoJushitaJmsGroupGetAPIResponse
- type TaobaoJushitaJmsGroupGetAPIResponseModel
- type TaobaoJushitaJmsTopicsGetAPIRequest
- func (r TaobaoJushitaJmsTopicsGetAPIRequest) GetApiMethodName() string
- func (r TaobaoJushitaJmsTopicsGetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoJushitaJmsTopicsGetAPIRequest) GetNick() string
- func (r TaobaoJushitaJmsTopicsGetAPIRequest) GetRawParams() model.Params
- func (r *TaobaoJushitaJmsTopicsGetAPIRequest) SetNick(_nick string) error
- type TaobaoJushitaJmsTopicsGetAPIResponse
- type TaobaoJushitaJmsTopicsGetAPIResponseModel
- type TaobaoJushitaJmsUserAddAPIRequest
- func (r TaobaoJushitaJmsUserAddAPIRequest) GetApiMethodName() string
- func (r TaobaoJushitaJmsUserAddAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoJushitaJmsUserAddAPIRequest) GetRawParams() model.Params
- func (r TaobaoJushitaJmsUserAddAPIRequest) GetTopicNames() []string
- func (r *TaobaoJushitaJmsUserAddAPIRequest) SetTopicNames(_topicNames []string) error
- type TaobaoJushitaJmsUserAddAPIResponse
- type TaobaoJushitaJmsUserAddAPIResponseModel
- type TaobaoJushitaJmsUserDeleteAPIRequest
- func (r TaobaoJushitaJmsUserDeleteAPIRequest) GetApiMethodName() string
- func (r TaobaoJushitaJmsUserDeleteAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoJushitaJmsUserDeleteAPIRequest) GetRawParams() model.Params
- func (r TaobaoJushitaJmsUserDeleteAPIRequest) GetUserNick() string
- func (r *TaobaoJushitaJmsUserDeleteAPIRequest) SetUserNick(_userNick string) error
- type TaobaoJushitaJmsUserDeleteAPIResponse
- type TaobaoJushitaJmsUserDeleteAPIResponseModel
- type TaobaoJushitaJmsUserGetAPIRequest
- func (r TaobaoJushitaJmsUserGetAPIRequest) GetApiMethodName() string
- func (r TaobaoJushitaJmsUserGetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoJushitaJmsUserGetAPIRequest) GetRawParams() model.Params
- func (r TaobaoJushitaJmsUserGetAPIRequest) GetUserNick() string
- func (r *TaobaoJushitaJmsUserGetAPIRequest) SetUserNick(_userNick string) error
- type TaobaoJushitaJmsUserGetAPIResponse
- type TaobaoJushitaJmsUserGetAPIResponseModel
- type TmcUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgGroupDo ¶ added in v1.2.0
type MsgGroupDo struct { // 123 Name string `json:"name,omitempty" xml:"name,omitempty"` }
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 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
func (r TaobaoJushitaJmsGroupGetAPIRequest) GetPageNo() int64
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
func (r TaobaoJushitaJmsGroupGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
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中已有的分组
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分组 成功返回结果
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 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
func (r TaobaoJushitaJmsTopicsGetAPIRequest) GetNick() string
GetNick Nick Getter
func (TaobaoJushitaJmsTopicsGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r TaobaoJushitaJmsTopicsGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaoJushitaJmsTopicsGetAPIRequest) SetNick ¶ added in v1.2.0
func (r *TaobaoJushitaJmsTopicsGetAPIRequest) SetNick(_nick string) error
SetNick is Nick Setter 卖家nick
type TaobaoJushitaJmsTopicsGetAPIResponse ¶
type TaobaoJushitaJmsTopicsGetAPIResponse struct { model.CommonResponse TaobaoJushitaJmsTopicsGetAPIResponseModel }
TaobaoJushitaJmsTopicsGetAPIResponse 根据用户nick获取开通的消息列表 API返回值 taobao.jushita.jms.topics.get
根据用户nick获取开通的消息列表
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获取开通的消息列表 成功返回结果
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 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
func (r TaobaoJushitaJmsUserAddAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaoJushitaJmsUserAddAPIRequest) GetTopicNames ¶ added in v1.2.0
func (r TaobaoJushitaJmsUserAddAPIRequest) GetTopicNames() []string
GetTopicNames TopicNames Getter
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消息同步用户
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消息同步用户 成功返回结果
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 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
func (r TaobaoJushitaJmsUserDeleteAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaoJushitaJmsUserDeleteAPIRequest) GetUserNick ¶ added in v1.2.0
func (r TaobaoJushitaJmsUserDeleteAPIRequest) GetUserNick() string
GetUserNick UserNick Getter
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中
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消息同步用户 成功返回结果
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 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
func (r TaobaoJushitaJmsUserGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaoJushitaJmsUserGetAPIRequest) GetUserNick ¶ added in v1.2.0
func (r TaobaoJushitaJmsUserGetAPIRequest) GetUserNick() string
GetUserNick UserNick Getter
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
查询某个用户是否同步消息,只支持单个查询
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 查询某个用户是否同步消息 成功返回结果
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 结构体
Source Files ¶
- MsgGroupDo.go
- TaobaoJushitaJmsGroupGetAPIRequest.go
- TaobaoJushitaJmsGroupGetAPIResponse.go
- TaobaoJushitaJmsTopicsGetAPIRequest.go
- TaobaoJushitaJmsTopicsGetAPIResponse.go
- TaobaoJushitaJmsUserAddAPIRequest.go
- TaobaoJushitaJmsUserAddAPIResponse.go
- TaobaoJushitaJmsUserDeleteAPIRequest.go
- TaobaoJushitaJmsUserDeleteAPIResponse.go
- TaobaoJushitaJmsUserGetAPIRequest.go
- TaobaoJushitaJmsUserGetAPIResponse.go
- TmcUser.go
- doc.go