1 Star 0 Fork 708

兴博软件 / DocHub

forked from 进击的皇虫 / DocHub 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
SeoController.go 463 Bytes
一键复制 编辑 原始数据 按行查看 历史
TruthHun 提交于 2018-08-11 17:01 . 代码优化
package AdminControllers
import "github.com/TruthHun/DocHub/models"
type SeoController struct {
BaseController
}
func (this *SeoController) Get() {
this.Data["Data"], _, _ = models.GetList(models.GetTableSeo(), 1, 50, nil, "-IsMobile")
this.Data["IsSeo"] = true
this.TplName = "index.html"
}
func (this *SeoController) UpdateSitemap() {
go models.NewSeo().BuildSitemap()
this.ResponseJson(true, "Sitemap更新已提交后台执行,请耐心等待")
}
Go
1
https://gitee.com/lalbe/DocHub.git
git@gitee.com:lalbe/DocHub.git
lalbe
DocHub
DocHub
dd28a31bcdb3

搜索帮助