Documentation
¶
Index ¶
- type CallbackAfterSendGroupMsgReq
- type CallbackAfterSendGroupMsgResp
- type CallbackAfterSendSingleMsgReq
- type CallbackAfterSendSingleMsgResp
- type CallbackBeforeAddFriendReq
- type CallbackBeforeAddFriendResp
- type CallbackBeforeCreateGroupReq
- type CallbackBeforeCreateGroupResp
- type CallbackBeforeMemberJoinGroupReq
- type CallbackBeforeMemberJoinGroupResp
- type CallbackBeforePushReq
- type CallbackBeforePushResp
- type CallbackBeforeSendGroupMsgReq
- type CallbackBeforeSendGroupMsgResp
- type CallbackBeforeSendSingleMsgReq
- type CallbackBeforeSendSingleMsgResp
- type CallbackBeforeSetGroupMemberInfoReq
- type CallbackBeforeSetGroupMemberInfoResp
- type CallbackBeforeSuperGroupOnlinePushReq
- type CallbackBeforeSuperGroupOnlinePushResp
- type CallbackCommand
- type CallbackMsgModifyCommandReq
- type CallbackMsgModifyCommandResp
- type CallbackReq
- type CallbackResp
- type CallbackUserKickOffReq
- type CallbackUserKickOffResp
- type CallbackUserOfflineReq
- type CallbackUserOfflineResp
- type CallbackUserOnlineReq
- type CallbackUserOnlineResp
- type CommonCallbackReq
- type CommonCallbackResp
- type UserStatusBaseCallback
- type UserStatusBatchCallbackReq
- type UserStatusCallbackReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackAfterSendGroupMsgReq ¶
type CallbackAfterSendGroupMsgReq struct {
CommonCallbackReq
GroupID string `json:"groupID"`
}
type CallbackAfterSendGroupMsgResp ¶
type CallbackAfterSendGroupMsgResp struct {
CommonCallbackResp
}
type CallbackAfterSendSingleMsgReq ¶
type CallbackAfterSendSingleMsgReq struct {
CommonCallbackReq
RecvID string `json:"recvID"`
}
type CallbackAfterSendSingleMsgResp ¶
type CallbackAfterSendSingleMsgResp struct {
CommonCallbackResp
}
type CallbackBeforeAddFriendReq ¶
type CallbackBeforeAddFriendReq struct {
CallbackCommand `json:"callbackCommand"`
FromUserID string `json:"fromUserID" `
ToUserID string `json:"toUserID"`
ReqMsg string `json:"reqMsg"`
OperationID string `json:"operationID"`
}
type CallbackBeforeAddFriendResp ¶
type CallbackBeforeAddFriendResp struct {
CommonCallbackResp
}
type CallbackBeforeCreateGroupReq ¶
type CallbackBeforeCreateGroupReq struct {
OperationID string `json:"operationID"`
CallbackCommand `json:"callbackCommand"`
*common.GroupInfo
InitMemberList []*apistruct.GroupAddMemberInfo `json:"initMemberList"`
}
type CallbackBeforeCreateGroupResp ¶
type CallbackBeforeCreateGroupResp struct {
CommonCallbackResp
GroupID *string `json:"groupID"`
GroupName *string `json:"groupName"`
Notification *string `json:"notification"`
Introduction *string `json:"introduction"`
FaceURL *string `json:"faceURL"`
OwnerUserID *string `json:"ownerUserID"`
Ex *string `json:"ex"`
Status *int32 `json:"status"`
CreatorUserID *string `json:"creatorUserID"`
GroupType *int32 `json:"groupType"`
NeedVerification *int32 `json:"needVerification"`
LookMemberInfo *int32 `json:"lookMemberInfo"`
ApplyMemberFriend *int32 `json:"applyMemberFriend"`
}
type CallbackBeforePushReq ¶
type CallbackBeforePushReq struct {
UserStatusBatchCallbackReq
*common.OfflinePushInfo
ClientMsgID string `json:"clientMsgID"`
SendID string `json:"sendID"`
GroupID string `json:"groupID"`
ContentType int32 `json:"contentType"`
SessionType int32 `json:"sessionType"`
AtUserIDs []string `json:"atUserIDList"`
Content string `json:"content"`
}
type CallbackBeforePushResp ¶
type CallbackBeforePushResp struct {
CommonCallbackResp
UserIDs []string `json:"userIDList"`
OfflinePushInfo *common.OfflinePushInfo `json:"offlinePushInfo"`
}
type CallbackBeforeSendGroupMsgReq ¶
type CallbackBeforeSendGroupMsgReq struct {
CommonCallbackReq
GroupID string `json:"groupID"`
}
type CallbackBeforeSendGroupMsgResp ¶
type CallbackBeforeSendGroupMsgResp struct {
CommonCallbackResp
}
type CallbackBeforeSendSingleMsgReq ¶
type CallbackBeforeSendSingleMsgReq struct {
CommonCallbackReq
RecvID string `json:"recvID"`
}
type CallbackBeforeSendSingleMsgResp ¶
type CallbackBeforeSendSingleMsgResp struct {
CommonCallbackResp
}
type CallbackBeforeSetGroupMemberInfoReq ¶
type CallbackBeforeSetGroupMemberInfoReq struct {
CallbackCommand `json:"callbackCommand"`
OperationID string `json:"operationID"`
GroupID string `json:"groupID"`
UserID string `json:"userID"`
Nickname *string `json:"nickName"`
FaceURL *string `json:"faceURL"`
RoleLevel *int32 `json:"roleLevel"`
Ex *string `json:"ex"`
}
type CallbackBeforeSetGroupMemberInfoResp ¶
type CallbackBeforeSetGroupMemberInfoResp struct {
CommonCallbackResp
Ex *string `json:"ex"`
Nickname *string `json:"nickName"`
FaceURL *string `json:"faceURL"`
RoleLevel *int32 `json:"roleLevel"`
}
type CallbackBeforeSuperGroupOnlinePushReq ¶
type CallbackBeforeSuperGroupOnlinePushReq struct {
UserStatusBaseCallback
ClientMsgID string `json:"clientMsgID"`
SendID string `json:"sendID"`
GroupID string `json:"groupID"`
ContentType int32 `json:"contentType"`
SessionType int32 `json:"sessionType"`
AtUserIDs []string `json:"atUserIDList"`
Content string `json:"content"`
Seq int64 `json:"seq"`
}
type CallbackBeforeSuperGroupOnlinePushResp ¶
type CallbackBeforeSuperGroupOnlinePushResp struct {
CommonCallbackResp
UserIDs []string `json:"userIDList"`
OfflinePushInfo *common.OfflinePushInfo `json:"offlinePushInfo"`
}
type CallbackCommand ¶
type CallbackCommand string
func (CallbackCommand) GetCallbackCommand ¶
func (c CallbackCommand) GetCallbackCommand() string
type CallbackMsgModifyCommandReq ¶
type CallbackMsgModifyCommandReq struct {
CommonCallbackReq
}
type CallbackMsgModifyCommandResp ¶
type CallbackMsgModifyCommandResp struct {
CommonCallbackResp
Content *string `json:"content"`
RecvID *string `json:"recvID"`
GroupID *string `json:"groupID"`
ClientMsgID *string `json:"clientMsgID"`
ServerMsgID *string `json:"serverMsgID"`
SenderPlatformID *int32 `json:"senderPlatformID"`
SenderNickname *string `json:"senderNickname"`
SenderFaceURL *string `json:"senderFaceURL"`
SessionType *int32 `json:"sessionType"`
MsgFrom *int32 `json:"msgFrom"`
ContentType *int32 `json:"contentType"`
Status *int32 `json:"status"`
Options *map[string]bool `json:"options"`
OfflinePushInfo *sdkws.OfflinePushInfo `json:"offlinePushInfo"`
AtUserIDList *[]string `json:"atUserIDList"`
MsgDataList *[]byte `json:"msgDataList"`
AttachedInfo *string `json:"attachedInfo"`
Ex *string `json:"ex"`
}
type CallbackReq ¶
type CallbackReq interface {
GetCallbackCommand() string
}
type CallbackResp ¶
type CallbackResp interface {
Parse() (err error)
}
type CallbackUserKickOffReq ¶
type CallbackUserKickOffReq struct {
UserStatusCallbackReq
Seq int64 `json:"seq"`
}
type CallbackUserKickOffResp ¶
type CallbackUserKickOffResp struct {
CommonCallbackResp
}
type CallbackUserOfflineReq ¶
type CallbackUserOfflineReq struct {
UserStatusCallbackReq
Seq int64 `json:"seq"`
ConnID string `json:"connID"`
}
type CallbackUserOfflineResp ¶
type CallbackUserOfflineResp struct {
CommonCallbackResp
}
type CallbackUserOnlineReq ¶
type CallbackUserOnlineReq struct {
UserStatusCallbackReq
// Token string `json:"token"`
Seq int64 `json:"seq"`
IsAppBackground bool `json:"isAppBackground"`
ConnID string `json:"connID"`
}
type CallbackUserOnlineResp ¶
type CallbackUserOnlineResp struct {
CommonCallbackResp
}
type CommonCallbackReq ¶
type CommonCallbackReq struct {
SendID string `json:"sendID"`
CallbackCommand string `json:"callbackCommand"`
ServerMsgID string `json:"serverMsgID"`
ClientMsgID string `json:"clientMsgID"`
OperationID string `json:"operationID"`
SenderPlatformID int32 `json:"senderPlatformID"`
SenderNickname string `json:"senderNickname"`
SessionType int32 `json:"sessionType"`
MsgFrom int32 `json:"msgFrom"`
ContentType int32 `json:"contentType"`
Status int32 `json:"status"`
CreateTime int64 `json:"createTime"`
Content string `json:"content"`
Seq uint32 `json:"seq"`
AtUserIDList []string `json:"atUserList"`
SenderFaceURL string `json:"faceURL"`
Ex string `json:"ex"`
}
func (*CommonCallbackReq) GetCallbackCommand ¶
func (c *CommonCallbackReq) GetCallbackCommand() string
type CommonCallbackResp ¶
type CommonCallbackResp struct {
ActionCode int `json:"actionCode"`
ErrCode int32 `json:"errCode"`
ErrMsg string `json:"errMsg"`
ErrDlt string `json:"errDlt"`
}
func (CommonCallbackResp) Parse ¶
func (c CommonCallbackResp) Parse() error
type UserStatusBaseCallback ¶
type UserStatusBaseCallback struct {
CallbackCommand string `json:"callbackCommand"`
OperationID string `json:"operationID"`
PlatformID int `json:"platformID"`
Platform string `json:"platform"`
}
func (UserStatusBaseCallback) GetCallbackCommand ¶
func (c UserStatusBaseCallback) GetCallbackCommand() string
type UserStatusBatchCallbackReq ¶
type UserStatusBatchCallbackReq struct {
UserStatusBaseCallback
UserIDList []string `json:"userIDList"`
}
type UserStatusCallbackReq ¶
type UserStatusCallbackReq struct {
UserStatusBaseCallback
UserID string `json:"userID"`
}
Click to show internal directories.
Click to hide internal directories.