码农笔录博客源码
您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。

27 行
465 B

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