Files
leanote/app/info/BlogCustom.go

48 lines
660 B
Go
Raw Normal View History

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 {
UserId string
Username string
UserLogo string
Title string
SubTitle string
Logo string
OpenComment bool
CommentType string
ThemeId string
SubDomain string
Domain string
}
type Post struct {
NoteId string
2014-11-10 23:56:15 +08:00
Title string
CreatedTime time.Time
UpdatedTime time.Time
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
}
// 归档
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 {
Year int
2014-11-10 23:56:15 +08:00
MonthAchives []ArchiveMonth
Posts []*Post
2014-11-09 16:24:19 +08:00
}