openim

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package openim 包含openimAPI相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsMessage

type EsMessage struct {
	// 消息内容
	Content []RoamingMessageItem `json:"content,omitempty" xml:"content>roaming_message_item,omitempty"`
	// 消息时间,UTC时间
	Time int64 `json:"time,omitempty" xml:"time,omitempty"`
	// 消息UUID
	Uuid int64 `json:"uuid,omitempty" xml:"uuid,omitempty"`
	// 消息类型
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 发送方
	FromId *OpenImUser `json:"from_id,omitempty" xml:"from_id,omitempty"`
	// 接收方
	ToId *OpenImUser `json:"to_id,omitempty" xml:"to_id,omitempty"`
}

EsMessage 结构体

type EsMessageResult

type EsMessageResult struct {
	// 消息序列
	Messages []EsMessage `json:"messages,omitempty" xml:"messages>es_message,omitempty"`
	// nextkey
	NextKey string `json:"next_key,omitempty" xml:"next_key,omitempty"`
}

EsMessageResult 结构体

type MessageItem

type MessageItem struct {
	// 节点类型
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 节点值
	Value string `json:"value,omitempty" xml:"value,omitempty"`
}

MessageItem 结构体

type OpenImUser

type OpenImUser struct {
	// 用户id
	Uid string `json:"uid,omitempty" xml:"uid,omitempty"`
	// 账户appkey
	AppKey string `json:"app_key,omitempty" xml:"app_key,omitempty"`
	// 是否为淘宝账号
	TaobaoAccount bool `json:"taobao_account,omitempty" xml:"taobao_account,omitempty"`
}

OpenImUser 结构体

type RoamingMessage

type RoamingMessage struct {
	// 消息内容
	ContentList []RoamingMessageItem `json:"content_list,omitempty" xml:"content_list>roaming_message_item,omitempty"`
	// 消息时间(UTC时间)
	Time int64 `json:"time,omitempty" xml:"time,omitempty"`
	// 消息方向。user1 -> user2 = 0 , user2->user1 = 1
	Direction int64 `json:"direction,omitempty" xml:"direction,omitempty"`
	// 消息唯一ID
	Uuid int64 `json:"uuid,omitempty" xml:"uuid,omitempty"`
	// 消息类型
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
}

RoamingMessage 结构体

type RoamingMessageItem

type RoamingMessageItem struct {
	// 节点类型
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 值
	Value string `json:"value,omitempty" xml:"value,omitempty"`
}

RoamingMessageItem 结构体

type RoamingMessageResult

type RoamingMessageResult struct {
	// 消息列表
	Messages []RoamingMessage `json:"messages,omitempty" xml:"messages>roaming_message,omitempty"`
	// 下次迭代key
	NextKey string `json:"next_key,omitempty" xml:"next_key,omitempty"`
}

RoamingMessageResult 结构体

type TaobaoopenimappchatlogsgetAPIRequest added in v1.3.1

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

TaobaoopenimappchatlogsgetAPIRequest openim应用聊天记录查询 API请求 taobao.openim.app.chatlogs.get

查询openim应用的聊天记录

func NewTaobaoopenimappchatlogsgetRequest added in v1.3.1

func NewTaobaoopenimappchatlogsgetRequest() *TaobaoopenimappchatlogsgetAPIRequest

NewTaobaoopenimappchatlogsgetRequest 初始化TaobaoopenimappchatlogsgetAPIRequest对象

func (TaobaoopenimappchatlogsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimappchatlogsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimappchatlogsgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimappchatlogsgetAPIRequest) GetBeg added in v1.3.1

GetBeg Beg Getter

func (TaobaoopenimappchatlogsgetAPIRequest) GetCount added in v1.3.1

GetCount Count Getter

func (TaobaoopenimappchatlogsgetAPIRequest) GetEnd added in v1.3.1

GetEnd End Getter

func (TaobaoopenimappchatlogsgetAPIRequest) GetNext added in v1.3.1

GetNext Next Getter

func (TaobaoopenimappchatlogsgetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoopenimappchatlogsgetAPIRequest) SetBeg added in v1.3.1

SetBeg is Beg Setter 查询结束时间。UTC时间。精度到秒

func (*TaobaoopenimappchatlogsgetAPIRequest) SetCount added in v1.3.1

func (r *TaobaoopenimappchatlogsgetAPIRequest) SetCount(_count int64) error

SetCount is Count Setter 查询最大条数

func (*TaobaoopenimappchatlogsgetAPIRequest) SetEnd added in v1.3.1

SetEnd is End Setter 查询结束时间。UTC时间。精度到秒

func (*TaobaoopenimappchatlogsgetAPIRequest) SetNext added in v1.3.1

SetNext is Next Setter 迭代key

type TaobaoopenimappchatlogsgetAPIResponse added in v1.3.1

type TaobaoopenimappchatlogsgetAPIResponse struct {
	model.CommonResponse
	TaobaoopenimappchatlogsgetAPIResponseModel
}

TaobaoopenimappchatlogsgetAPIResponse openim应用聊天记录查询 API返回值 taobao.openim.app.chatlogs.get

查询openim应用的聊天记录

type TaobaoopenimappchatlogsgetAPIResponseModel added in v1.3.1

type TaobaoopenimappchatlogsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_app_chatlogs_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果
	Result *EsMessageResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoopenimappchatlogsgetAPIResponseModel is openim应用聊天记录查询 成功返回结果

type TaobaoopenimchatlogsgetAPIRequest added in v1.3.1

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

TaobaoopenimchatlogsgetAPIRequest openim聊天记录查询接口 API请求 taobao.openim.chatlogs.get

查询openim账号聊天记录

func NewTaobaoopenimchatlogsgetRequest added in v1.3.1

func NewTaobaoopenimchatlogsgetRequest() *TaobaoopenimchatlogsgetAPIRequest

NewTaobaoopenimchatlogsgetRequest 初始化TaobaoopenimchatlogsgetAPIRequest对象

func (TaobaoopenimchatlogsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimchatlogsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimchatlogsgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimchatlogsgetAPIRequest) GetBegin added in v1.3.1

GetBegin Begin Getter

func (TaobaoopenimchatlogsgetAPIRequest) GetCount added in v1.3.1

GetCount Count Getter

func (TaobaoopenimchatlogsgetAPIRequest) GetEnd added in v1.3.1

GetEnd End Getter

func (TaobaoopenimchatlogsgetAPIRequest) GetNextKey added in v1.3.1

GetNextKey NextKey Getter

func (TaobaoopenimchatlogsgetAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimchatlogsgetAPIRequest) GetUser1 added in v1.3.1

GetUser1 User1 Getter

func (TaobaoopenimchatlogsgetAPIRequest) GetUser2 added in v1.3.1

GetUser2 User2 Getter

func (*TaobaoopenimchatlogsgetAPIRequest) SetBegin added in v1.3.1

func (r *TaobaoopenimchatlogsgetAPIRequest) SetBegin(_begin int64) error

SetBegin is Begin Setter 查询开始时间(UTC时间)

func (*TaobaoopenimchatlogsgetAPIRequest) SetCount added in v1.3.1

func (r *TaobaoopenimchatlogsgetAPIRequest) SetCount(_count int64) error

SetCount is Count Setter 查询条数

func (*TaobaoopenimchatlogsgetAPIRequest) SetEnd added in v1.3.1

SetEnd is End Setter 查询结束时间(UTC时间)

func (*TaobaoopenimchatlogsgetAPIRequest) SetNextKey added in v1.3.1

func (r *TaobaoopenimchatlogsgetAPIRequest) SetNextKey(_nextKey string) error

SetNextKey is NextKey Setter 迭代key

func (*TaobaoopenimchatlogsgetAPIRequest) SetUser1 added in v1.3.1

func (r *TaobaoopenimchatlogsgetAPIRequest) SetUser1(_user1 *OpenImUser) error

SetUser1 is User1 Setter 用户1信息

func (*TaobaoopenimchatlogsgetAPIRequest) SetUser2 added in v1.3.1

func (r *TaobaoopenimchatlogsgetAPIRequest) SetUser2(_user2 *OpenImUser) error

SetUser2 is User2 Setter 用户2信息

type TaobaoopenimchatlogsgetAPIResponse added in v1.3.1

type TaobaoopenimchatlogsgetAPIResponse struct {
	model.CommonResponse
	TaobaoopenimchatlogsgetAPIResponseModel
}

TaobaoopenimchatlogsgetAPIResponse openim聊天记录查询接口 API返回值 taobao.openim.chatlogs.get

查询openim账号聊天记录

type TaobaoopenimchatlogsgetAPIResponseModel added in v1.3.1

type TaobaoopenimchatlogsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_chatlogs_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 聊天记录查询结果
	Result *RoamingMessageResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoopenimchatlogsgetAPIResponseModel is openim聊天记录查询接口 成功返回结果

type TaobaoopenimchatlogsimportAPIRequest added in v1.3.1

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

TaobaoopenimchatlogsimportAPIRequest openim单聊消息导入 API请求 taobao.openim.chatlogs.import

提供openim账号的聊天消息导入功能

func NewTaobaoopenimchatlogsimportRequest added in v1.3.1

func NewTaobaoopenimchatlogsimportRequest() *TaobaoopenimchatlogsimportAPIRequest

NewTaobaoopenimchatlogsimportRequest 初始化TaobaoopenimchatlogsimportAPIRequest对象

func (TaobaoopenimchatlogsimportAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimchatlogsimportAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimchatlogsimportAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimchatlogsimportAPIRequest) GetMessages added in v1.3.1

GetMessages Messages Getter

func (TaobaoopenimchatlogsimportAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoopenimchatlogsimportAPIRequest) SetMessages added in v1.3.1

func (r *TaobaoopenimchatlogsimportAPIRequest) SetMessages(_messages []TextMessage) error

SetMessages is Messages Setter 消息序列

type TaobaoopenimchatlogsimportAPIResponse added in v1.3.1

type TaobaoopenimchatlogsimportAPIResponse struct {
	model.CommonResponse
	TaobaoopenimchatlogsimportAPIResponseModel
}

TaobaoopenimchatlogsimportAPIResponse openim单聊消息导入 API返回值 taobao.openim.chatlogs.import

提供openim账号的聊天消息导入功能

type TaobaoopenimchatlogsimportAPIResponseModel added in v1.3.1

type TaobaoopenimchatlogsimportAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_chatlogs_import_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 错误码
	Ret int64 `json:"ret,omitempty" xml:"ret,omitempty"`
	// 是否成功
	Succ bool `json:"succ,omitempty" xml:"succ,omitempty"`
}

TaobaoopenimchatlogsimportAPIResponseModel is openim单聊消息导入 成功返回结果

type TaobaoopenimioscertsandboxsetAPIRequest added in v1.3.1

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

TaobaoopenimioscertsandboxsetAPIRequest 设置开发环境证书 API请求 taobao.openim.ioscert.sandbox.set

设置开发环境证书

func NewTaobaoopenimioscertsandboxsetRequest added in v1.3.1

func NewTaobaoopenimioscertsandboxsetRequest() *TaobaoopenimioscertsandboxsetAPIRequest

NewTaobaoopenimioscertsandboxsetRequest 初始化TaobaoopenimioscertsandboxsetAPIRequest对象

func (TaobaoopenimioscertsandboxsetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimioscertsandboxsetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimioscertsandboxsetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimioscertsandboxsetAPIRequest) GetCert added in v1.3.1

GetCert Cert Getter

func (TaobaoopenimioscertsandboxsetAPIRequest) GetPassword added in v1.3.1

GetPassword Password Getter

func (TaobaoopenimioscertsandboxsetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoopenimioscertsandboxsetAPIRequest) SetCert added in v1.3.1

SetCert is Cert Setter 证书内容,base64编码

func (*TaobaoopenimioscertsandboxsetAPIRequest) SetPassword added in v1.3.1

func (r *TaobaoopenimioscertsandboxsetAPIRequest) SetPassword(_password string) error

SetPassword is Password Setter 系统自动生成

type TaobaoopenimioscertsandboxsetAPIResponse added in v1.3.1

type TaobaoopenimioscertsandboxsetAPIResponse struct {
	model.CommonResponse
	TaobaoopenimioscertsandboxsetAPIResponseModel
}

TaobaoopenimioscertsandboxsetAPIResponse 设置开发环境证书 API返回值 taobao.openim.ioscert.sandbox.set

设置开发环境证书

type TaobaoopenimioscertsandboxsetAPIResponseModel added in v1.3.1

type TaobaoopenimioscertsandboxsetAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_ioscert_sandbox_set_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作成功
	Code string `json:"code,omitempty" xml:"code,omitempty"`
}

TaobaoopenimioscertsandboxsetAPIResponseModel is 设置开发环境证书 成功返回结果

type TaobaoopenimrelationsgetAPIRequest added in v1.3.1

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

TaobaoopenimrelationsgetAPIRequest 获取openim账号的聊天关系 API请求 taobao.openim.relations.get

获取openim账号的聊天关系

func NewTaobaoopenimrelationsgetRequest added in v1.3.1

func NewTaobaoopenimrelationsgetRequest() *TaobaoopenimrelationsgetAPIRequest

NewTaobaoopenimrelationsgetRequest 初始化TaobaoopenimrelationsgetAPIRequest对象

func (TaobaoopenimrelationsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimrelationsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimrelationsgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimrelationsgetAPIRequest) GetBegDate added in v1.3.1

GetBegDate BegDate Getter

func (TaobaoopenimrelationsgetAPIRequest) GetEndDate added in v1.3.1

GetEndDate EndDate Getter

func (TaobaoopenimrelationsgetAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimrelationsgetAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimrelationsgetAPIRequest) SetBegDate added in v1.3.1

func (r *TaobaoopenimrelationsgetAPIRequest) SetBegDate(_begDate string) error

SetBegDate is BegDate Setter 查询起始日期。格式yyyyMMdd。不得早于一个月

func (*TaobaoopenimrelationsgetAPIRequest) SetEndDate added in v1.3.1

func (r *TaobaoopenimrelationsgetAPIRequest) SetEndDate(_endDate string) error

SetEndDate is EndDate Setter 查询结束日期。格式yyyyMMdd。不得早于一个月

func (*TaobaoopenimrelationsgetAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 用户信息

type TaobaoopenimrelationsgetAPIResponse added in v1.3.1

type TaobaoopenimrelationsgetAPIResponse struct {
	model.CommonResponse
	TaobaoopenimrelationsgetAPIResponseModel
}

TaobaoopenimrelationsgetAPIResponse 获取openim账号的聊天关系 API返回值 taobao.openim.relations.get

获取openim账号的聊天关系

type TaobaoopenimrelationsgetAPIResponseModel added in v1.3.1

type TaobaoopenimrelationsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_relations_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 用户信息列表
	Users []OpenImUser `json:"users,omitempty" xml:"users>open_im_user,omitempty"`
}

TaobaoopenimrelationsgetAPIResponseModel is 获取openim账号的聊天关系 成功返回结果

type TaobaoopenimsnfilterwordsetfilterAPIRequest added in v1.3.1

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

TaobaoopenimsnfilterwordsetfilterAPIRequest 关键词过滤 API请求 taobao.openim.snfilterword.setfilter

设置openim关键词过滤

func NewTaobaoopenimsnfilterwordsetfilterRequest added in v1.3.1

func NewTaobaoopenimsnfilterwordsetfilterRequest() *TaobaoopenimsnfilterwordsetfilterAPIRequest

NewTaobaoopenimsnfilterwordsetfilterRequest 初始化TaobaoopenimsnfilterwordsetfilterAPIRequest对象

func (TaobaoopenimsnfilterwordsetfilterAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimsnfilterwordsetfilterAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimsnfilterwordsetfilterAPIRequest) GetCreator added in v1.3.1

GetCreator Creator Getter

func (TaobaoopenimsnfilterwordsetfilterAPIRequest) GetDesc added in v1.3.1

GetDesc Desc Getter

func (TaobaoopenimsnfilterwordsetfilterAPIRequest) GetFilterword added in v1.3.1

GetFilterword Filterword Getter

func (TaobaoopenimsnfilterwordsetfilterAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoopenimsnfilterwordsetfilterAPIRequest) SetCreator added in v1.3.1

SetCreator is Creator Setter 上传者身份信息,区分不同上传者;只是记录,没有身份校验功能

func (*TaobaoopenimsnfilterwordsetfilterAPIRequest) SetDesc added in v1.3.1

SetDesc is Desc Setter 过滤原因描述

func (*TaobaoopenimsnfilterwordsetfilterAPIRequest) SetFilterword added in v1.3.1

func (r *TaobaoopenimsnfilterwordsetfilterAPIRequest) SetFilterword(_filterword string) error

SetFilterword is Filterword Setter 需要过滤的关键词

type TaobaoopenimsnfilterwordsetfilterAPIResponse added in v1.3.1

type TaobaoopenimsnfilterwordsetfilterAPIResponse struct {
	model.CommonResponse
	TaobaoopenimsnfilterwordsetfilterAPIResponseModel
}

TaobaoopenimsnfilterwordsetfilterAPIResponse 关键词过滤 API返回值 taobao.openim.snfilterword.setfilter

设置openim关键词过滤

type TaobaoopenimsnfilterwordsetfilterAPIResponseModel added in v1.3.1

type TaobaoopenimsnfilterwordsetfilterAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_snfilterword_setfilter_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误原因
	Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"`
	// 成功
	Errid int64 `json:"errid,omitempty" xml:"errid,omitempty"`
}

TaobaoopenimsnfilterwordsetfilterAPIResponseModel is 关键词过滤 成功返回结果

type TaobaoopenimtribecreateAPIRequest added in v1.3.1

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

TaobaoopenimtribecreateAPIRequest 创建群 API请求 taobao.openim.tribe.create

创建一个openim的群

func NewTaobaoopenimtribecreateRequest added in v1.3.1

func NewTaobaoopenimtribecreateRequest() *TaobaoopenimtribecreateAPIRequest

NewTaobaoopenimtribecreateRequest 初始化TaobaoopenimtribecreateAPIRequest对象

func (TaobaoopenimtribecreateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribecreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribecreateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribecreateAPIRequest) GetMembers added in v1.3.1

GetMembers Members Getter

func (TaobaoopenimtribecreateAPIRequest) GetNotice added in v1.3.1

GetNotice Notice Getter

func (TaobaoopenimtribecreateAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribecreateAPIRequest) GetTribeName added in v1.3.1

func (r TaobaoopenimtribecreateAPIRequest) GetTribeName() string

GetTribeName TribeName Getter

func (TaobaoopenimtribecreateAPIRequest) GetTribeType added in v1.3.1

func (r TaobaoopenimtribecreateAPIRequest) GetTribeType() int64

GetTribeType TribeType Getter

func (TaobaoopenimtribecreateAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribecreateAPIRequest) SetMembers added in v1.3.1

func (r *TaobaoopenimtribecreateAPIRequest) SetMembers(_members []OpenImUser) error

SetMembers is Members Setter 创建群时候拉入群的成员tribe_type = 1(即为讨论组类型)时 该参数为必选tribe_type = 0 (即为普通群类型)时,改参数无效,可不填

func (*TaobaoopenimtribecreateAPIRequest) SetNotice added in v1.3.1

func (r *TaobaoopenimtribecreateAPIRequest) SetNotice(_notice string) error

SetNotice is Notice Setter 群公告

func (*TaobaoopenimtribecreateAPIRequest) SetTribeName added in v1.3.1

func (r *TaobaoopenimtribecreateAPIRequest) SetTribeName(_tribeName string) error

SetTribeName is TribeName Setter 群名称

func (*TaobaoopenimtribecreateAPIRequest) SetTribeType added in v1.3.1

func (r *TaobaoopenimtribecreateAPIRequest) SetTribeType(_tribeType int64) error

SetTribeType is TribeType Setter 群类型有两种tribe_type = 0 普通群 普通群有管理员角色,对成员加入有权限控制tribe_type = 1 讨论组 讨论组没有管理员,不能解散

func (*TaobaoopenimtribecreateAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 用户信息

type TaobaoopenimtribecreateAPIResponse added in v1.3.1

type TaobaoopenimtribecreateAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribecreateAPIResponseModel
}

TaobaoopenimtribecreateAPIResponse 创建群 API返回值 taobao.openim.tribe.create

创建一个openim的群

type TaobaoopenimtribecreateAPIResponseModel added in v1.3.1

type TaobaoopenimtribecreateAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 创建群的信息
	TribeInfo *TribeInfo `json:"tribe_info,omitempty" xml:"tribe_info,omitempty"`
}

TaobaoopenimtribecreateAPIResponseModel is 创建群 成功返回结果

type TaobaoopenimtribedismissAPIRequest added in v1.3.1

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

TaobaoopenimtribedismissAPIRequest OPENIM群解散 API请求 taobao.openim.tribe.dismiss

OPENIM群解散

func NewTaobaoopenimtribedismissRequest added in v1.3.1

func NewTaobaoopenimtribedismissRequest() *TaobaoopenimtribedismissAPIRequest

NewTaobaoopenimtribedismissRequest 初始化TaobaoopenimtribedismissAPIRequest对象

func (TaobaoopenimtribedismissAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribedismissAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribedismissAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribedismissAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribedismissAPIRequest) GetTribeId added in v1.3.1

GetTribeId TribeId Getter

func (TaobaoopenimtribedismissAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribedismissAPIRequest) SetTribeId added in v1.3.1

func (r *TaobaoopenimtribedismissAPIRequest) SetTribeId(_tribeId int64) error

SetTribeId is TribeId Setter 群id

func (*TaobaoopenimtribedismissAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 用户信息

type TaobaoopenimtribedismissAPIResponse added in v1.3.1

type TaobaoopenimtribedismissAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribedismissAPIResponseModel
}

TaobaoopenimtribedismissAPIResponse OPENIM群解散 API返回值 taobao.openim.tribe.dismiss

OPENIM群解散

type TaobaoopenimtribedismissAPIResponseModel added in v1.3.1

type TaobaoopenimtribedismissAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_dismiss_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 群服务code
	TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"`
}

TaobaoopenimtribedismissAPIResponseModel is OPENIM群解散 成功返回结果

type TaobaoopenimtribeexpelAPIRequest added in v1.3.1

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

TaobaoopenimtribeexpelAPIRequest OPENIM群踢出成员 API请求 taobao.openim.tribe.expel

OPENIM群踢出成员

func NewTaobaoopenimtribeexpelRequest added in v1.3.1

func NewTaobaoopenimtribeexpelRequest() *TaobaoopenimtribeexpelAPIRequest

NewTaobaoopenimtribeexpelRequest 初始化TaobaoopenimtribeexpelAPIRequest对象

func (TaobaoopenimtribeexpelAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribeexpelAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribeexpelAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribeexpelAPIRequest) GetMember added in v1.3.1

GetMember Member Getter

func (TaobaoopenimtribeexpelAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribeexpelAPIRequest) GetTribeId added in v1.3.1

func (r TaobaoopenimtribeexpelAPIRequest) GetTribeId() int64

GetTribeId TribeId Getter

func (TaobaoopenimtribeexpelAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribeexpelAPIRequest) SetMember added in v1.3.1

func (r *TaobaoopenimtribeexpelAPIRequest) SetMember(_member *OpenImUser) error

SetMember is Member Setter 用户信息

func (*TaobaoopenimtribeexpelAPIRequest) SetTribeId added in v1.3.1

func (r *TaobaoopenimtribeexpelAPIRequest) SetTribeId(_tribeId int64) error

SetTribeId is TribeId Setter 群id

func (*TaobaoopenimtribeexpelAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 用户信息

type TaobaoopenimtribeexpelAPIResponse added in v1.3.1

type TaobaoopenimtribeexpelAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribeexpelAPIResponseModel
}

TaobaoopenimtribeexpelAPIResponse OPENIM群踢出成员 API返回值 taobao.openim.tribe.expel

OPENIM群踢出成员

type TaobaoopenimtribeexpelAPIResponseModel added in v1.3.1

type TaobaoopenimtribeexpelAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_expel_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 群服务code
	TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"`
}

TaobaoopenimtribeexpelAPIResponseModel is OPENIM群踢出成员 成功返回结果

type TaobaoopenimtribegetalltribesAPIRequest added in v1.3.1

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

TaobaoopenimtribegetalltribesAPIRequest 获取用户群列表 API请求 taobao.openim.tribe.getalltribes

OPENIM群服务获取用户群列表

func NewTaobaoopenimtribegetalltribesRequest added in v1.3.1

func NewTaobaoopenimtribegetalltribesRequest() *TaobaoopenimtribegetalltribesAPIRequest

NewTaobaoopenimtribegetalltribesRequest 初始化TaobaoopenimtribegetalltribesAPIRequest对象

func (TaobaoopenimtribegetalltribesAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribegetalltribesAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribegetalltribesAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribegetalltribesAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribegetalltribesAPIRequest) GetTribeTypes added in v1.3.1

func (r TaobaoopenimtribegetalltribesAPIRequest) GetTribeTypes() []int64

GetTribeTypes TribeTypes Getter

func (TaobaoopenimtribegetalltribesAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribegetalltribesAPIRequest) SetTribeTypes added in v1.3.1

func (r *TaobaoopenimtribegetalltribesAPIRequest) SetTribeTypes(_tribeTypes []int64) error

SetTribeTypes is TribeTypes Setter 群类型

func (*TaobaoopenimtribegetalltribesAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 用户信息

type TaobaoopenimtribegetalltribesAPIResponse added in v1.3.1

type TaobaoopenimtribegetalltribesAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribegetalltribesAPIResponseModel
}

TaobaoopenimtribegetalltribesAPIResponse 获取用户群列表 API返回值 taobao.openim.tribe.getalltribes

OPENIM群服务获取用户群列表

type TaobaoopenimtribegetalltribesAPIResponseModel added in v1.3.1

type TaobaoopenimtribegetalltribesAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_getalltribes_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 群列表信息
	TribeInfoList []TribeInfo `json:"tribe_info_list,omitempty" xml:"tribe_info_list>tribe_info,omitempty"`
}

TaobaoopenimtribegetalltribesAPIResponseModel is 获取用户群列表 成功返回结果

type TaobaoopenimtribegetmembersAPIRequest added in v1.3.1

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

TaobaoopenimtribegetmembersAPIRequest OPENIM群成员获取 API请求 taobao.openim.tribe.getmembers

OPENIM群成员获取

func NewTaobaoopenimtribegetmembersRequest added in v1.3.1

func NewTaobaoopenimtribegetmembersRequest() *TaobaoopenimtribegetmembersAPIRequest

NewTaobaoopenimtribegetmembersRequest 初始化TaobaoopenimtribegetmembersAPIRequest对象

func (TaobaoopenimtribegetmembersAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribegetmembersAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribegetmembersAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribegetmembersAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribegetmembersAPIRequest) GetTribeId added in v1.3.1

GetTribeId TribeId Getter

func (TaobaoopenimtribegetmembersAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribegetmembersAPIRequest) SetTribeId added in v1.3.1

func (r *TaobaoopenimtribegetmembersAPIRequest) SetTribeId(_tribeId int64) error

SetTribeId is TribeId Setter 群id

func (*TaobaoopenimtribegetmembersAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 用户信息

type TaobaoopenimtribegetmembersAPIResponse added in v1.3.1

type TaobaoopenimtribegetmembersAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribegetmembersAPIResponseModel
}

TaobaoopenimtribegetmembersAPIResponse OPENIM群成员获取 API返回值 taobao.openim.tribe.getmembers

OPENIM群成员获取

type TaobaoopenimtribegetmembersAPIResponseModel added in v1.3.1

type TaobaoopenimtribegetmembersAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_getmembers_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// OPENIM群成员列表
	TribeUserList []TribeUser `json:"tribe_user_list,omitempty" xml:"tribe_user_list>tribe_user,omitempty"`
}

TaobaoopenimtribegetmembersAPIResponseModel is OPENIM群成员获取 成功返回结果

type TaobaoopenimtribegettribeinfoAPIRequest added in v1.3.1

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

TaobaoopenimtribegettribeinfoAPIRequest 获取群信息 API请求 taobao.openim.tribe.gettribeinfo

获取群信息

func NewTaobaoopenimtribegettribeinfoRequest added in v1.3.1

func NewTaobaoopenimtribegettribeinfoRequest() *TaobaoopenimtribegettribeinfoAPIRequest

NewTaobaoopenimtribegettribeinfoRequest 初始化TaobaoopenimtribegettribeinfoAPIRequest对象

func (TaobaoopenimtribegettribeinfoAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribegettribeinfoAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribegettribeinfoAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribegettribeinfoAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribegettribeinfoAPIRequest) GetTribeId added in v1.3.1

GetTribeId TribeId Getter

func (TaobaoopenimtribegettribeinfoAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribegettribeinfoAPIRequest) SetTribeId added in v1.3.1

func (r *TaobaoopenimtribegettribeinfoAPIRequest) SetTribeId(_tribeId int64) error

SetTribeId is TribeId Setter 群ID

func (*TaobaoopenimtribegettribeinfoAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 用户信息

type TaobaoopenimtribegettribeinfoAPIResponse added in v1.3.1

type TaobaoopenimtribegettribeinfoAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribegettribeinfoAPIResponseModel
}

TaobaoopenimtribegettribeinfoAPIResponse 获取群信息 API返回值 taobao.openim.tribe.gettribeinfo

获取群信息

type TaobaoopenimtribegettribeinfoAPIResponseModel added in v1.3.1

type TaobaoopenimtribegettribeinfoAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_gettribeinfo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 群信息
	TribeInfo *TribeInfo `json:"tribe_info,omitempty" xml:"tribe_info,omitempty"`
}

TaobaoopenimtribegettribeinfoAPIResponseModel is 获取群信息 成功返回结果

type TaobaoopenimtribeinviteAPIRequest added in v1.3.1

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

TaobaoopenimtribeinviteAPIRequest OPENIM群邀请加入 API请求 taobao.openim.tribe.invite

OPENIM群邀请加入接口

func NewTaobaoopenimtribeinviteRequest added in v1.3.1

func NewTaobaoopenimtribeinviteRequest() *TaobaoopenimtribeinviteAPIRequest

NewTaobaoopenimtribeinviteRequest 初始化TaobaoopenimtribeinviteAPIRequest对象

func (TaobaoopenimtribeinviteAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribeinviteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribeinviteAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribeinviteAPIRequest) GetMembers added in v1.3.1

GetMembers Members Getter

func (TaobaoopenimtribeinviteAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribeinviteAPIRequest) GetTribeId added in v1.3.1

GetTribeId TribeId Getter

func (TaobaoopenimtribeinviteAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribeinviteAPIRequest) SetMembers added in v1.3.1

func (r *TaobaoopenimtribeinviteAPIRequest) SetMembers(_members []OpenImUser) error

SetMembers is Members Setter 用户信息

func (*TaobaoopenimtribeinviteAPIRequest) SetTribeId added in v1.3.1

func (r *TaobaoopenimtribeinviteAPIRequest) SetTribeId(_tribeId int64) error

SetTribeId is TribeId Setter 群id

func (*TaobaoopenimtribeinviteAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 用户信息

type TaobaoopenimtribeinviteAPIResponse added in v1.3.1

type TaobaoopenimtribeinviteAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribeinviteAPIResponseModel
}

TaobaoopenimtribeinviteAPIResponse OPENIM群邀请加入 API返回值 taobao.openim.tribe.invite

OPENIM群邀请加入接口

type TaobaoopenimtribeinviteAPIResponseModel added in v1.3.1

type TaobaoopenimtribeinviteAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_invite_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 群服务code
	TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"`
}

TaobaoopenimtribeinviteAPIResponseModel is OPENIM群邀请加入 成功返回结果

type TaobaoopenimtribejoinAPIRequest added in v1.3.1

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

TaobaoopenimtribejoinAPIRequest OPENIM群主动加入 API请求 taobao.openim.tribe.join

OPENIM群主动加入

func NewTaobaoopenimtribejoinRequest added in v1.3.1

func NewTaobaoopenimtribejoinRequest() *TaobaoopenimtribejoinAPIRequest

NewTaobaoopenimtribejoinRequest 初始化TaobaoopenimtribejoinAPIRequest对象

func (TaobaoopenimtribejoinAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribejoinAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribejoinAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribejoinAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoopenimtribejoinAPIRequest) GetRawParams() model.Params

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

func (TaobaoopenimtribejoinAPIRequest) GetTribeId added in v1.3.1

func (r TaobaoopenimtribejoinAPIRequest) GetTribeId() int64

GetTribeId TribeId Getter

func (TaobaoopenimtribejoinAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribejoinAPIRequest) SetTribeId added in v1.3.1

func (r *TaobaoopenimtribejoinAPIRequest) SetTribeId(_tribeId int64) error

SetTribeId is TribeId Setter 群id

func (*TaobaoopenimtribejoinAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 用户信息

type TaobaoopenimtribejoinAPIResponse added in v1.3.1

type TaobaoopenimtribejoinAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribejoinAPIResponseModel
}

TaobaoopenimtribejoinAPIResponse OPENIM群主动加入 API返回值 taobao.openim.tribe.join

OPENIM群主动加入

type TaobaoopenimtribejoinAPIResponseModel added in v1.3.1

type TaobaoopenimtribejoinAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_join_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 群服务code
	TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"`
}

TaobaoopenimtribejoinAPIResponseModel is OPENIM群主动加入 成功返回结果

type TaobaoopenimtribelogsgetAPIRequest added in v1.3.1

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

TaobaoopenimtribelogsgetAPIRequest openim 群聊天记录导出接口 API请求 taobao.openim.tribelogs.get

获取openim账号的群聊天记录

func NewTaobaoopenimtribelogsgetRequest added in v1.3.1

func NewTaobaoopenimtribelogsgetRequest() *TaobaoopenimtribelogsgetAPIRequest

NewTaobaoopenimtribelogsgetRequest 初始化TaobaoopenimtribelogsgetAPIRequest对象

func (TaobaoopenimtribelogsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribelogsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribelogsgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribelogsgetAPIRequest) GetBegin added in v1.3.1

GetBegin Begin Getter

func (TaobaoopenimtribelogsgetAPIRequest) GetCount added in v1.3.1

GetCount Count Getter

func (TaobaoopenimtribelogsgetAPIRequest) GetEnd added in v1.3.1

GetEnd End Getter

func (TaobaoopenimtribelogsgetAPIRequest) GetNext added in v1.3.1

GetNext Next Getter

func (TaobaoopenimtribelogsgetAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribelogsgetAPIRequest) GetTribeId added in v1.3.1

GetTribeId TribeId Getter

func (*TaobaoopenimtribelogsgetAPIRequest) SetBegin added in v1.3.1

func (r *TaobaoopenimtribelogsgetAPIRequest) SetBegin(_begin int64) error

SetBegin is Begin Setter 查询起始时间,UTC秒数。必须在一个月内。

func (*TaobaoopenimtribelogsgetAPIRequest) SetCount added in v1.3.1

func (r *TaobaoopenimtribelogsgetAPIRequest) SetCount(_count int64) error

SetCount is Count Setter 查询条数

func (*TaobaoopenimtribelogsgetAPIRequest) SetEnd added in v1.3.1

SetEnd is End Setter 查询结束时间,UTC秒数。必须大于起始时间并小于当前时间

func (*TaobaoopenimtribelogsgetAPIRequest) SetNext added in v1.3.1

SetNext is Next Setter 迭代key

func (*TaobaoopenimtribelogsgetAPIRequest) SetTribeId added in v1.3.1

func (r *TaobaoopenimtribelogsgetAPIRequest) SetTribeId(_tribeId string) error

SetTribeId is TribeId Setter 群号

type TaobaoopenimtribelogsgetAPIResponse added in v1.3.1

type TaobaoopenimtribelogsgetAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribelogsgetAPIResponseModel
}

TaobaoopenimtribelogsgetAPIResponse openim 群聊天记录导出接口 API返回值 taobao.openim.tribelogs.get

获取openim账号的群聊天记录

type TaobaoopenimtribelogsgetAPIResponseModel added in v1.3.1

type TaobaoopenimtribelogsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribelogs_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 错误原因
	Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
	// 错误码
	RetCode int64 `json:"retCode,omitempty" xml:"retCode,omitempty"`
	// 返回结构
	Data *TribeMessageResult `json:"data,omitempty" xml:"data,omitempty"`
	// 是否成功
	Succ bool `json:"succ,omitempty" xml:"succ,omitempty"`
}

TaobaoopenimtribelogsgetAPIResponseModel is openim 群聊天记录导出接口 成功返回结果

type TaobaoopenimtribelogsimportAPIRequest added in v1.3.1

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

TaobaoopenimtribelogsimportAPIRequest openim群聊天记录导入 API请求 taobao.openim.tribelogs.import

openim群聊天记录导入

func NewTaobaoopenimtribelogsimportRequest added in v1.3.1

func NewTaobaoopenimtribelogsimportRequest() *TaobaoopenimtribelogsimportAPIRequest

NewTaobaoopenimtribelogsimportRequest 初始化TaobaoopenimtribelogsimportAPIRequest对象

func (TaobaoopenimtribelogsimportAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribelogsimportAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribelogsimportAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribelogsimportAPIRequest) GetMessages added in v1.3.1

GetMessages Messages Getter

func (TaobaoopenimtribelogsimportAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribelogsimportAPIRequest) GetTribeId added in v1.3.1

GetTribeId TribeId Getter

func (*TaobaoopenimtribelogsimportAPIRequest) SetMessages added in v1.3.1

func (r *TaobaoopenimtribelogsimportAPIRequest) SetMessages(_messages []TribeTextMessage) error

SetMessages is Messages Setter 消息列表

func (*TaobaoopenimtribelogsimportAPIRequest) SetTribeId added in v1.3.1

func (r *TaobaoopenimtribelogsimportAPIRequest) SetTribeId(_tribeId int64) error

SetTribeId is TribeId Setter 群号。必须为已存在的群,且群主属于本app

type TaobaoopenimtribelogsimportAPIResponse added in v1.3.1

type TaobaoopenimtribelogsimportAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribelogsimportAPIResponseModel
}

TaobaoopenimtribelogsimportAPIResponse openim群聊天记录导入 API返回值 taobao.openim.tribelogs.import

openim群聊天记录导入

type TaobaoopenimtribelogsimportAPIResponseModel added in v1.3.1

type TaobaoopenimtribelogsimportAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribelogs_import_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 错误码
	Ret int64 `json:"ret,omitempty" xml:"ret,omitempty"`
	// 是否成功
	Succ bool `json:"succ,omitempty" xml:"succ,omitempty"`
}

TaobaoopenimtribelogsimportAPIResponseModel is openim群聊天记录导入 成功返回结果

type TaobaoopenimtribemodifytribeinfoAPIRequest added in v1.3.1

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

TaobaoopenimtribemodifytribeinfoAPIRequest OPENIM群信息修改 API请求 taobao.openim.tribe.modifytribeinfo

OPENIM群信息修改

func NewTaobaoopenimtribemodifytribeinfoRequest added in v1.3.1

func NewTaobaoopenimtribemodifytribeinfoRequest() *TaobaoopenimtribemodifytribeinfoAPIRequest

NewTaobaoopenimtribemodifytribeinfoRequest 初始化TaobaoopenimtribemodifytribeinfoAPIRequest对象

func (TaobaoopenimtribemodifytribeinfoAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribemodifytribeinfoAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribemodifytribeinfoAPIRequest) GetNotice added in v1.3.1

GetNotice Notice Getter

func (TaobaoopenimtribemodifytribeinfoAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribemodifytribeinfoAPIRequest) GetTribeId added in v1.3.1

GetTribeId TribeId Getter

func (TaobaoopenimtribemodifytribeinfoAPIRequest) GetTribeName added in v1.3.1

GetTribeName TribeName Getter

func (TaobaoopenimtribemodifytribeinfoAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribemodifytribeinfoAPIRequest) SetNotice added in v1.3.1

SetNotice is Notice Setter 群公告

func (*TaobaoopenimtribemodifytribeinfoAPIRequest) SetTribeId added in v1.3.1

func (r *TaobaoopenimtribemodifytribeinfoAPIRequest) SetTribeId(_tribeId int64) error

SetTribeId is TribeId Setter 群id

func (*TaobaoopenimtribemodifytribeinfoAPIRequest) SetTribeName added in v1.3.1

func (r *TaobaoopenimtribemodifytribeinfoAPIRequest) SetTribeName(_tribeName string) error

SetTribeName is TribeName Setter 群名称

func (*TaobaoopenimtribemodifytribeinfoAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 用户信息

type TaobaoopenimtribemodifytribeinfoAPIResponse added in v1.3.1

type TaobaoopenimtribemodifytribeinfoAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribemodifytribeinfoAPIResponseModel
}

TaobaoopenimtribemodifytribeinfoAPIResponse OPENIM群信息修改 API返回值 taobao.openim.tribe.modifytribeinfo

OPENIM群信息修改

type TaobaoopenimtribemodifytribeinfoAPIResponseModel added in v1.3.1

type TaobaoopenimtribemodifytribeinfoAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_modifytribeinfo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 群服务code
	TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"`
}

TaobaoopenimtribemodifytribeinfoAPIResponseModel is OPENIM群信息修改 成功返回结果

type TaobaoopenimtribequitAPIRequest added in v1.3.1

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

TaobaoopenimtribequitAPIRequest OPENIM群成员退出 API请求 taobao.openim.tribe.quit

OPENIM群成员退出

func NewTaobaoopenimtribequitRequest added in v1.3.1

func NewTaobaoopenimtribequitRequest() *TaobaoopenimtribequitAPIRequest

NewTaobaoopenimtribequitRequest 初始化TaobaoopenimtribequitAPIRequest对象

func (TaobaoopenimtribequitAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribequitAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribequitAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribequitAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoopenimtribequitAPIRequest) GetRawParams() model.Params

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

func (TaobaoopenimtribequitAPIRequest) GetTribeId added in v1.3.1

func (r TaobaoopenimtribequitAPIRequest) GetTribeId() int64

GetTribeId TribeId Getter

func (TaobaoopenimtribequitAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribequitAPIRequest) SetTribeId added in v1.3.1

func (r *TaobaoopenimtribequitAPIRequest) SetTribeId(_tribeId int64) error

SetTribeId is TribeId Setter 群id

func (*TaobaoopenimtribequitAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 用户信息

type TaobaoopenimtribequitAPIResponse added in v1.3.1

type TaobaoopenimtribequitAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribequitAPIResponseModel
}

TaobaoopenimtribequitAPIResponse OPENIM群成员退出 API返回值 taobao.openim.tribe.quit

OPENIM群成员退出

type TaobaoopenimtribequitAPIResponseModel added in v1.3.1

type TaobaoopenimtribequitAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_quit_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 群服务code
	TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"`
}

TaobaoopenimtribequitAPIResponseModel is OPENIM群成员退出 成功返回结果

type TaobaoopenimtribesendmsgAPIRequest added in v1.3.1

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

TaobaoopenimtribesendmsgAPIRequest 发送群消息 API请求 taobao.openim.tribe.sendmsg

发送群消息,目前支持发送4种类型的群消息,普通文本,图片,语音,自定义消息

func NewTaobaoopenimtribesendmsgRequest added in v1.3.1

func NewTaobaoopenimtribesendmsgRequest() *TaobaoopenimtribesendmsgAPIRequest

NewTaobaoopenimtribesendmsgRequest 初始化TaobaoopenimtribesendmsgAPIRequest对象

func (TaobaoopenimtribesendmsgAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribesendmsgAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribesendmsgAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribesendmsgAPIRequest) GetMsg added in v1.3.1

GetMsg Msg Getter

func (TaobaoopenimtribesendmsgAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribesendmsgAPIRequest) GetTribeId added in v1.3.1

GetTribeId TribeId Getter

func (TaobaoopenimtribesendmsgAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribesendmsgAPIRequest) SetMsg added in v1.3.1

SetMsg is Msg Setter 发送群消息

func (*TaobaoopenimtribesendmsgAPIRequest) SetTribeId added in v1.3.1

func (r *TaobaoopenimtribesendmsgAPIRequest) SetTribeId(_tribeId int64) error

SetTribeId is TribeId Setter 群id

func (*TaobaoopenimtribesendmsgAPIRequest) SetUser added in v1.3.1

func (r *TaobaoopenimtribesendmsgAPIRequest) SetUser(_user *User) error

SetUser is User Setter 群消息发送者,只有该群的成员才可以发送群消息

type TaobaoopenimtribesendmsgAPIResponse added in v1.3.1

type TaobaoopenimtribesendmsgAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribesendmsgAPIResponseModel
}

TaobaoopenimtribesendmsgAPIResponse 发送群消息 API返回值 taobao.openim.tribe.sendmsg

发送群消息,目前支持发送4种类型的群消息,普通文本,图片,语音,自定义消息

type TaobaoopenimtribesendmsgAPIResponseModel added in v1.3.1

type TaobaoopenimtribesendmsgAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_sendmsg_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 错误码
	TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"`
}

TaobaoopenimtribesendmsgAPIResponseModel is 发送群消息 成功返回结果

type TaobaoopenimtribesetmanagerAPIRequest added in v1.3.1

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

TaobaoopenimtribesetmanagerAPIRequest OPENIM群设置管理员 API请求 taobao.openim.tribe.setmanager

OPENIM群设置管理员

func NewTaobaoopenimtribesetmanagerRequest added in v1.3.1

func NewTaobaoopenimtribesetmanagerRequest() *TaobaoopenimtribesetmanagerAPIRequest

NewTaobaoopenimtribesetmanagerRequest 初始化TaobaoopenimtribesetmanagerAPIRequest对象

func (TaobaoopenimtribesetmanagerAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribesetmanagerAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribesetmanagerAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribesetmanagerAPIRequest) GetMember added in v1.3.1

GetMember Member Getter

func (TaobaoopenimtribesetmanagerAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribesetmanagerAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (TaobaoopenimtribesetmanagerAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribesetmanagerAPIRequest) SetMember added in v1.3.1

SetMember is Member Setter 用户信息

func (*TaobaoopenimtribesetmanagerAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 群id

func (*TaobaoopenimtribesetmanagerAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 用户信息

type TaobaoopenimtribesetmanagerAPIResponse added in v1.3.1

type TaobaoopenimtribesetmanagerAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribesetmanagerAPIResponseModel
}

TaobaoopenimtribesetmanagerAPIResponse OPENIM群设置管理员 API返回值 taobao.openim.tribe.setmanager

OPENIM群设置管理员

type TaobaoopenimtribesetmanagerAPIResponseModel added in v1.3.1

type TaobaoopenimtribesetmanagerAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_setmanager_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 群服务code
	TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"`
}

TaobaoopenimtribesetmanagerAPIResponseModel is OPENIM群设置管理员 成功返回结果

type TaobaoopenimtribesetmembernickAPIRequest added in v1.3.1

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

TaobaoopenimtribesetmembernickAPIRequest 设置群成员昵称 API请求 taobao.openim.tribe.setmembernick

设置群成员昵称,存在如下两种场景 1 群主或管理员设置群成员昵称,该操作有权限控制。只针对普通群的群主和管理员开发此功能;讨论组群主不支持此设置操作 2 群成员设置自己的昵称,该功能对群所有成员开放

func NewTaobaoopenimtribesetmembernickRequest added in v1.3.1

func NewTaobaoopenimtribesetmembernickRequest() *TaobaoopenimtribesetmembernickAPIRequest

NewTaobaoopenimtribesetmembernickRequest 初始化TaobaoopenimtribesetmembernickAPIRequest对象

func (TaobaoopenimtribesetmembernickAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribesetmembernickAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribesetmembernickAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribesetmembernickAPIRequest) GetMember added in v1.3.1

GetMember Member Getter

func (TaobaoopenimtribesetmembernickAPIRequest) GetNick added in v1.3.1

GetNick Nick Getter

func (TaobaoopenimtribesetmembernickAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribesetmembernickAPIRequest) GetTribeId added in v1.3.1

GetTribeId TribeId Getter

func (TaobaoopenimtribesetmembernickAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribesetmembernickAPIRequest) SetMember added in v1.3.1

func (r *TaobaoopenimtribesetmembernickAPIRequest) SetMember(_member *User) error

SetMember is Member Setter 被设置昵称的群成员

func (*TaobaoopenimtribesetmembernickAPIRequest) SetNick added in v1.3.1

SetNick is Nick Setter 设置的昵称

func (*TaobaoopenimtribesetmembernickAPIRequest) SetTribeId added in v1.3.1

func (r *TaobaoopenimtribesetmembernickAPIRequest) SetTribeId(_tribeId int64) error

SetTribeId is TribeId Setter 群id

func (*TaobaoopenimtribesetmembernickAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 发起设置昵称的操作者,如果是设置其他成员的昵称,只有普通组的群主和管理员有权限

type TaobaoopenimtribesetmembernickAPIResponse added in v1.3.1

type TaobaoopenimtribesetmembernickAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribesetmembernickAPIResponseModel
}

TaobaoopenimtribesetmembernickAPIResponse 设置群成员昵称 API返回值 taobao.openim.tribe.setmembernick

设置群成员昵称,存在如下两种场景 1 群主或管理员设置群成员昵称,该操作有权限控制。只针对普通群的群主和管理员开发此功能;讨论组群主不支持此设置操作 2 群成员设置自己的昵称,该功能对群所有成员开放

type TaobaoopenimtribesetmembernickAPIResponseModel added in v1.3.1

type TaobaoopenimtribesetmembernickAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_setmembernick_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"`
}

TaobaoopenimtribesetmembernickAPIResponseModel is 设置群成员昵称 成功返回结果

type TaobaoopenimtribeunsetmanagerAPIRequest added in v1.3.1

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

TaobaoopenimtribeunsetmanagerAPIRequest OPENIM群取消管理员 API请求 taobao.openim.tribe.unsetmanager

OPENIM群取消管理员

func NewTaobaoopenimtribeunsetmanagerRequest added in v1.3.1

func NewTaobaoopenimtribeunsetmanagerRequest() *TaobaoopenimtribeunsetmanagerAPIRequest

NewTaobaoopenimtribeunsetmanagerRequest 初始化TaobaoopenimtribeunsetmanagerAPIRequest对象

func (TaobaoopenimtribeunsetmanagerAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopenimtribeunsetmanagerAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopenimtribeunsetmanagerAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopenimtribeunsetmanagerAPIRequest) GetMember added in v1.3.1

GetMember Member Getter

func (TaobaoopenimtribeunsetmanagerAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoopenimtribeunsetmanagerAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (TaobaoopenimtribeunsetmanagerAPIRequest) GetUser added in v1.3.1

GetUser User Getter

func (*TaobaoopenimtribeunsetmanagerAPIRequest) SetMember added in v1.3.1

SetMember is Member Setter 用户信息

func (*TaobaoopenimtribeunsetmanagerAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 群id

func (*TaobaoopenimtribeunsetmanagerAPIRequest) SetUser added in v1.3.1

SetUser is User Setter 用户信息

type TaobaoopenimtribeunsetmanagerAPIResponse added in v1.3.1

type TaobaoopenimtribeunsetmanagerAPIResponse struct {
	model.CommonResponse
	TaobaoopenimtribeunsetmanagerAPIResponseModel
}

TaobaoopenimtribeunsetmanagerAPIResponse OPENIM群取消管理员 API返回值 taobao.openim.tribe.unsetmanager

OPENIM群取消管理员

type TaobaoopenimtribeunsetmanagerAPIResponseModel added in v1.3.1

type TaobaoopenimtribeunsetmanagerAPIResponseModel struct {
	XMLName xml.Name `xml:"openim_tribe_unsetmanager_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 群服务code
	TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"`
}

TaobaoopenimtribeunsetmanagerAPIResponseModel is OPENIM群取消管理员 成功返回结果

type TextMessage

type TextMessage struct {
	// 发送方userid
	FromId string `json:"from_id,omitempty" xml:"from_id,omitempty"`
	// 消息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 接受方userid
	ToId string `json:"to_id,omitempty" xml:"to_id,omitempty"`
	// 消息时间。UTC时间,精确到秒。必须在一个月内
	Time int64 `json:"time,omitempty" xml:"time,omitempty"`
}

TextMessage 结构体

type TribeInfo

type TribeInfo struct {
	// 群头像URL地址
	Icon string `json:"icon,omitempty" xml:"icon,omitempty"`
	// 群名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 群公告
	Notice string `json:"notice,omitempty" xml:"notice,omitempty"`
	// 群ID
	TribeId int64 `json:"tribe_id,omitempty" xml:"tribe_id,omitempty"`
	// 群验证模式
	CheckMode int64 `json:"check_mode,omitempty" xml:"check_mode,omitempty"`
	// 群类型
	TribeType int64 `json:"tribe_type,omitempty" xml:"tribe_type,omitempty"`
	// 群接收标记
	RecvFlag int64 `json:"recv_flag,omitempty" xml:"recv_flag,omitempty"`
}

TribeInfo 结构体

type TribeMessage

type TribeMessage struct {
	// 消息内容节点序列
	Content []MessageItem `json:"content,omitempty" xml:"content>message_item,omitempty"`
	// 发送方
	FromId *User `json:"from_id,omitempty" xml:"from_id,omitempty"`
	// 消息时间。UTC时间
	Time int64 `json:"time,omitempty" xml:"time,omitempty"`
	// 消息类型
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 消息UUID
	Uuid int64 `json:"uuid,omitempty" xml:"uuid,omitempty"`
}

TribeMessage 结构体

type TribeMessageResult

type TribeMessageResult struct {
	// 消息列表
	Messages []TribeMessage `json:"messages,omitempty" xml:"messages>tribe_message,omitempty"`
	// 迭代key
	NextKey string `json:"next_key,omitempty" xml:"next_key,omitempty"`
}

TribeMessageResult 结构体

type TribeMsg

type TribeMsg struct {
	// 当at_flag=1时,必须指定at的用户
	Atmembers []User `json:"atmembers,omitempty" xml:"atmembers>user,omitempty"`
	// 自定义push提醒参数,格式为json字符串,该参数为空时,采用系统默认的push;设置该参数时,json字符串必选包含至少包含指定的三个key,"d", "sound", "title"
	CustomPush string `json:"custom_push,omitempty" xml:"custom_push,omitempty"`
	// 格式为json字符串, 当消息类型为图片或语音时该参数为必选项,用于描述图片,语音的属性; 该参数json格式必须符合msg_type的要求;当消息类型为图片时,格式必须符合如下样例 : {“height”:10, "width":10, "type":"jpg"},当前支持3三种图片类型,gif, jpg,jpeg; 当消息类型为语音时,必须符合如下样例:{“playtime”:10,”type”:”amr”},语音的type只支持arm
	MediaAttrs string `json:"media_attrs,omitempty" xml:"media_attrs,omitempty"`
	// 文本消息最大长度是4K,图片最大为500K。消息内容格式根据type确定。当type为文本时,内容为文本字符串;当类型为图片或语音时,内容为图片和语音的二进制base64编码生成的字符串;当类型为自定义消息时,内容必须为就送字符串格式,该字符串必须包含header字符,即{"header":{"summary":},...}
	MsgContent string `json:"msg_content,omitempty" xml:"msg_content,omitempty"`
	// 是否是at消息, 0表示不是at消息,1表示at指定的用户,2表示at群里所有人
	AtFlag int64 `json:"at_flag,omitempty" xml:"at_flag,omitempty"`
	// 消息类型,目前支持四中类型的消息; msg_type=0 表示普通文本消息; msg_type=2 表示语音消息; msg_type = 16表示图片消息; msg_type=17表示用户自定义消息
	MsgType int64 `json:"msg_type,omitempty" xml:"msg_type,omitempty"`
	// 该消息是否需要push
	Push bool `json:"push,omitempty" xml:"push,omitempty"`
}

TribeMsg 结构体

type TribeTextMessage

type TribeTextMessage struct {
	// 发送方userid。必须为本app已导入的账号
	FromId string `json:"from_id,omitempty" xml:"from_id,omitempty"`
	// 消息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 消息时间。UTC时间,精确到秒。时间范围必须在当前时间30天内
	Time int64 `json:"time,omitempty" xml:"time,omitempty"`
}

TribeTextMessage 结构体

type TribeUser

type TribeUser struct {
	// 用户id
	Uid string `json:"uid,omitempty" xml:"uid,omitempty"`
	// 群成员角色
	Role string `json:"role,omitempty" xml:"role,omitempty"`
	// 账户appkey
	AppKey string `json:"app_key,omitempty" xml:"app_key,omitempty"`
	// 是否为淘宝账号
	TaobaoAccount bool `json:"taobao_account,omitempty" xml:"taobao_account,omitempty"`
}

TribeUser 结构体

type User

type User struct {
	// 用户所属appkey
	Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"`
	// 用户id
	Uid string `json:"uid,omitempty" xml:"uid,omitempty"`
	// 账户appkey
	AppKey string `json:"app_key,omitempty" xml:"app_key,omitempty"`
	// 是否是淘宝账号
	TaobaoAccount bool `json:"taobao_account,omitempty" xml:"taobao_account,omitempty"`
}

User 结构体

Source Files

Jump to

Keyboard shortcuts

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