|
|
@ -11,9 +11,9 @@ type IndexController struct { |
|
|
|
|
|
|
|
func (this *IndexController) Get() { |
|
|
|
blogService := service.BlogService{} |
|
|
|
timeBlog, _ := blogService.IndexBlogs(20, 0) |
|
|
|
timeBlog, _ := blogService.IndexBlogs(27, 0) |
|
|
|
this.Data["TimeBlog"] = timeBlog |
|
|
|
browsBlog, _ := blogService.IndexBlogs(20, 1) |
|
|
|
browsBlog, _ := blogService.IndexBlogs(27, 1) |
|
|
|
this.Data["BrowsBlog"] = browsBlog |
|
|
|
|
|
|
|
this.Data["UserId"] = this.GetSession("userid") |
|
|
|