Documentation ¶
Index ¶
Constants ¶
View Source
const ( ArticleTypeOriginal int = 1 // 原创 ArticleTypeRepost int = 2 // 转载 ArticleTypeTranslate int = 3 // 翻译 )
View Source
const DefaultBaseAPI = "https://segmentfault.com/gateway"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleData ¶
type ArticleData struct {
ID int64 `json:"id"`
}
type CreateArticleResponse ¶
type CreateArticleResponse struct { Data *ArticleData `json:"data"` Message string `json:"msg"` }
type GetUserResponse ¶
type GetUserResponse struct {
User *User `json:"user"`
}
type SearchTagRow ¶
type SearchTagsResponse ¶
type SearchTagsResponse struct { Rows []*SearchTagRow `json:"rows"` Size int `json:"size"` }
type UploadResponse ¶
type UploadResponse struct {
URL string `json:"url"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.