65 lines
2.3 KiB
Go
65 lines
2.3 KiB
Go
package message
|
|
|
|
import "gitee.ltd/lxh/xybot/base"
|
|
|
|
// SendMessageResponse
|
|
// @description: 发送消息返回结果
|
|
type SendMessageResponse struct {
|
|
BaseResponse struct {
|
|
Ret int `json:"ret"`
|
|
ErrMsg struct {
|
|
} `json:"errMsg"`
|
|
} `json:"BaseResponse"`
|
|
FromUserName string `json:"fromUserName"` // 发信人
|
|
ToUserName string `json:"toUserName"` // 收信人
|
|
MsgId int `json:"msgId"` // 消息id - 撤回用得上
|
|
ClientMsgId string `json:"clientMsgId"` // 客户端消息Id
|
|
CreateTime int `json:"createTime"` // 消息创建时间 - 撤回用得上
|
|
Type int `json:"type"` // 消息类型
|
|
NewMsgId int `json:"newMsgId"` // 新消息id - 撤回用得上
|
|
MsgSource string `json:"msgSource"` // 未知
|
|
ActionFlag int `json:"actionFlag"` // 未知
|
|
}
|
|
|
|
// SyncResponse
|
|
// @description: 同步消息返回值
|
|
type SyncResponse struct {
|
|
ModUserInfos any `json:"ModUserInfos"`
|
|
ModContacts any `json:"ModContacts"`
|
|
DelContacts any `json:"DelContacts"`
|
|
ModUserImgs any `json:"ModUserImgs"`
|
|
FunctionSwitchs any `json:"FunctionSwitchs"`
|
|
UserInfoExts any `json:"UserInfoExts"`
|
|
AddMsgs []SyncMessage `json:"AddMsgs"`
|
|
ContinueFlag int `json:"ContinueFlag"`
|
|
KeyBuf struct {
|
|
ILen int `json:"iLen"`
|
|
Buffer string `json:"buffer"`
|
|
} `json:"KeyBuf"`
|
|
Status int `json:"Status"`
|
|
Continue int `json:"Continue"`
|
|
Time int `json:"Time"`
|
|
UnknownCmdId string `json:"UnknownCmdId"`
|
|
Remarks string `json:"Remarks"`
|
|
}
|
|
|
|
// SyncMessage
|
|
// @description: 同步消息的消息内容
|
|
type SyncMessage struct {
|
|
MsgId int `json:"MsgId"`
|
|
FromUserName base.SKBuiltinStringT `json:"FromUserName"`
|
|
ToWxid base.SKBuiltinStringT `json:"ToWxid"`
|
|
MsgType int `json:"MsgType"`
|
|
Content base.SKBuiltinStringT `json:"Content"`
|
|
Status int `json:"Status"`
|
|
ImgStatus int `json:"ImgStatus"`
|
|
ImgBuf struct {
|
|
ILen int `json:"iLen"`
|
|
} `json:"ImgBuf"`
|
|
CreateTime int `json:"CreateTime"`
|
|
MsgSource string `json:"MsgSource"`
|
|
NewMsgId int64 `json:"NewMsgId"`
|
|
MsgSeq int `json:"MsgSeq"`
|
|
PushContent string `json:"PushContent,omitempty"`
|
|
}
|