Documentation
¶
Index ¶
- Constants
- type CallBackAddFriendReplyBeforeReq
- type CallBackAddFriendReplyBeforeResp
- type CallbackAfterAddFriendReq
- type CallbackAfterAddFriendResp
- type CallbackAfterCreateGroupReq
- type CallbackAfterCreateGroupResp
- type CallbackAfterDeleteFriendReq
- type CallbackAfterDeleteFriendResp
- type CallbackAfterImportFriendsReq
- type CallbackAfterImportFriendsResp
- type CallbackAfterJoinGroupReq
- type CallbackAfterJoinGroupResp
- type CallbackAfterRemoveBlackReq
- type CallbackAfterRemoveBlackResp
- type CallbackAfterRevokeMsgReq
- type CallbackAfterRevokeMsgResp
- type CallbackAfterSendGroupMsgReq
- type CallbackAfterSendGroupMsgResp
- type CallbackAfterSendSingleMsgReq
- type CallbackAfterSendSingleMsgResp
- type CallbackAfterSetFriendRemarkReq
- type CallbackAfterSetFriendRemarkResp
- type CallbackAfterSetGroupInfoReq
- type CallbackAfterSetGroupInfoResp
- type CallbackAfterSetGroupMemberInfoReq
- type CallbackAfterSetGroupMemberInfoResp
- type CallbackAfterUpdateUserInfoExReq
- type CallbackAfterUpdateUserInfoExResp
- type CallbackAfterUpdateUserInfoReq
- type CallbackAfterUpdateUserInfoResp
- type CallbackAfterUserRegisterReq
- type CallbackAfterUserRegisterResp
- type CallbackBeforeAddBlackReq
- type CallbackBeforeAddBlackResp
- type CallbackBeforeAddFriendAgreeReq
- type CallbackBeforeAddFriendAgreeResp
- type CallbackBeforeAddFriendReq
- type CallbackBeforeAddFriendResp
- type CallbackBeforeCreateGroupReq
- type CallbackBeforeCreateGroupResp
- type CallbackBeforeImportFriendsReq
- type CallbackBeforeImportFriendsResp
- type CallbackBeforeInviteUserToGroupReq
- type CallbackBeforeInviteUserToGroupResp
- type CallbackBeforeMemberJoinGroupReq
- type CallbackBeforeMemberJoinGroupResp
- type CallbackBeforePushReq
- type CallbackBeforePushResp
- type CallbackBeforeSendGroupMsgReq
- type CallbackBeforeSendGroupMsgResp
- type CallbackBeforeSendSingleMsgReq
- type CallbackBeforeSendSingleMsgResp
- type CallbackBeforeSetFriendRemarkReq
- type CallbackBeforeSetFriendRemarkResp
- type CallbackBeforeSetGroupInfoReq
- type CallbackBeforeSetGroupInfoResp
- type CallbackBeforeSetGroupMemberInfoReq
- type CallbackBeforeSetGroupMemberInfoResp
- type CallbackBeforeSuperGroupOnlinePushReq
- type CallbackBeforeSuperGroupOnlinePushResp
- type CallbackBeforeUpdateUserInfoExReq
- type CallbackBeforeUpdateUserInfoExResp
- type CallbackBeforeUpdateUserInfoReq
- type CallbackBeforeUpdateUserInfoResp
- type CallbackBeforeUserRegisterReq
- type CallbackBeforeUserRegisterResp
- type CallbackCommand
- type CallbackDisMissGroupReq
- type CallbackDisMissGroupResp
- type CallbackGroupMsgReadReq
- type CallbackGroupMsgReadResp
- type CallbackJoinGroupReq
- type CallbackJoinGroupResp
- type CallbackKillGroupMemberReq
- type CallbackKillGroupMemberResp
- type CallbackMsgModifyCommandReq
- type CallbackMsgModifyCommandResp
- type CallbackQuitGroupReq
- type CallbackQuitGroupResp
- type CallbackReq
- type CallbackResp
- type CallbackSingleMsgReadReq
- type CallbackSingleMsgReadResp
- type CallbackTransferGroupOwnerReq
- type CallbackTransferGroupOwnerResp
- type CallbackUserKickOffReq
- type CallbackUserKickOffResp
- type CallbackUserOfflineReq
- type CallbackUserOfflineResp
- type CallbackUserOnlineReq
- type CallbackUserOnlineResp
- type CommonCallbackReq
- type CommonCallbackResp
- type UserStatusBaseCallback
- type UserStatusBatchCallbackReq
- type UserStatusCallbackReq
Constants ¶
View Source
const ( CallbackQuitGroupCommand = "callbackQuitGroupCommand" CallbackKillGroupCommand = "callbackKillGroupCommand" CallbackDisMissGroupCommand = "callbackDisMissGroupCommand" CallbackBeforeJoinGroupCommand = "callbackBeforeJoinGroupCommand" CallbackGroupMsgReadCommand = "callbackGroupMsgReadCommand" CallbackMsgModifyCommand = "callbackMsgModifyCommand" CallbackAfterUpdateUserInfoCommand = "callbackAfterUpdateUserInfoCommand" CallbackAfterUpdateUserInfoExCommand = "callbackAfterUpdateUserInfoExCommand" CallbackBeforeUpdateUserInfoExCommand = "callbackBeforeUpdateUserInfoExCommand" CallbackBeforeUserRegisterCommand = "callbackBeforeUserRegisterCommand" CallbackAfterUserRegisterCommand = "callbackAfterUserRegisterCommand" CallbackAfterTransferGroupOwner = "callbackAfterTransferGroupOwner" CallbackBeforeSetFriendRemark = "callbackBeforeSetFriendRemark" CallbackAfterSetFriendRemark = "callbackAfterSetFriendRemark" CallbackSingleMsgRead = "callbackSingleMsgRead" CallbackBeforeSendSingleMsgCommand = "callbackBeforeSendSingleMsgCommand" CallbackAfterSendSingleMsgCommand = "callbackAfterSendSingleMsgCommand" CallbackBeforeSendGroupMsgCommand = "callbackBeforeSendGroupMsgCommand" CallbackAfterSendGroupMsgCommand = "callbackAfterSendGroupMsgCommand" CallbackUserOnlineCommand = "callbackUserOnlineCommand" CallbackUserOfflineCommand = "callbackUserOfflineCommand" CallbackUserKickOffCommand = "callbackUserKickOffCommand" CallbackOfflinePushCommand = "callbackOfflinePushCommand" CallbackOnlinePushCommand = "callbackOnlinePushCommand" CallbackSuperGroupOnlinePushCommand = "callbackSuperGroupOnlinePushCommand" CallbackBeforeAddFriendCommand = "callbackBeforeAddFriendCommand" CallbackBeforeUpdateUserInfoCommand = "callbackBeforeUpdateUserInfoCommand" CallbackBeforeCreateGroupCommand = "callbackBeforeCreateGroupCommand" CallbackAfterCreateGroupCommand = "callbackAfterCreateGroupCommand" CallbackBeforeMemberJoinGroupCommand = "callbackBeforeMemberJoinGroupCommand" CallbackBeforeSetGroupMemberInfoCommand = "callbackBeforeSetGroupMemberInfoCommand" CallbackAfterSetGroupMemberInfoCommand = "callbackAfterSetGroupMemberInfoCommand" )
View Source
const CallbackAfterAddFriendCommand = "callbackAfterAddFriendCommand"
View Source
const CallbackAfterDeleteFriendCommand = "callbackAfterDeleteFriendCommand"
View Source
const CallbackAfterImportFriendsCommand = "callbackAfterImportFriendsCommand"
View Source
const CallbackAfterJoinGroupCommand = "callbackAfterJoinGroupCommand"
View Source
const CallbackAfterRemoveBlackCommand = "callbackAfterRemoveBlackCommand"
View Source
const CallbackAfterRevokeMsgCommand = "callbackBeforeAfterMsgCommand"
View Source
const CallbackAfterSetGroupInfoCommand = "callbackAfterSetGroupInfoCommand"
View Source
const CallbackBeforeAddBlackCommand = "callbackBeforeAddBlackCommand"
View Source
const CallbackBeforeAddFriendAgreeCommand = "callbackBeforeAddFriendAgreeCommand"
View Source
const CallbackBeforeImportFriendsCommand = "callbackBeforeImportFriendsCommand"
View Source
const CallbackBeforeInviteJoinGroupCommand = "callbackBeforeInviteJoinGroupCommand"
View Source
const CallbackBeforeSetGroupInfoCommand = "callbackBeforeSetGroupInfoCommand"
View Source
const (
Next = 1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallBackAddFriendReplyBeforeReq ¶ added in v3.4.2
type CallBackAddFriendReplyBeforeReq struct {
CallbackCommand `json:"callbackCommand"`
FromUserID string `json:"fromUserID" `
ToUserID string `json:"toUserID"`
}
type CallBackAddFriendReplyBeforeResp ¶ added in v3.4.2
type CallBackAddFriendReplyBeforeResp struct {
CommonCallbackResp
}
type CallbackAfterAddFriendReq ¶ added in v3.4.2
type CallbackAfterAddFriendReq struct {
CallbackCommand `json:"callbackCommand"`
FromUserID string `json:"fromUserID" `
ToUserID string `json:"toUserID"`
ReqMsg string `json:"reqMsg"`
}
type CallbackAfterAddFriendResp ¶ added in v3.4.2
type CallbackAfterAddFriendResp struct {
CommonCallbackResp
}
type CallbackAfterCreateGroupReq ¶ added in v3.4.2
type CallbackAfterCreateGroupReq struct {
CallbackCommand `json:"callbackCommand"`
*common.GroupInfo
InitMemberList []*apistruct.GroupAddMemberInfo `json:"initMemberList"`
}
type CallbackAfterCreateGroupResp ¶ added in v3.4.2
type CallbackAfterCreateGroupResp struct {
CommonCallbackResp
}
type CallbackAfterDeleteFriendReq ¶ added in v3.4.2
type CallbackAfterDeleteFriendReq struct {
CallbackCommand `json:"callbackCommand"`
OwnerUserID string `json:"ownerUserID" `
FriendUserID string `json:"friendUserID"`
}
type CallbackAfterDeleteFriendResp ¶ added in v3.4.2
type CallbackAfterDeleteFriendResp struct {
CommonCallbackResp
}
type CallbackAfterImportFriendsReq ¶ added in v3.4.2
type CallbackAfterImportFriendsReq struct {
CallbackCommand `json:"callbackCommand"`
OwnerUserID string `json:"ownerUserID" `
FriendUserIDs []string `json:"friendUserIDs"`
}
type CallbackAfterImportFriendsResp ¶ added in v3.4.2
type CallbackAfterImportFriendsResp struct {
CommonCallbackResp
}
type CallbackAfterJoinGroupReq ¶ added in v3.4.2
type CallbackAfterJoinGroupResp ¶ added in v3.4.2
type CallbackAfterJoinGroupResp struct {
CommonCallbackResp
}
type CallbackAfterRemoveBlackReq ¶ added in v3.4.2
type CallbackAfterRemoveBlackReq struct {
CallbackCommand `json:"callbackCommand"`
OwnerUserID string `json:"ownerUserID"`
BlackUserID string `json:"blackUserID"`
}
type CallbackAfterRemoveBlackResp ¶ added in v3.4.2
type CallbackAfterRemoveBlackResp struct {
CommonCallbackResp
}
type CallbackAfterRevokeMsgReq ¶ added in v3.4.2
type CallbackAfterRevokeMsgReq struct {
CallbackCommand `json:"callbackCommand"`
ConversationID string `json:"conversationID"`
Seq int64 `json:"seq"`
UserID string `json:"userID"`
}
type CallbackAfterRevokeMsgResp ¶ added in v3.4.2
type CallbackAfterRevokeMsgResp struct {
CommonCallbackResp
}
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 CallbackAfterSetFriendRemarkReq ¶ added in v3.4.2
type CallbackAfterSetFriendRemarkReq struct {
CallbackCommand `json:"callbackCommand"`
OwnerUserID string `json:"ownerUserID"`
FriendUserID string `json:"friendUserID"`
Remark string `json:"remark"`
}
type CallbackAfterSetFriendRemarkResp ¶ added in v3.4.2
type CallbackAfterSetFriendRemarkResp struct {
CommonCallbackResp
}
type CallbackAfterSetGroupInfoReq ¶ added in v3.4.2
type CallbackAfterSetGroupInfoReq struct {
CallbackCommand `json:"callbackCommand"`
OperationID string `json:"operationID"`
GroupID string `json:"groupID"`
GroupName string `json:"groupName"`
Notification string `json:"notification"`
Introduction string `json:"introduction"`
FaceURL string `json:"faceURL"`
Ex *string `json:"ex"`
NeedVerification *int32 `json:"needVerification"`
LookMemberInfo *int32 `json:"lookMemberInfo"`
ApplyMemberFriend *int32 `json:"applyMemberFriend"`
}
type CallbackAfterSetGroupInfoResp ¶ added in v3.4.2
type CallbackAfterSetGroupInfoResp struct {
CommonCallbackResp
}
type CallbackAfterSetGroupMemberInfoReq ¶ added in v3.4.2
type CallbackAfterSetGroupMemberInfoResp ¶ added in v3.4.2
type CallbackAfterSetGroupMemberInfoResp struct {
CommonCallbackResp
}
type CallbackAfterUpdateUserInfoExReq ¶ added in v3.5.0
type CallbackAfterUpdateUserInfoExReq struct {
CallbackCommand `json:"callbackCommand"`
UserID string `json:"userID"`
Nickname *wrapperspb.StringValue `json:"nickName"`
FaceURL *wrapperspb.StringValue `json:"faceURL"`
Ex *wrapperspb.StringValue `json:"ex"`
}
type CallbackAfterUpdateUserInfoExResp ¶ added in v3.5.0
type CallbackAfterUpdateUserInfoExResp struct {
CommonCallbackResp
}
type CallbackAfterUpdateUserInfoReq ¶ added in v3.4.2
type CallbackAfterUpdateUserInfoReq struct {
CallbackCommand `json:"callbackCommand"`
UserID string `json:"userID"`
Nickname string `json:"nickName"`
FaceURL string `json:"faceURL"`
Ex string `json:"ex"`
}
type CallbackAfterUpdateUserInfoResp ¶ added in v3.4.2
type CallbackAfterUpdateUserInfoResp struct {
CommonCallbackResp
}
type CallbackAfterUserRegisterReq ¶ added in v3.4.2
type CallbackAfterUserRegisterReq struct {
CallbackCommand `json:"callbackCommand"`
Secret string `json:"secret"`
Users []*sdkws.UserInfo `json:"users"`
}
type CallbackAfterUserRegisterResp ¶ added in v3.4.2
type CallbackAfterUserRegisterResp struct {
CommonCallbackResp
}
type CallbackBeforeAddBlackReq ¶ added in v3.4.2
type CallbackBeforeAddBlackReq struct {
CallbackCommand `json:"callbackCommand"`
OwnerUserID string `json:"ownerUserID" `
BlackUserID string `json:"blackUserID"`
}
type CallbackBeforeAddBlackResp ¶ added in v3.4.2
type CallbackBeforeAddBlackResp struct {
CommonCallbackResp
}
type CallbackBeforeAddFriendAgreeReq ¶ added in v3.4.2
type CallbackBeforeAddFriendAgreeReq struct {
CallbackCommand `json:"callbackCommand"`
FromUserID string `json:"fromUserID" `
ToUserID string `json:"blackUserID"`
HandleResult int32 `json:"HandleResult"`
HandleMsg string `json:"HandleMsg"`
}
type CallbackBeforeAddFriendAgreeResp ¶ added in v3.4.2
type CallbackBeforeAddFriendAgreeResp struct {
CommonCallbackResp
}
type CallbackBeforeAddFriendReq ¶
type CallbackBeforeAddFriendReq struct {
CallbackCommand `json:"callbackCommand"`
FromUserID string `json:"fromUserID" `
ToUserID string `json:"toUserID"`
ReqMsg string `json:"reqMsg"`
Ex string `json:"ex"`
}
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 CallbackBeforeImportFriendsReq ¶ added in v3.4.2
type CallbackBeforeImportFriendsReq struct {
CallbackCommand `json:"callbackCommand"`
OwnerUserID string `json:"ownerUserID" `
FriendUserIDs []string `json:"friendUserIDs"`
}
type CallbackBeforeImportFriendsResp ¶ added in v3.4.2
type CallbackBeforeImportFriendsResp struct {
CommonCallbackResp
FriendUserIDs []string `json:"friendUserIDs"`
}
type CallbackBeforeInviteUserToGroupReq ¶ added in v3.4.2
type CallbackBeforeInviteUserToGroupReq struct {
CallbackCommand `json:"callbackCommand"`
OperationID string `json:"operationID"`
GroupID string `json:"groupID"`
Reason string `json:"reason"`
InvitedUserIDs []string `json:"invitedUserIDs"`
}
type CallbackBeforeInviteUserToGroupResp ¶ added in v3.4.2
type CallbackBeforeInviteUserToGroupResp struct {
CommonCallbackResp
RefusedMembersAccount []string `json:"refusedMembersAccount,omitempty"` // Optional field to list members whose invitation is refused.
}
type CallbackBeforeMemberJoinGroupReq ¶
type CallbackBeforeMemberJoinGroupReq struct {
CallbackCommand `json:"callbackCommand"`
GroupID string `json:"groupID"`
UserID string `json:"userID"`
Ex string `json:"ex"`
GroupEx string `json:"groupEx"`
}
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 CallbackBeforeSetFriendRemarkReq ¶ added in v3.4.2
type CallbackBeforeSetFriendRemarkReq struct {
CallbackCommand `json:"callbackCommand"`
OwnerUserID string `json:"ownerUserID"`
FriendUserID string `json:"friendUserID"`
Remark string `json:"remark"`
}
type CallbackBeforeSetFriendRemarkResp ¶ added in v3.4.2
type CallbackBeforeSetFriendRemarkResp struct {
CommonCallbackResp
Remark string `json:"remark"`
}
type CallbackBeforeSetGroupInfoReq ¶ added in v3.4.2
type CallbackBeforeSetGroupInfoReq struct {
CallbackCommand `json:"callbackCommand"`
OperationID string `json:"operationID"`
GroupID string `json:"groupID"`
GroupName string `json:"groupName"`
Notification string `json:"notification"`
Introduction string `json:"introduction"`
FaceURL string `json:"faceURL"`
Ex string `json:"ex"`
NeedVerification int32 `json:"needVerification"`
LookMemberInfo int32 `json:"lookMemberInfo"`
ApplyMemberFriend int32 `json:"applyMemberFriend"`
}
type CallbackBeforeSetGroupInfoResp ¶ added in v3.4.2
type CallbackBeforeSetGroupInfoResp struct {
CommonCallbackResp
GroupID string ` json:"groupID"`
GroupName string `json:"groupName"`
Notification string `json:"notification"`
Introduction string `json:"introduction"`
FaceURL string `json:"faceURL"`
Ex *string `json:"ex"`
NeedVerification *int32 `json:"needVerification"`
LookMemberInfo *int32 `json:"lookMemberInfo"`
ApplyMemberFriend *int32 `json:"applyMemberFriend"`
}
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 CallbackBeforeUpdateUserInfoExReq ¶ added in v3.5.0
type CallbackBeforeUpdateUserInfoExReq struct {
CallbackCommand `json:"callbackCommand"`
UserID string `json:"userID"`
Nickname *wrapperspb.StringValue `json:"nickName"`
FaceURL *wrapperspb.StringValue `json:"faceURL"`
Ex *wrapperspb.StringValue `json:"ex"`
}
type CallbackBeforeUpdateUserInfoExResp ¶ added in v3.5.0
type CallbackBeforeUpdateUserInfoExResp struct {
CommonCallbackResp
Nickname *wrapperspb.StringValue `json:"nickName"`
FaceURL *wrapperspb.StringValue `json:"faceURL"`
Ex *wrapperspb.StringValue `json:"ex"`
}
type CallbackBeforeUpdateUserInfoReq ¶ added in v3.4.0
type CallbackBeforeUpdateUserInfoReq struct {
CallbackCommand `json:"callbackCommand"`
UserID string `json:"userID"`
Nickname *string `json:"nickName"`
FaceURL *string `json:"faceURL"`
Ex *string `json:"ex"`
}
type CallbackBeforeUpdateUserInfoResp ¶ added in v3.4.0
type CallbackBeforeUpdateUserInfoResp struct {
CommonCallbackResp
Nickname *string `json:"nickName"`
FaceURL *string `json:"faceURL"`
Ex *string `json:"ex"`
}
type CallbackBeforeUserRegisterReq ¶ added in v3.4.2
type CallbackBeforeUserRegisterReq struct {
CallbackCommand `json:"callbackCommand"`
Secret string `json:"secret"`
Users []*sdkws.UserInfo `json:"users"`
}
type CallbackBeforeUserRegisterResp ¶ added in v3.4.2
type CallbackBeforeUserRegisterResp struct {
CommonCallbackResp
Users []*sdkws.UserInfo `json:"users"`
}
type CallbackCommand ¶
type CallbackCommand string
func (CallbackCommand) GetCallbackCommand ¶
func (c CallbackCommand) GetCallbackCommand() string
type CallbackDisMissGroupReq ¶ added in v3.4.2
type CallbackDisMissGroupReq struct {
CallbackCommand `json:"callbackCommand"`
GroupID string `json:"groupID"`
OwnerID string `json:"ownerID"`
GroupType string `json:"groupType"`
MembersID []string `json:"membersID"`
}
type CallbackDisMissGroupResp ¶ added in v3.4.2
type CallbackDisMissGroupResp struct {
CommonCallbackResp
}
type CallbackGroupMsgReadReq ¶ added in v3.4.2
type CallbackGroupMsgReadReq struct {
CallbackCommand `json:"callbackCommand"`
SendID string `json:"sendID"`
ReceiveID string `json:"receiveID"`
UnreadMsgNum int64 `json:"unreadMsgNum"`
ContentType int64 `json:"contentType"`
}
type CallbackGroupMsgReadResp ¶ added in v3.4.2
type CallbackGroupMsgReadResp struct {
CommonCallbackResp
}
type CallbackJoinGroupReq ¶ added in v3.4.2
type CallbackJoinGroupResp ¶ added in v3.4.2
type CallbackJoinGroupResp struct {
CommonCallbackResp
}
type CallbackKillGroupMemberReq ¶ added in v3.4.2
type CallbackKillGroupMemberReq struct {
CallbackCommand `json:"callbackCommand"`
GroupID string `json:"groupID"`
KickedUserIDs []string `json:"kickedUserIDs"`
Reason string `json:"reason"`
}
type CallbackKillGroupMemberResp ¶ added in v3.4.2
type CallbackKillGroupMemberResp struct {
CommonCallbackResp
}
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 CallbackQuitGroupReq ¶ added in v3.4.2
type CallbackQuitGroupReq struct {
CallbackCommand `json:"callbackCommand"`
GroupID string `json:"groupID"`
UserID string `json:"userID"`
}
type CallbackQuitGroupResp ¶ added in v3.4.2
type CallbackQuitGroupResp struct {
CommonCallbackResp
}
type CallbackReq ¶
type CallbackReq interface {
GetCallbackCommand() string
}
type CallbackResp ¶
type CallbackResp interface {
Parse() (err error)
}
type CallbackSingleMsgReadReq ¶ added in v3.4.2
type CallbackSingleMsgReadReq struct {
CallbackCommand `json:"callbackCommand"`
ConversationID string `json:"conversationID"`
UserID string `json:"userID"`
Seqs []int64 `json:"Seqs"`
ContentType int32 `json:"contentType"`
}
type CallbackSingleMsgReadResp ¶ added in v3.4.2
type CallbackSingleMsgReadResp struct {
CommonCallbackResp
}
type CallbackTransferGroupOwnerReq ¶ added in v3.4.2
type CallbackTransferGroupOwnerReq struct {
CallbackCommand `json:"callbackCommand"`
GroupID string `json:"groupID"`
OldOwnerUserID string `json:"oldOwnerUserID"`
NewOwnerUserID string `json:"newOwnerUserID"`
}
type CallbackTransferGroupOwnerResp ¶ added in v3.4.2
type CallbackTransferGroupOwnerResp struct {
CommonCallbackResp
}
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 int32 `json:"actionCode"`
ErrCode int32 `json:"errCode"`
ErrMsg string `json:"errMsg"`
ErrDlt string `json:"errDlt"`
NextCode int32 `json:"nextCode"`
}
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.