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

Method BookScoreByUid

models/comments.go:220–224  ·  view source on GitHub ↗

查询用户对文档的评分

(uid, bookId interface{})

Source from the content-addressed store, hash-verified

218
219//查询用户对文档的评分
220func (this *Score) BookScoreByUid(uid, bookId interface{}) int {
221 var score Score
222 orm.NewOrm().QueryTable("md_score").Filter("uid", uid).Filter("book_id", bookId).One(&score, "score")
223 return score.Score
224}
225
226//添加评论内容
227

Callers 2

IndexMethod · 0.80
GetCommentsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected