You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/callbackstruct/message.go

137 lines
5.3 KiB

2 years ago
package callbackstruct
3 years ago
import (
2 years ago
"OpenIM/pkg/proto/msg"
sdkws "OpenIM/pkg/proto/sdkws"
)
2 years ago
3 years ago
type CallbackBeforeSendSingleMsgReq struct {
CommonCallbackReq
3 years ago
RecvID string `json:"recvID"`
3 years ago
}
type CallbackBeforeSendSingleMsgResp struct {
2 years ago
CommonCallbackResp
3 years ago
}
type CallbackAfterSendSingleMsgReq struct {
CommonCallbackReq
3 years ago
RecvID string `json:"recvID"`
3 years ago
}
type CallbackAfterSendSingleMsgResp struct {
2 years ago
CommonCallbackResp
3 years ago
}
type CallbackBeforeSendGroupMsgReq struct {
CommonCallbackReq
3 years ago
GroupID string `json:"groupID"`
3 years ago
}
type CallbackBeforeSendGroupMsgResp struct {
2 years ago
CommonCallbackResp
3 years ago
}
type CallbackAfterSendGroupMsgReq struct {
CommonCallbackReq
3 years ago
GroupID string `json:"groupID"`
3 years ago
}
type CallbackAfterSendGroupMsgResp struct {
2 years ago
CommonCallbackResp
3 years ago
}
2 years ago
type CallbackMsgModifyCommandReq struct {
3 years ago
CommonCallbackReq
}
2 years ago
type CallbackMsgModifyCommandResp struct {
2 years ago
CommonCallbackResp
2 years ago
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"`
3 years ago
}
type CallbackBeforeSetMessageReactionExtReq struct {
2 years ago
OperationID string `json:"operationID"`
CallbackCommand `json:"callbackCommand"`
2 years ago
SourceID string `json:"sourceID"`
OpUserID string `json:"opUserID"`
SessionType int32 `json:"sessionType"`
ReactionExtensionList map[string]*sdkws.KeyValue `json:"reactionExtensionList"`
ClientMsgID string `json:"clientMsgID"`
IsReact bool `json:"isReact"`
IsExternalExtensions bool `json:"isExternalExtensions"`
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
}
type CallbackBeforeSetMessageReactionExtResp struct {
2 years ago
CommonCallbackResp
ResultReactionExtensionList []*msg.KeyValueResp `json:"resultReactionExtensionList"`
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
}
type CallbackDeleteMessageReactionExtReq struct {
2 years ago
CallbackCommand `json:"callbackCommand"`
2 years ago
OperationID string `json:"operationID"`
SourceID string `json:"sourceID"`
OpUserID string `json:"opUserID"`
SessionType int32 `json:"sessionType"`
ReactionExtensionList []*sdkws.KeyValue `json:"reactionExtensionList"`
ClientMsgID string `json:"clientMsgID"`
IsExternalExtensions bool `json:"isExternalExtensions"`
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
}
type CallbackDeleteMessageReactionExtResp struct {
2 years ago
CommonCallbackResp
ResultReactionExtensionList []*msg.KeyValueResp `json:"resultReactionExtensionList"`
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
}
2 years ago
type CallbackGetMessageListReactionExtReq struct {
2 years ago
OperationID string `json:"operationID"`
CallbackCommand `json:"callbackCommand"`
2 years ago
SourceID string `json:"sourceID"`
OpUserID string `json:"opUserID"`
SessionType int32 `json:"sessionType"`
TypeKeyList []string `json:"typeKeyList"`
//MessageKeyList []*msg.GetMessageListReactionExtensionsReq_MessageReactionKey `json:"messageKeyList"`
2 years ago
}
2 years ago
type CallbackGetMessageListReactionExtResp struct {
CommonCallbackResp
MessageResultList []*msg.SingleMessageExtensionResult `json:"messageResultList"`
}
2 years ago
type CallbackAddMessageReactionExtReq struct {
2 years ago
OperationID string `json:"operationID"`
CallbackCommand `json:"callbackCommand"`
2 years ago
SourceID string `json:"sourceID"`
OpUserID string `json:"opUserID"`
SessionType int32 `json:"sessionType"`
ReactionExtensionList map[string]*sdkws.KeyValue `json:"reactionExtensionList"`
ClientMsgID string `json:"clientMsgID"`
IsReact bool `json:"isReact"`
IsExternalExtensions bool `json:"isExternalExtensions"`
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
}
2 years ago
type CallbackAddMessageReactionExtResp struct {
CommonCallbackResp
ResultReactionExtensionList []*msg.KeyValueResp `json:"resultReactionExtensionList"`
IsReact bool `json:"isReact"`
MsgFirstModifyTime int64 `json:"msgFirstModifyTime"`
}