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

Method Dashboard

controllers/BookController.go:131–151  ·  view source on GitHub ↗

Dashboard 书籍概要 .

()

Source from the content-addressed store, hash-verified

129
130// Dashboard 书籍概要 .
131func (this *BookController) Dashboard() {
132
133 this.TplName = "book/dashboard.html"
134
135 key := this.Ctx.Input.Param(":key")
136
137 if key == "" {
138 this.Abort("404")
139 }
140
141 book, err := models.NewBookResult().FindByIdentify(key, this.Member.MemberId)
142 if err != nil {
143 beego.Error(err)
144 if err == models.ErrPermissionDenied {
145 this.Abort("404")
146 }
147 this.Abort("404")
148 }
149
150 this.Data["Model"] = *book
151}
152
153// Setting 书籍设置 .
154func (this *BookController) Setting() {

Callers

nothing calls this directly

Calls 2

NewBookResultFunction · 0.92
FindByIdentifyMethod · 0.45

Tested by

no test coverage detected