Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ColumnNameCanNotBeEmpty = errors.New("专栏名不能为空") PidCanNotBeEmpty = errors.New("pid 不能为空") )
Functions ¶
Types ¶
type Article ¶
type Article struct {
ID int `json:"id"`
Type string `json:"type"`
Title string `json:"title"`
URL string `json:"url"`
Updated int64 `json:"updated"`
Created int64 `json:"created"`
Excerpt string `json:"excerpt"`
Content string `json:"content"`
ImageURL string `json:"image_url"`
Topics []Topic `json:"topics"`
}
文章
type ArticleList ¶
type ArticleList struct {
Paging struct {
IsEnd bool `json:"is_end"`
Totals int `json:"totals"`
IsStart bool `json:"is_start"`
} `json:"paging"`
Data []struct {
ID int `json:"id"`
} `json:"data"`
}
文章列表
type Author ¶
type Author struct {
ID string `json:"id"`
Name string `json:"name"`
Gender int `json:"gender"`
Headline string `json:"headline"`
Description string `json:"description"`
AvatarUrl string `json:"avatar_url"`
Type string `json:"type"`
UID string `json:"uid"`
URL string `json:"url"`
URLToken string `json:"url_token"`
UserType string `json:"user_type"`
}
作者
type PinnedArticleAndAuthor ¶
type PinnedArticleAndAuthor struct {
Type string `json:"type"`
ID int `json:"id"`
Updated int64 `json:"updated"`
Created int64 `json:"created"`
Title string `json:"title"`
ImageURL string `json:"image_url"`
URL string `json:"url"`
Excerpt string `json:"excerpt"`
Author Author
}
置顶文章及作者信息
func GetPinnedArticlePidAndAuthor ¶
func GetPinnedArticlePidAndAuthor(columnName string) (*PinnedArticleAndAuthor, error)
获取置顶文章pid以及作者信息
Click to show internal directories.
Click to hide internal directories.
