Prepare
()
| 15 | |
| 16 | // Prepare |
| 17 | func (this *LabelController) Prepare() { |
| 18 | this.BaseController.Prepare() |
| 19 | |
| 20 | //如果没有开启你们访问则跳转到登录 |
| 21 | if !this.EnableAnonymous && this.Member == nil { |
| 22 | this.Redirect(beego.URLFor("AccountController.Login"), 302) |
| 23 | return |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | // 查看包含标签的文档列表. |
| 28 | func (this *LabelController) Index() { |
nothing calls this directly
no outgoing calls
no test coverage detected