alter callback fg

This commit is contained in:
wangchuxiao
2022-03-03 17:53:37 +08:00
parent 3698f1dab8
commit 2ed3fd3cba
3 changed files with 52 additions and 22 deletions
+10 -4
View File
@@ -1,10 +1,16 @@
package call_back_struct
type CommonCallbackReq struct {
CallbackCommand string `json:"callbackCommand"`
ServerMsgID string `json:"serverID"`
ClientID string `json:"clientID"`
OperationID string `json:"operationID"`
CallbackCommand string `json:"callbackCommand"`
ServerMsgID string `json:"serverID"`
ClientMsgID string `json:"clientID"`
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"`
}
type CommonCallbackResp struct {
+11 -13
View File
@@ -1,54 +1,52 @@
package call_back_struct
type msg struct {
type Msg struct {
SendID string `json:"sendID"`
ClientMsgID string `json:"clientMsgID"`
ServerMsgID string `json:"serverMsgId"`
CreateTime int64 `json:"createTime"`
Content string `json:"content"`
}
type singleMsg struct {
msg
type SingleMsg struct {
Msg
RecvID string `json:"recvID"`
}
type CallbackBeforeSendSingleMsgReq struct {
CommonCallbackReq
singleMsg
SingleMsg
}
type CallbackBeforeSendSingleMsgResp struct {
CommonCallbackResp
singleMsg
SingleMsg
}
type CallbackAfterSendSingleMsgReq struct {
CommonCallbackReq
singleMsg
SingleMsg
}
type CallbackAfterSendSingleMsgResp struct {
CommonCallbackResp
}
type groupMsg struct {
msg
type GroupMsg struct {
Msg
GroupID string `json:"groupID"`
}
type CallbackBeforeSendGroupMsgReq struct {
CommonCallbackReq
groupMsg
GroupMsg
}
type CallbackBeforeSendGroupMsgResp struct {
CommonCallbackResp
groupMsg
GroupMsg
}
type CallbackAfterSendGroupMsgReq struct {
groupMsg
GroupMsg
CommonCallbackReq
}