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/call_back_struct/message.go

66 lines
1.0 KiB

package call_back_struct
type Msg struct {
SendID string `json:"sendID"`
CreateTime int64 `json:"createTime"`
Content string `json:"content"`
}
type SingleMsg struct {
Msg
RecvID string `json:"recvID"`
}
type CallbackBeforeSendSingleMsgReq struct {
CommonCallbackReq
SingleMsg
}
type CallbackBeforeSendSingleMsgResp struct {
CommonCallbackResp
SingleMsg
}
type CallbackAfterSendSingleMsgReq struct {
CommonCallbackReq
SingleMsg
}
type CallbackAfterSendSingleMsgResp struct {
CommonCallbackResp
}
type GroupMsg struct {
Msg
GroupID string `json:"groupID"`
}
type CallbackBeforeSendGroupMsgReq struct {
CommonCallbackReq
GroupMsg
}
type CallbackBeforeSendGroupMsgResp struct {
CommonCallbackResp
GroupMsg
}
type CallbackAfterSendGroupMsgReq struct {
GroupMsg
CommonCallbackReq
}
type CallbackAfterSendGroupMsgResp struct {
CommonCallbackResp
}
type CallbackWordFilterReq struct {
CommonCallbackReq
Content string `json:"content"`
}
type CallbackWordFilterResp struct {
CommonCallbackResp
Content string `json:"content"`
}