Documentation
¶
Index ¶
- type CreatePostRequest
- type CreatePostRequestFile
- type CreatePostResponse
- type DeletePostRequest
- type DeletePostResponse
- type ObservePostRequest
- type ObservePostResponse
- type ObservePostsRequest
- type ObservePostsResponse
- type Post
- type PostFile
- type UpdatePostRequest
- type UpdatePostRequestFile
- type UpdatePostResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePostRequest ¶
type CreatePostRequest struct {
Title string
Description string
Publish bool
Files []CreatePostRequestFile
}
type CreatePostRequestFile ¶
type CreatePostResponse ¶
type CreatePostResponse struct {
Post
}
type DeletePostRequest ¶
type DeletePostRequest struct {
ID int64 `json:"-"`
}
type DeletePostResponse ¶
type DeletePostResponse struct {
Post
}
type ObservePostRequest ¶
type ObservePostResponse ¶
type ObservePostResponse struct {
Post
}
type ObservePostsRequest ¶
type ObservePostsRequest struct {
}
type ObservePostsResponse ¶
type Post ¶
type Post struct {
ID int64 `json:"id"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
CreateTime int64 `json:"create_time,omitempty"`
PublishTime int64 `json:"publish_time,omitempty"`
Permissions []string `json:"permissions,omitempty"`
Files []PostFile `json:"files,omitempty"`
}
type UpdatePostRequest ¶
type UpdatePostRequestFile ¶
type UpdatePostRequestFile = CreatePostRequestFile
type UpdatePostResponse ¶
type UpdatePostResponse struct {
Post
}
Click to show internal directories.
Click to hide internal directories.