func (this *ArtilcecategoryController) GetData() { id, _ := strconv.Atoi(this.Ctx.Input.Param(":id")) category := new(models.Articlecategory) err := category.GetCategoryInfo(id) if err != nil { fmt.Println(err) } this.Data["json"] = category this.ServeJson() }