码农笔录博客源码
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

19 行
302 B

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