MCPcopy Create free account
hub / github.com/TruthHun/BookStack / Ebook

Struct Ebook

models/ebook.go:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24)
25
26type Ebook struct {
27 Id int `json:"id"`
28 Title string `json:"title"` // 电子书名称
29 Keywords string `json:"keywords"` // 关键字
30 Description string `json:"description"` // 摘要
31 Path string `json:"path"` // 文件路径。如果是网站生成的电子书,则为电子书的路径,否则为URL地址
32 BookID int `json:"book_id" orm:"default(0);column(book_id);index"` // 所属书籍ID
33 Ext string `json:"ext" orm:"size(8);index"` // 文件扩展名
34 Status int `json:"status" orm:"default(0);index"` // 0:待处理; 1: 转换中;2: 转换完成
35 Size int64 `json:"size" orm:"default(0)"` // 电子书大小
36 DownloadCount int `json:"download_count" orm:"default(0)"` // 电子书被下载次数
37 CreatedAt time.Time `json:"created_at" orm:"auto_now_add;type(datetime)"`
38 UpdatedAt time.Time `json:"updated_at" orm:"auto_now;type(datetime)"`
39}
40
41var (
42 convert2ebookRunning = false

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected