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

Struct Comments

models/comments.go:17–26  ·  view source on GitHub ↗

评论表

Source from the content-addressed store, hash-verified

15
16//评论表
17type Comments struct {
18 Id int
19 Pid int `orm:"index;default(0)"` // 上一个评论的ID
20 Uid int `orm:"index"` // 用户id
21 BookId int `orm:"index"` // 书籍id
22 DocId int `orm:"index;default(0)"` // 文档ID
23 Content string `orm:"type(text)"` // 评论内容
24 TimeCreate time.Time // 评论时间
25 Status int8 // 审核状态; 0,待审核,1 通过,-1 不通过
26}
27
28//评分表
29type Score struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected