/
struct.go
58 lines (50 loc) · 1.43 KB
/
struct.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
package limb
type GetQRCodeResp struct {
Message string `json:"msg"`
Result string `json:"result"`
}
type IsLoginResp struct {
IsLogin int `json:"is_login"`
Result string `json:"result"`
}
type GetSelfResp struct {
Data UserInfo `json:"data"`
Result string `json:"result"`
}
type GetGroupMembersResp struct {
Members string `json:"members"`
Result string `json:"result"`
}
type ContactResp struct {
Data [][5]string `json:"data,omitempty"`
Result string `json:"result"`
}
type UserInfo struct {
ID string `json:"wxId"`
Nickname string `json:"wxNickName"`
BigAvatar string `json:"wxBigAvatar"`
Remark string `json:"wxRemark"`
}
type GroupInfo struct {
ID string `json:"wxId"`
Name string `json:"wxNickName"`
BigAvatar string `json:"wxBigAvatar"`
Notice string `json:"notice"`
Members []string `json:"members"`
}
type WechatMessage struct {
PID int `json:"pid"`
MsgID uint64 `json:"msgid"`
Time string `json:"time"`
Timestamp int64 `json:"timestamp"`
WxID string `json:"wxid"`
Sender string `json:"sender"`
Self string `json:"self"`
IsSendMsg int8 `json:"isSendMsg"`
IsSendByPhone int8 `json:"isSendByPhone"`
MsgType int `json:"type"`
Message string `json:"message"`
FilePath string `json:"filepath"`
Thumbnail string `json:"thumb_path"`
ExtraInfo string `json:"extrainfo"`
}