78 lines
2.7 KiB
Go
78 lines
2.7 KiB
Go
|
|
package baseinfo
|
||
|
|
|
||
|
|
// SysMsg 系统消息
|
||
|
|
type SysMsg struct {
|
||
|
|
Type string `xml:"type,attr"`
|
||
|
|
RevokeMsg RevokeMsg `xml:"revokemsg"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// RevokeMsg 撤回消息
|
||
|
|
type RevokeMsg struct {
|
||
|
|
Session string `xml:"session"`
|
||
|
|
MsgID uint32 `xml:"msgid"`
|
||
|
|
NewMsgID int64 `xml:"newmsgid"`
|
||
|
|
ReplaceMsg string `xml:"replacemsg"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// 图片消息
|
||
|
|
type Msg3 struct {
|
||
|
|
Img Img `xml:"img"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type Img struct {
|
||
|
|
AESKey string `xml:"aeskey,attr"`
|
||
|
|
EncryVer string `xml:"encryver,attr"`
|
||
|
|
CdnThumbAESKey string `xml:"cdnthumbaeskey,attr"`
|
||
|
|
CdnThumbURL string `xml:"cdnthumburl,attr"`
|
||
|
|
CdnThumbLength int32 `xml:"cdnthumblength,attr"`
|
||
|
|
CdnThumbHeight int32 `xml:"cdnthumbheight,attr"`
|
||
|
|
CdnThumbWidth int32 `xml:"cdnthumbwidth,attr"`
|
||
|
|
CdnMidHeight int32 `xml:"cdnmidheight,attr"`
|
||
|
|
CdnMidWidth int32 `xml:"cdnmidwidth,attr"`
|
||
|
|
CdnHDHeight int32 `xml:"cdnhdheight,attr"`
|
||
|
|
CdnHDWidth int32 `xml:"cdnhdwidth,attr"`
|
||
|
|
CdnMidImgURL string `xml:"cdnmidimgurl,attr"`
|
||
|
|
Length int32 `xml:"length,attr"`
|
||
|
|
MD5 string `xml:"md5,attr"`
|
||
|
|
OriginSourceMD5 string `xml:"originsourcemd5,attr"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// 表情包消息
|
||
|
|
type Msg47 struct {
|
||
|
|
Emoji Emoji `xml:"emoji"`
|
||
|
|
// Add other elements in the <msg> tag that you want to parse
|
||
|
|
}
|
||
|
|
|
||
|
|
type Emoji struct {
|
||
|
|
FromUsername string `xml:"fromusername,attr"`
|
||
|
|
ToUsername string `xml:"tousername,attr"`
|
||
|
|
Type string `xml:"type,attr"`
|
||
|
|
IDBuffer string `xml:"idbuffer,attr"`
|
||
|
|
MD5 string `xml:"md5,attr"`
|
||
|
|
Len int32 `xml:"len,attr"`
|
||
|
|
ProductID string `xml:"productid,attr"`
|
||
|
|
AndroidMD5 string `xml:"androidmd5,attr"`
|
||
|
|
AndroidLen int32 `xml:"androidlen,attr"`
|
||
|
|
S60v3MD5 string `xml:"s60v3md5,attr"`
|
||
|
|
S60v3Len int32 `xml:"s60v3len,attr"`
|
||
|
|
S60v5MD5 string `xml:"s60v5md5,attr"`
|
||
|
|
S60v5Len int32 `xml:"s60v5len,attr"`
|
||
|
|
CdnURL string `xml:"cdnurl,attr"`
|
||
|
|
DesignerID string `xml:"designerid,attr"`
|
||
|
|
ThumbURL string `xml:"thumburl,attr"`
|
||
|
|
EncryptURL string `xml:"encrypturl,attr"`
|
||
|
|
AesKey string `xml:"aeskey,attr"`
|
||
|
|
ExternURL string `xml:"externurl,attr"`
|
||
|
|
ExternMD5 string `xml:"externmd5,attr"`
|
||
|
|
Width string `xml:"width,attr"`
|
||
|
|
Height string `xml:"height,attr"`
|
||
|
|
TpURL string `xml:"tpurl,attr"`
|
||
|
|
TpAuthKey string `xml:"tpauthkey,attr"`
|
||
|
|
AttachedText string `xml:"attachedtext,attr"`
|
||
|
|
AttachedTextColor string `xml:"attachedtextcolor,attr"`
|
||
|
|
LensID string `xml:"lensid,attr"`
|
||
|
|
EmojiAttr string `xml:"emojiattr,attr"`
|
||
|
|
LinkID string `xml:"linkid,attr"`
|
||
|
|
Desc string `xml:"desc,attr"`
|
||
|
|
}
|