码农笔录博客源码
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.

20 lines
302 B

пре 6 година
package controllers
import (
"github.com/astaxie/beego"
пре 6 година
"fmt"
"beeblog/service"
пре 6 година
)
type IndexController struct {
beego.Controller
}
func (c *IndexController) Get() {
пре 6 година
blogs,_ := service.FindBlogs()
fmt.Println(blogs)
c.Data["Blogs"] = blogs
пре 6 година
c.Data["IsHome"] = true
пре 6 година
c.TplName = "index.html"
}