-
Notifications
You must be signed in to change notification settings - Fork 156
/
requestAccountServiceSendMsg.go
77 lines (68 loc) · 2.73 KB
/
requestAccountServiceSendMsg.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
65
66
67
68
69
70
71
72
73
74
75
76
77
package request
type RequestAccountServiceSendMsg struct {
ToUser string `json:"touser"`
OpenKfid string `json:"open_kfid"`
MsgID string `json:"msgid"`
MsgType string `json:"msgtype"`
Text RequestAccountServiceMsgText `json:"text,omitempty"`
Image RequestAccountServiceMsgImage `json:"image,omitempty"`
Voice RequestAccountServiceMsgVoice `json:"voice,omitempty"`
File RequestAccountServiceMsgFile `json:"file,omitempty"`
Link RequestAccountServiceMsgLink `json:"link,omitempty"`
MiniProgram RequestAccountServiceMsgMiniProgram `json:"miniprogram,omitempty"`
Menu RequestAccountServiceMsgMenu `json:"msgmenu,omitempty"`
Location RequestAccountServiceMsgLocation `json:"location,omitempty"`
}
type RequestAccountServiceMsgText struct {
Content string `json:"content"`
}
type RequestAccountServiceMsgImage struct {
MediaID string `json:"media_id"`
}
type RequestAccountServiceMsgVoice struct {
MediaID string `json:"media_id"`
}
type RequestAccountServiceMsgFile struct {
MediaID string `json:"media_id"`
}
type RequestAccountServiceMsgLink struct {
Title string `json:"title"`
Desc string `json:"desc"`
Url string `json:"url"`
ThumbMediaID string `json:"thumb_media_id"`
}
type RequestAccountServiceMsgMiniProgram struct {
AppID string `json:"appid"`
Title string `json:"title"`
ThumbMediaID string `json:"thumb_media_id"`
PagePath string `json:"pagepath"`
}
type RequestAccountServiceMsgMenu struct {
HeadContent string `json:"head_content"`
TailContent string `json:"tail_content,omitempty"`
List []RequestAccountServiceMsgMenuList `json:"list,omitempty"`
}
type RequestAccountServiceMsgMenuList struct {
Click RequestAccountServiceMsgMenuListClick `json:"click,omitempty"`
View RequestAccountServiceMsgMenuListView `json:"view,omitempty"`
MiniProgram RequestAccountServiceMsgMenuListMiniProgram `json:"miniprogram,omitempty"`
}
type RequestAccountServiceMsgMenuListClick struct {
ID string `json:"id"`
Content string `json:"content"`
}
type RequestAccountServiceMsgMenuListView struct {
Url string `json:"url"`
Content string `json:"content"`
}
type RequestAccountServiceMsgMenuListMiniProgram struct {
AppID string `json:"appid"`
PagePath string `json:"pagepath"`
Content string `json:"content"`
}
type RequestAccountServiceMsgLocation struct {
Name string `json:"name"`
Address string `json:"address"`
Latitude int `json:"latitude"`
Longitude int `json:"longitude"`
}