420 Star 1.9K Fork 708

进击的皇虫 / 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/truthhun/DocHub.git
git@gitee.com:truthhun/DocHub.git
truthhun
DocHub
DocHub
01033d1926ec

搜索帮助