获取评论列表
()
| 164 | |
| 165 | //获取评论列表 |
| 166 | func (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 | } |
nothing calls this directly
no test coverage detected