|
@@ -77,8 +77,8 @@ type Message struct {
|
|
|
CreateTime int64 `xml:"CreateTime" json:"CreateTime"`
|
|
|
MsgType string `xml:"MsgType" json:"MsgType"`
|
|
|
|
|
|
-
|
|
|
- Content string `xml:"Content,omitempty" json:"Content,omitempty"`
|
|
|
+
|
|
|
+ Text string `xml:"Content,omitempty" json:"Content,omitempty"`
|
|
|
|
|
|
|
|
|
PicURL string `xml:"PicUrl,omitempty" json:"PicUrl,omitempty"`
|
|
@@ -237,7 +237,8 @@ type UserList struct {
|
|
|
NextOpenID string `json:"next_openid"`
|
|
|
}
|
|
|
|
|
|
-type newsitem struct {
|
|
|
+
|
|
|
+type MaterialNewsItem struct {
|
|
|
Title string `json:"title"`
|
|
|
Author string `json:"author"`
|
|
|
Digest string `json:"digest"`
|
|
@@ -251,25 +252,27 @@ type newsitem struct {
|
|
|
OnlyFansCanComment int `json:"only_fans_can_comment"`
|
|
|
}
|
|
|
|
|
|
-type content struct {
|
|
|
- NewsItem []*newsitem `json:"news_item,omitempty"`
|
|
|
- CreateTime int `json:"create_time,omitempty"`
|
|
|
- UpdateTime int `json:"update_time,omitempty"`
|
|
|
+
|
|
|
+type MaterialContent struct {
|
|
|
+ NewsItem []*MaterialNewsItem `json:"news_item,omitempty"`
|
|
|
+ CreateTime int `json:"create_time,omitempty"`
|
|
|
+ UpdateTime int `json:"update_time,omitempty"`
|
|
|
}
|
|
|
|
|
|
-type item struct {
|
|
|
- MediaID string `json:"media_id"`
|
|
|
- Name string `json:"name,omitempty"`
|
|
|
- UpdateTime int `json:"update_time"`
|
|
|
- URL string `json:"url,omitempty"`
|
|
|
- Content *content `json:"content,omitempty"`
|
|
|
+
|
|
|
+type MaterialItem struct {
|
|
|
+ MediaID string `json:"media_id"`
|
|
|
+ Name string `json:"name,omitempty"`
|
|
|
+ UpdateTime int `json:"update_time"`
|
|
|
+ URL string `json:"url,omitempty"`
|
|
|
+ Content *MaterialContent `json:"content,omitempty"`
|
|
|
}
|
|
|
|
|
|
|
|
|
type Material struct {
|
|
|
- TotalCount int `json:"total_count"`
|
|
|
- ItemCount int `json:"item_count"`
|
|
|
- Item []item `json:"item"`
|
|
|
+ TotalCount int `json:"total_count"`
|
|
|
+ ItemCount int `json:"item_count"`
|
|
|
+ Item []MaterialItem `json:"item"`
|
|
|
}
|
|
|
|
|
|
|