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