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 // Package errors
var ( 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") ErrJsonDeserialization = errors.New("point-api: JSON deserialization error")
ErrNotAuthorized = errors.New("point-api: Not authorized") ErrNotAuthorized = errors.New("point-api: Not authorized")
ErrAuthNeeded = errors.New("point-api: Authentication needed") ErrAuthNeeded = errors.New("point-api: Authentication needed")
ErrNoNextPage = errors.New("point-api: Page has next_page: false") ErrNoNextPage = errors.New("point-api: Page has next_page: false")
ErrAuthorPrivacy = errors.New("point-api: Post author privacy error") ErrAuthorPrivacy = errors.New("point-api: Post author privacy error")
) )
type PointClient struct { 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 // MetaPost represents the meta-post object in API response. It contains the post object and some user dependent data
type MetaPost struct { type MetaPost struct {
Bookmarked bool `json:"bookmarked"` Bookmarked bool `json:"bookmarked"`
Uid int `json:"uid"` Uid int `json:"uid"`
Subscribed bool `json:"subscribed"` Subscribed bool `json:"subscribed"`
Editable bool `json:"editable"` Editable bool `json:"editable"`
Recommended bool `json:"recommended"` Recommended bool `json:"recommended"`
Post Post `json:"post"` Post Post `json:"post"`
} }