码农笔录博客源码
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

27 righe
465 B

6 anni fa
package controllers
import (
"github.com/astaxie/beego"
"beeblog/service"
)
6 anni fa
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 anni fa
this.TplName = "iframe/blog.html"
}
6 anni fa
6 anni fa
// @router /iframe/note [get]
func (this *PageController) IframeNote() {
this.TplName = "iframe/note.html"
}