func (this *TalkController) ShowTopic() { //专题列表分页操作 page, _ := this.GetInt("page") //查询前page~page+15个我的文章 talk := models.Talk{} //fmt.Println(allPage) articles := talk.List(uint32((page-1)*15), uint32(page*15)) this.Data["json"] = articles this.ServeJson() }