446 Star 3.2K Fork 1.2K

GVP进击的皇虫/BookStack

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
commands
conf
controllers
AcountController.go
BaseController.go
BookController.go
BookMemberController.go
BookmarkController.go
CateController.go
CommentController.go
DocumentController.go
ErrorController.go
HomeController.go
LabelController.go
LocalhostController.go
ManagerController.go
RecordController.go
SearchController.go
SettingController.go
UserController.go
dictionary
graphics
lib/time
models
oauth
routers
static
utils
vendor
views
.gitattributes
.gitignore
LICENSE
LICENSE.md
README.md
change.md
favicon.ico
main.go
克隆/下载
CateController.go 869 Bytes
一键复制 编辑 原始数据 按行查看 历史
package controllers
import (
"github.com/TruthHun/BookStack/models"
"github.com/astaxie/beego"
)
type CateController struct {
BaseController
}
//分类
func (this *CateController) List() {
this.Data["IsCate"] = true
if cates, err := new(models.Category).GetCates(-1, 1); err == nil {
this.Data["Cates"] = cates
} else {
beego.Error(err.Error())
}
this.GetSeoByPage("cate", map[string]string{
"title": "书籍分类",
"keywords": "文档托管,在线创作,文档在线管理,在线知识管理,文档托管平台,在线写书,文档在线转换,在线编辑,在线阅读,开发手册,api手册,文档在线学习,技术文档,在线编辑",
"description": this.Sitename + "专注于文档在线写作、协作、分享、阅读与托管,让每个人更方便地发布、分享和获得知识。",
})
this.TplName = "cates/list.html"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/truthhun/BookStack.git
git@gitee.com:truthhun/BookStack.git
truthhun
BookStack
BookStack
v1.3.1

搜索帮助