-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmsg.go
More file actions
35 lines (31 loc) · 786 Bytes
/
msg.go
File metadata and controls
35 lines (31 loc) · 786 Bytes
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
package main
type getTokenResp struct {
ErrCode int `json:"errcode"`
ErrMsg string `json:"errmsg"`
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
}
type content struct {
Content string `json:"content"`
}
type media struct {
MediaID string `json:"media_id"`
}
type sendMsg struct {
ToUser string `json:"touser"`
ToParty string `json:"toparty"`
MsgType string `json:"msgtype"`
AgentID int `json:"agentid"`
Safe int `json:"safe"`
Text content `json:"text"`
Image media `json:"image"`
}
type sendMsgResp struct {
ErrCode int `json:"errcode"`
ErrMsg string `json:"errmsg"`
}
type uploadResp struct {
ErrCode int `json:"errcode"`
ErrMsg string `json:"errmsg"`
MediaID string `json:"media_id"`
}