[code]func (c *ArticleList) Get() {c.Layout = \"layout/mainLayout.html\"c.TplName = \"pages/article/articleList/articleList.html\"c.LayoutSections = make(map[string]string)// menuc.LayoutSections[\"LeftMenu\"] = \"layout/leftSideMenuLayout.html\"// headerc.LayoutSections[\"HeaderLayout\"] = \"layout/headerLayout.html\"// footerc.LayoutSections[\"FooterLayout\"] = \"layout/footerLayout.html\"// cssc.LayoutSections[\"BaseStyle\"] = \"style/baseStyle.html\"// jsc.LayoutSections[\"BaseScript\"] = \"script/baseScript.html\"c.LayoutSections[\"Script\"] = \"script/articleList.html\"// reqpageStr := c.GetString(\"page\")var page int_int, err := strconv.ParseInt(pageStr, 10, 64)if err != nil {page = 1}page = int(_int)title := c.GetString(\"title\")tag := c.GetString(\"tag\")visible := c.GetString(\"visible\")// 类型分类articleTypeList, _ := servers.SelectArticleTypeMenuName(true)// 文章list分页查询data, total, _ := servers.SelectArticlePageList(title, tag, visible, page, common.PAGE_SIZE)articleList := common.Paginator(page, common.PAGE_SIZE, total, data)// resc.Data[\"articleTypeList\"] = articleTypeListres, count, err := servers.SelectArticleIsTopId()var top_id intif count == 1 && err == nil && res.TopId.Valid {top_id = int(res.TopId.Int64)}if visible == \"\" {visible = \"0\"}c.Data[\"top_id\"] = top_idc.Data[\"visible_id\"] = visiblec.Data[\"articleList\"] = articleList}