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

Method SetCommentStatus

models/comments.go:75–78  ·  view source on GitHub ↗
(id, status int)

Source from the content-addressed store, hash-verified

73}
74
75func (this *Comments) SetCommentStatus(id, status int) (err error) {
76 _, err = orm.NewOrm().QueryTable(this).Filter("id", id).Update(orm.Params{"status": status})
77 return
78}
79
80// 获取可显示的评论内容
81func (this *Comments) Comments(p, listRows int, opt CommentOpt) (comments []BookCommentsResult, err error) {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.45

Tested by

no test coverage detected