Dashboard 书籍概要 .
()
| 129 | |
| 130 | // Dashboard 书籍概要 . |
| 131 | func (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 书籍设置 . |
| 154 | func (this *BookController) Setting() { |
nothing calls this directly
no test coverage detected