码农笔录博客源码
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

27 lignes
465 B

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