This commit is contained in:
Alexey Skobkin 2016-03-30 04:32:00 +03:00
parent ae0722ce09
commit b1379b99fc
2 changed files with 11 additions and 11 deletions

View File

@ -13,12 +13,12 @@ import (
// Package errors
var (
ErrHttpRequest = errors.New("point-api: HTTP request error")
ErrHttpRequest = errors.New("point-api: HTTP request error")
ErrJsonDeserialization = errors.New("point-api: JSON deserialization error")
ErrNotAuthorized = errors.New("point-api: Not authorized")
ErrAuthNeeded = errors.New("point-api: Authentication needed")
ErrNoNextPage = errors.New("point-api: Page has next_page: false")
ErrAuthorPrivacy = errors.New("point-api: Post author privacy error")
ErrNotAuthorized = errors.New("point-api: Not authorized")
ErrAuthNeeded = errors.New("point-api: Authentication needed")
ErrNoNextPage = errors.New("point-api: Page has next_page: false")
ErrAuthorPrivacy = errors.New("point-api: Post author privacy error")
)
type PointClient struct {

View File

@ -2,10 +2,10 @@ package point
// MetaPost represents the meta-post object in API response. It contains the post object and some user dependent data
type MetaPost struct {
Bookmarked bool `json:"bookmarked"`
Uid int `json:"uid"`
Subscribed bool `json:"subscribed"`
Editable bool `json:"editable"`
Recommended bool `json:"recommended"`
Post Post `json:"post"`
Bookmarked bool `json:"bookmarked"`
Uid int `json:"uid"`
Subscribed bool `json:"subscribed"`
Editable bool `json:"editable"`
Recommended bool `json:"recommended"`
Post Post `json:"post"`
}