2014-11-09 16:24:19 +08:00
|
|
|
package info
|
|
|
|
|
|
|
|
import (
|
2014-11-10 23:56:15 +08:00
|
|
|
"time"
|
2014-11-09 16:24:19 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// 仅仅为了博客的主题
|
|
|
|
|
|
|
|
type BlogInfoCustom struct {
|
2015-11-13 17:58:41 +08:00
|
|
|
UserId string
|
|
|
|
Username string
|
|
|
|
UserLogo string
|
|
|
|
Title string
|
|
|
|
SubTitle string
|
|
|
|
Logo string
|
2014-11-09 16:24:19 +08:00
|
|
|
OpenComment bool
|
|
|
|
CommentType string
|
2015-11-13 17:58:41 +08:00
|
|
|
ThemeId string
|
|
|
|
SubDomain string
|
|
|
|
Domain string
|
2014-11-09 16:24:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type Post struct {
|
2015-11-13 17:58:41 +08:00
|
|
|
NoteId string
|
|
|
|
Title string
|
|
|
|
UrlTitle string
|
|
|
|
ImgSrc string
|
2014-11-10 23:56:15 +08:00
|
|
|
CreatedTime time.Time
|
|
|
|
UpdatedTime time.Time
|
2015-11-13 17:58:41 +08:00
|
|
|
PublicTime time.Time
|
|
|
|
Desc string
|
|
|
|
Abstract string
|
|
|
|
Content string
|
|
|
|
Tags []string
|
|
|
|
CommentNum int
|
|
|
|
ReadNum int
|
|
|
|
LikeNum int
|
|
|
|
IsMarkdown bool
|
2014-11-09 16:24:19 +08:00
|
|
|
}
|
2015-11-13 17:58:41 +08:00
|
|
|
|
2014-11-09 16:24:19 +08:00
|
|
|
// 归档
|
2014-11-10 23:56:15 +08:00
|
|
|
type ArchiveMonth struct {
|
|
|
|
Month int
|
|
|
|
Posts []*Post
|
|
|
|
}
|
2014-11-09 16:24:19 +08:00
|
|
|
type Archive struct {
|
2015-11-13 17:58:41 +08:00
|
|
|
Year int
|
2014-11-10 23:56:15 +08:00
|
|
|
MonthAchives []ArchiveMonth
|
2015-11-13 17:58:41 +08:00
|
|
|
Posts []*Post
|
2014-11-09 16:24:19 +08:00
|
|
|
}
|
2015-03-31 14:27:26 +08:00
|
|
|
|
|
|
|
type Cate struct {
|
2015-11-13 17:58:41 +08:00
|
|
|
CateId string
|
2015-03-31 14:27:26 +08:00
|
|
|
ParentCateId string
|
2015-11-13 17:58:41 +08:00
|
|
|
Title string
|
|
|
|
UrlTitle string
|
|
|
|
Children []*Cate
|
2015-03-31 14:27:26 +08:00
|
|
|
}
|