Files
leanote/app/info/BlogCustom.go

58 lines
799 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
2014-11-12 17:32:03 +08:00
UrlTitle string
ImgSrc string
2014-11-10 23:56:15 +08:00
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
}
2015-03-31 14:27:26 +08:00
type Cate struct {
CateId string
ParentCateId string
Title string
UrlTitle string
Children []*Cate
}