-
Notifications
You must be signed in to change notification settings - Fork 149
/
responseDraft.go
62 lines (49 loc) · 1.5 KB
/
responseDraft.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
package response
import (
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/response"
)
type ResponseDraftAdd struct {
response.ResponseOfficialAccount
MediaID string `json:"media_id"`
}
type NewsItem struct {
Title string `json:"title"`
Author string `json:"author"`
Digest string `json:"digest"`
Content string `json:"content"`
ContentSourceUrl string `json:"content_source_url"`
ThumbMediaId string `json:"thumb_media_id"`
ShowCoverPic int `json:"show_cover_pic"`
NeedOpenComment int `json:"need_open_comment"`
OnlyFansCanComment int `json:"only_fans_can_comment"`
Url string `json:"url"`
IsDeleted bool `json:"is_deleted"`
}
type ResponseDraftGet struct {
response.ResponseOfficialAccount
NewsItem []*NewsItem `json:"news_item"`
}
type ResponseDraftCount struct {
TotalCount int `json:"total_count"`
}
type Content struct {
NewsItem []*NewsItem `json:"news_item"`
}
type Item struct {
MediaId string `json:"media_id"`
ArticleId string `json:"article_id"`
Content *Content `json:"content"`
UpdateTime int64 `json:"update_time"`
}
type ResponseBatchGet struct {
response.ResponseOfficialAccount
TotalCount int `json:"total_count"`
ItemCount int `json:"item_count"`
Item []*Item `json:"item"`
}
type ResponseCheckSwitch struct {
response.ResponseOfficialAccount
TotalCount int `json:"total_count"`
ItemCount int `json:"item_count"`
IsOpen int `json:"is_open"`
}