码农笔录博客源码
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

27 líneas
465 B

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