|
@@ -34,15 +34,14 @@ func (this *CollectionController) BannerList() {
|
|
|
|
|
|
resp := new(models.CollectionBannerListResp)
|
|
resp := new(models.CollectionBannerListResp)
|
|
var listA []*models.CollectionBannerResp
|
|
var listA []*models.CollectionBannerResp
|
|
- var listB []*models.CollectionBannerResp
|
|
|
|
|
|
+ listB := new(models.CollectionBannerResp)
|
|
listA = []*models.CollectionBannerResp{
|
|
listA = []*models.CollectionBannerResp{
|
|
&models.CollectionBannerResp{Title: "B1", IndexImg: "https://hzstatic.hzinsights.com/banner/yx/web_1.png", Path: "/index/"},
|
|
&models.CollectionBannerResp{Title: "B1", IndexImg: "https://hzstatic.hzinsights.com/banner/yx/web_1.png", Path: "/index/"},
|
|
&models.CollectionBannerResp{Title: "B2", IndexImg: "https://hzstatic.hzinsights.com/banner/yx/web_2.png", Path: ""},
|
|
&models.CollectionBannerResp{Title: "B2", IndexImg: "https://hzstatic.hzinsights.com/banner/yx/web_2.png", Path: ""},
|
|
}
|
|
}
|
|
-
|
|
|
|
- listB = []*models.CollectionBannerResp{
|
|
|
|
- &models.CollectionBannerResp{Title: "B2", IndexImg: "https://hzstatic.hzinsights.com/banner/yx/web_3.png", Path: "/index/"},
|
|
|
|
- }
|
|
|
|
|
|
+ listB.Title = "B2"
|
|
|
|
+ listB.IndexImg = "https://hzstatic.hzinsights.com/banner/yx/web_3.png"
|
|
|
|
+ listB.IsShowSustainable = true
|
|
resp.ListA = listA
|
|
resp.ListA = listA
|
|
resp.ListB = listB
|
|
resp.ListB = listB
|
|
br.Ret = 200
|
|
br.Ret = 200
|