MCPcopy Index your code
hub / github.com/TruthHun/BookStack / Count

Method Count

models/comments.go:192–201  ·  view source on GitHub ↗
(bookId int, status ...int)

Source from the content-addressed store, hash-verified

190}
191
192func (this *Comments) Count(bookId int, status ...int) (int64, error) {
193 query := orm.NewOrm().QueryTable(this)
194 if bookId > 0 {
195 query = query.Filter("book_id", bookId)
196 }
197 if len(status) > 0 {
198 query = query.Filter("status", status[0])
199 }
200 return query.Count()
201}
202
203//评分内容
204type BookScoresResult struct {

Callers 15

CommentsMethod · 0.95
BindMethod · 0.45
ValidEmailMethod · 0.45
IndexMethod · 0.45
PasswordMethod · 0.45
SaveBookMethod · 0.45
CreateMethod · 0.45
fixFileLinksMethod · 0.45
CreateMemberMethod · 0.45
EditBookMethod · 0.45
ChangePasswordMethod · 0.45
DealUriFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected