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

Struct BookCommentsResult

models/comments.go:52–69  ·  view source on GitHub ↗

评论内容

Source from the content-addressed store, hash-verified

50
51//评论内容
52type BookCommentsResult struct {
53 Id int `json:"id"`
54 Pid int `json:"pid"`
55 Uid int `json:"uid"`
56 DocId int `json:"doc_id"`
57 Score int `json:"score"`
58 Avatar string `json:"avatar"`
59 Account string `json:"account"`
60 Nickname string `json:"nickname"`
61 BookId int `json:"book_id"`
62 BookName string `json:"book_name"`
63 Identify string `json:"identify"`
64 Content string `json:"content"`
65 Status int8 `json:"status"`
66 TimeCreate time.Time `json:"created_at"` //评论时间
67 ReplyToUser string `json:"reply_to_user"`
68 ReplyToContent string `json:"reply_to_content"`
69}
70
71func NewComments() *Comments {
72 return &Comments{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected