-
Notifications
You must be signed in to change notification settings - Fork 171
/
message.go
64 lines (57 loc) · 1.57 KB
/
message.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package models
import (
"github.com/ArtisanCloud/PowerWeChat/v2/src/kernel/contract"
"github.com/ArtisanCloud/PowerWeChat/v2/src/kernel/models"
)
type MessageText struct {
contract.EventInterface
models.CallbackMessageHeader
Content string `xml:"Content"`
MsgID string `xml:"MsgId"`
AgentID string `xml:"AgentID"`
}
type MessageImage struct {
contract.EventInterface
models.CallbackMessageHeader
PicUrl string `xml:"PicUrl"`
MediaID string `xml:"MediaId"`
MsgID string `xml:"MsgId"`
AgentID string `xml:"AgentID"`
}
type MessageVoice struct {
contract.EventInterface
models.CallbackMessageHeader
MediaID string `xml:"MediaId"`
Format string `xml:"Format"`
MsgID string `xml:"MsgId"`
AgentID string `xml:"AgentID"`
}
type MessageLocation struct {
contract.EventInterface
models.CallbackMessageHeader
LocationX string `xml:"Location_X"`
LocationY string `xml:"Location_Y"`
Scale string `xml:"Scale"`
Label string `xml:"Label"`
MsgID string `xml:"MsgId"`
AgentID string `xml:"AgentID"`
AppType string `xml:"AppType"`
}
type MessageVideo struct {
contract.EventInterface
models.CallbackMessageHeader
MediaID string `xml:"MediaId"`
ThumbMediaID string `xml:"ThumbMediaId"`
MsgID string `xml:"MsgId"`
AgentID string `xml:"AgentID"`
}
type MessageLink struct {
contract.EventInterface
models.CallbackMessageHeader
Title string `xml:"Title"`
Description string `xml:"Description"`
URL string `xml:"Url"`
PicUrl string `xml:"PicUrl"`
MsgID string `xml:"MsgId"`
AgentID string `xml:"AgentID"`
}