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

hace 6 años
package controllers
import (
hace 6 años
"beeblog/service"
hace 3 años
beego "github.com/beego/beego/v2/server/web"
hace 6 años
)
type IndexController struct {
beego.Controller
}
hace 6 años
func (this *IndexController) Get() {
hace 5 años
blogService := service.BlogService{}
hace 3 años
timeBlog, _ := blogService.IndexBlogs(27, 0)
hace 6 años
this.Data["TimeBlog"] = timeBlog
hace 3 años
browsBlog, _ := blogService.IndexBlogs(27, 1)
hace 6 años
this.Data["BrowsBlog"] = browsBlog
this.Data["UserId"] = this.GetSession("userid")
this.Data["HeadImg"] = this.GetSession("headimg")
this.Data["NickName"] = this.GetSession("nickname")
this.Data["IsLogin"] = this.GetSession("nickname") != nil
this.Data["IsHome"] = true
this.TplName = "index.html"
hace 6 años
return
hace 6 años
}