Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { base.Model ID string `gorm:"column:id;size:36;NOT NULL;PRIMARY_KEY"` UID int64 `gorm:"NOT NULL;"` Title string `gorm:"size:50;NOT NULL;"` Content string `gorm:"NOT NULL"` Tags pq.StringArray `gorm:"type:varchar(10)[]"` Excerpt string `gorm:"size:200;NOT NULL"` Top int8 TopTime time.Time CreatedAt time.Time UpdatedAt time.Time }
func NewArticleFromPB ¶
func NewArticleFromPB(in *pb.PublishArticleRequest) *Article
NewArticleFromPB ...
type ArticleIndex ¶
type ArticleIndex struct { ID uint `json:"id"` Title string `json:"title"` Desc string `json:"desc"` PubDate int64 `json:"pub_date"` Cover string `json:"cover"` TotalNum int32 `json:"total_num"` Tags pq.StringArray `json:"tags"` EpisodeID uint `json:"episode_id"` IsShow bool `json:"is_show"` IsHideOnMobile bool `json:"is_hide_on_mobile"` SeriesID uint `json:"series_id"` SeriesName string `json:"series_name"` SeriesAlias string `json:"series_alias"` SeriesNum uint `json:"series_num"` }
ArticleIndex 文章索引
Click to show internal directories.
Click to hide internal directories.