49 lines
1.4 KiB
Go
49 lines
1.4 KiB
Go
package imwebhook
|
|
|
|
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"`
|
|
SendTime int64 `json:"sendTime"`
|
|
CreateTime int64 `json:"createTime"`
|
|
Content string `json:"content"`
|
|
Seq uint32 `json:"seq"`
|
|
AtUserIDList []string `json:"atUserList"`
|
|
SenderFaceURL string `json:"faceURL"`
|
|
Ex string `json:"ex"`
|
|
}
|
|
|
|
type CommonCallbackResp struct {
|
|
ActionCode int32 `json:"actionCode"`
|
|
ErrCode int32 `json:"errCode"`
|
|
ErrMsg string `json:"errMsg"`
|
|
ErrDlt string `json:"errDlt"`
|
|
NextCode int32 `json:"nextCode"`
|
|
}
|
|
|
|
type CallbackAfterSendSingleMsgReq struct {
|
|
CommonCallbackReq
|
|
RecvID string `json:"recvID"`
|
|
}
|
|
|
|
type CallbackAfterSendSingleMsgResp struct {
|
|
CommonCallbackResp
|
|
}
|
|
|
|
type CallbackAfterSendGroupMsgReq struct {
|
|
CommonCallbackReq
|
|
GroupID string `json:"groupID"`
|
|
}
|
|
|
|
type CallbackAfterSendGroupMsgResp struct {
|
|
CommonCallbackResp
|
|
}
|