Recommendation deleted. Files array added.

This commit is contained in:
Alexey Skobkin 2016-03-24 21:50:23 +03:00
parent efc59f1a99
commit 0e13e07f72
3 changed files with 1 additions and 8 deletions

View file

@ -6,6 +6,5 @@ type MetaPost struct {
Subscribed bool `json:"subscribed"` Subscribed bool `json:"subscribed"`
Editable bool `json:"editable"` Editable bool `json:"editable"`
Recommended bool `json:"recommended"` Recommended bool `json:"recommended"`
Rec Recommendation `json:"rec"`
Post Post `json:"post"` Post Post `json:"post"`
} }

View file

@ -5,6 +5,7 @@ type Post struct {
Author User `json:"author"` Author User `json:"author"`
Tags []string `json:"tags"` Tags []string `json:"tags"`
Text string `json:"text"` Text string `json:"text"`
Files []string `json:"files"`
CommentsCount int `json:"comments_count"` CommentsCount int `json:"comments_count"`
Created string `json:"created"` Created string `json:"created"`
Pinned bool `json:"pinned"` Pinned bool `json:"pinned"`

View file

@ -1,7 +0,0 @@
package point
type Recommendation struct {
Text string `json:"text"`
Comment_id int `json:"comment_id"`
Author User `json:"author"`
}