mirror of
https://bitbucket.org/skobkin/point-api-go.git
synced 2024-12-26 13:14:21 +00:00
More humble doc comments.
This commit is contained in:
parent
ce9019d9e5
commit
fc30e4b27f
|
@ -1,5 +1,6 @@
|
|||
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"`
|
||||
|
|
1
page.go
1
page.go
|
@ -1,5 +1,6 @@
|
|||
package point
|
||||
|
||||
// Page represents the basic feed API response which contains array of posts and has_next flag
|
||||
type Page struct {
|
||||
HasNext bool `json:"has_next"`
|
||||
Posts []MetaPost `json:"posts"`
|
||||
|
|
1
post.go
1
post.go
|
@ -1,5 +1,6 @@
|
|||
package point
|
||||
|
||||
// Post represents the basic post data
|
||||
type Post struct {
|
||||
Id string `json:"id"`
|
||||
Author User `json:"author"`
|
||||
|
|
1
token.go
1
token.go
|
@ -1,5 +1,6 @@
|
|||
package point
|
||||
|
||||
// Token represents the login API method response and contains important login data
|
||||
type Token struct {
|
||||
AuthToken string `json:"token"`
|
||||
CsRfToken string `json:"csrf_token"`
|
||||
|
|
Loading…
Reference in a new issue