MCPcopy Index your code
hub / github.com/TruthHun/DocHub / GetComment

Method GetComment

controllers/HomeControllers/ViewController.go:166–177  ·  view source on GitHub ↗

获取评论列表

()

Source from the content-addressed store, hash-verified

164
165//获取评论列表
166func (this *ViewController) GetComment() {
167 p, _ := this.GetInt("p", 1)
168 did, _ := this.GetInt("did")
169 if p > 0 && did > 0 {
170 if rows, _, err := models.NewDocumentComment().GetCommentList(did, p, 10); err != nil {
171 helper.Logger.Error(err.Error())
172 this.ResponseJson(false, "评论列表获取失败")
173 } else {
174 this.ResponseJson(true, "评论列表获取成功", rows)
175 }
176 }
177}

Callers

nothing calls this directly

Calls 2

GetCommentListMethod · 0.80
ResponseJsonMethod · 0.45

Tested by

no test coverage detected