码农笔录博客源码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
465 B

пре 6 година
package controllers
пре 6 година
import (
"github.com/astaxie/beego"
"beeblog/service"
)
пре 6 година
type PageController struct {
beego.Controller
}
// @router /iframe/blog [get]
func (this *PageController) Blog() {
пре 6 година
cats, err := service.GetCats()
if err != nil {
this.Redirect("500.html", 302)
return
}
this.Data["Cats"] = cats
пре 6 година
this.TplName = "iframe/blog.html"
}
пре 6 година
пре 6 година
// @router /iframe/note [get]
func (this *PageController) IframeNote() {
this.TplName = "iframe/note.html"
}