MCPcopy Index your code
hub / github.com/TruthHun/BookStack / List

Method List

controllers/CateController.go:27–42  ·  view source on GitHub ↗

分类

()

Source from the content-addressed store, hash-verified

25
26//分类
27func (this *CateController) List() {
28 if cates, err := new(models.Category).GetCates(-1, 1); err == nil {
29 this.Data["Cates"] = cates
30 } else {
31 beego.Error(err.Error())
32 }
33 this.GetSeoByPage("cate", map[string]string{
34 "title": "书籍分类",
35 "keywords": "文档托管,在线创作,文档在线管理,在线知识管理,文档托管平台,在线写书,文档在线转换,在线编辑,在线阅读,开发手册,api手册,文档在线学习,技术文档,在线编辑",
36 "description": this.Sitename + "专注于文档在线写作、协作、分享、阅读与托管,让每个人更方便地发布、分享和获得知识。",
37 })
38 this.Data["IsCate"] = true
39 this.Data["Friendlinks"] = new(models.FriendLink).GetList(false)
40 this.Data["Recommends"], _, _ = models.NewBook().HomeData(1, 12, models.OrderLatestRecommend, "", 0)
41 this.TplName = "cates/list.html"
42}

Callers 7

IndexMethod · 0.95
CollectionMethod · 0.45
ReadMethod · 0.45
StarMethod · 0.45
GetBookmarksMethod · 0.45
BookMenuMethod · 0.45
BookshelfMethod · 0.45

Calls 5

NewBookFunction · 0.92
GetCatesMethod · 0.80
GetSeoByPageMethod · 0.80
GetListMethod · 0.80
HomeDataMethod · 0.80

Tested by

no test coverage detected