Documentation ¶
Index ¶
- func BookMap(r render.Render)
- func BookNew(l web.Log, s web.Session, b Book, r render.Render)
- func BookQuery(params base.Params, r render.Render)
- func BookRemove(l web.Log, params martini.Params, r render.Render)
- func BookTop(r render.Render)
- func BookUpdate(l web.Log, b Book, r render.Render)
- func Path(m *martini.ClassicMartini, p string)
- func SectionNew(l web.Log, s web.Session, e Section, r render.Render)
- func SectionQuery(params base.Params, r render.Render)
- func SectionRemove(l web.Log, params martini.Params, r render.Render)
- func SectionUpdate(l web.Log, s Section, r render.Render)
- type Book
- type Part
- type Section
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Book ¶
type Book struct { Id bson.ObjectId `bson:"_id,omitempty" json:"id" table:"book"` // 标题 Title string `bson:"title" json:"title"` // 作者 Author string `bson:"author,omitempty" json:"author"` //简介 Summary string `bson:"summary,omitempty" json:"summary"` // 状态 Status string `bson:"status,omitempty" json:"status"` // 注释数量 Size rune `bson:"size,omitempty" json:"size"` // 创建时间 Ca time.Time `bson:"ca,omitempty" json:"ca"` // 修改时间 Ua time.Time `bson:"ua,omitempty" json:"ua"` }
书籍
type Part ¶
type Part struct { Id bson.ObjectId `bson:"_id,omitempty" json:"id" table:"part"` // 章节 Section bson.ObjectId `bson:"section" json:"section"` // 元素 Span []string `bson:"span" json:"span"` // 顺序 Order int `bson:"order" json:"order"` // 创建时间 Ca time.Time `bson:"ca,omitempty" json:"ca"` // 修改时间 Ua time.Time `bson:"ua,omitempty" json:"ua"` }
段落
type Section ¶
type Section struct { Id bson.ObjectId `bson:"_id,omitempty" json:"id" table:"section"` // 书籍 Book bson.ObjectId `bson:"book" json:"book"` // 标题 Title string `bson:"title" json:"title"` // 顺序 Order int `bson:"order" json:"order"` // 内容 Content string `bson:"content,omitempty" json:"content"` // 创建时间 Ca time.Time `bson:"ca,omitempty" json:"ca"` // 修改时间 Ua time.Time `bson:"ua,omitempty" json:"ua"` }
章节
Click to show internal directories.
Click to hide internal directories.