Files
open-im-server/pkg/call_back_struct/message.go
T

68 lines
1.1 KiB
Go
Raw Normal View History

2022-02-24 14:47:21 +08:00
package call_back_struct
2022-02-28 17:57:03 +08:00
2022-03-02 19:07:17 +08:00
type msg struct {
2022-02-28 17:57:03 +08:00
SendID string `json:"sendID"`
ClientMsgID string `json:"clientMsgID"`
ServerMsgID string `json:"serverMsgId"`
CreateTime int64 `json:"createTime"`
2022-03-03 14:18:28 +08:00
Content string `json:"content"`
2022-03-02 19:07:17 +08:00
}
type singleMsg struct {
msg
RecvID string `json:"recvID"`
2022-02-28 17:57:03 +08:00
}
type CallbackBeforeSendSingleMsgReq struct {
CommonCallbackReq
singleMsg
}
type CallbackBeforeSendSingleMsgResp struct {
CommonCallbackResp
2022-03-02 19:07:17 +08:00
singleMsg
2022-02-28 17:57:03 +08:00
}
type CallbackAfterSendSingleMsgReq struct {
CommonCallbackReq
singleMsg
}
type CallbackAfterSendSingleMsgResp struct {
CommonCallbackResp
}
type groupMsg struct {
2022-03-02 19:07:17 +08:00
msg
GroupID string `json:"groupID"`
2022-02-28 17:57:03 +08:00
}
type CallbackBeforeSendGroupMsgReq struct {
CommonCallbackReq
2022-03-02 19:07:17 +08:00
groupMsg
2022-02-28 17:57:03 +08:00
}
type CallbackBeforeSendGroupMsgResp struct {
CommonCallbackResp
2022-03-02 19:07:17 +08:00
groupMsg
2022-02-28 17:57:03 +08:00
}
type CallbackAfterSendGroupMsgReq struct {
2022-03-02 19:07:17 +08:00
groupMsg
2022-02-28 17:57:03 +08:00
CommonCallbackReq
}
type CallbackAfterSendGroupMsgResp struct {
CommonCallbackResp
}
2022-03-02 19:07:17 +08:00
type CallbackWordFilterReq struct {
2022-02-28 17:57:03 +08:00
CommonCallbackReq
2022-03-03 14:18:28 +08:00
Content string `json:"content"`
2022-02-28 17:57:03 +08:00
}
2022-03-02 19:07:17 +08:00
type CallbackWordFilterResp struct {
2022-02-28 17:57:03 +08:00
CommonCallbackResp
2022-03-03 14:18:28 +08:00
Content string `json:"content"`
2022-02-28 17:57:03 +08:00
}