-
Notifications
You must be signed in to change notification settings - Fork 174
/
gettingRulesForAutoReplies.go
61 lines (50 loc) · 1.82 KB
/
gettingRulesForAutoReplies.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
package response
import "github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/response"
type ResponseGettingRulesForAutoReplies struct {
response.ResponseOfficialAccount
IsAddFriendReplyOpen int `json:"is_add_friend_reply_open"`
IsAutoreplyOpen int `json:"is_autoreply_open"`
AddFriendAutoReplyInfo *AddFriendAutoReplyInfo `json:"add_friend_autoreply_info"`
MessageDefaultAutoReplyInfo *MessageDefaultAutoReplyInfo `json:"message_default_autoreply_info"`
KeywordAutoReplyInfo *KeywordAutoReplyInfo `json:"keyword_autoreply_info"`
}
type AddFriendAutoReplyInfo struct {
Type string `json:"type"`
Content string `json:"content"`
}
type MessageDefaultAutoReplyInfo struct {
Type string `json:"type"`
Content string `json:"content"`
}
type KeywordInfo struct {
Type string `json:"type"`
MatchMode string `json:"match_mode"`
Content string `json:"content"`
}
type NewsInfo struct {
Title string `json:"title"`
Author string `json:"author"`
Digest string `json:"digest"`
ShowCover int `json:"show_cover"`
CoverUrl string `json:"cover_url"`
ContentUrl string `json:"content_url"`
SourceUrl string `json:"source_url"`
}
type NewsInfos struct {
List []NewsInfo `json:"list"`
}
type ReplyInfo struct {
Type string `json:"type"`
NewsInfos *NewsInfos `json:"news_info,omitempty"`
Content string `json:"content,omitempty"`
}
type AutoReplyInfo struct {
RuleName string `json:"rule_name"`
CreateTime int `json:"create_time"`
ReplyMode string `json:"reply_mode"`
KeywordListInfo []*KeywordInfo `json:"keyword_list_info"`
ReplyListInfo []*ReplyInfo `json:"reply_list_info"`
}
type KeywordAutoReplyInfo struct {
List []*AutoReplyInfo `json:"list"`
}