|
@@ -35,11 +35,10 @@ func (this *CollectionController) BannerList() {
|
|
|
var listA []*models.CollectionBannerResp
|
|
|
listB := new(models.CollectionBannerResp)
|
|
|
listA = []*models.CollectionBannerResp{
|
|
|
- &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: "", IndexImg: "https://hzstatic.hzinsights.com/cygx/banner/web/jxkb.png", Path: "https://web.hzinsights.com/activity"},
|
|
|
}
|
|
|
- listB.Title = "B2"
|
|
|
- listB.IndexImg = "https://hzstatic.hzinsights.com/banner/yx/web_3.png"
|
|
|
+ listB.Title = ""
|
|
|
+ listB.IndexImg = "https://hzstatic.hzinsights.com/cygx/banner/web/lyhf.png"
|
|
|
listB.IsShowSustainable = true
|
|
|
resp.ListA = listA
|
|
|
resp.ListB = listB
|
|
@@ -49,6 +48,30 @@ func (this *CollectionController) BannerList() {
|
|
|
br.Data = resp
|
|
|
}
|
|
|
|
|
|
+// @Title 精选看板跳转详情地址
|
|
|
+// @Description 精选看板跳转详情地址接口
|
|
|
+// @Success Ret=200 {object} cygx.CollectionBannerListResp
|
|
|
+// @router /detail [get]
|
|
|
+func (this *CollectionController) Detail() {
|
|
|
+ br := new(models.BaseResponse).Init()
|
|
|
+ defer func() {
|
|
|
+ this.Data["json"] = br
|
|
|
+ this.ServeJSON()
|
|
|
+ }()
|
|
|
+ user := this.User
|
|
|
+ if user == nil {
|
|
|
+ br.Msg = "请登录"
|
|
|
+ br.ErrMsg = "请登录,SysUser Is Empty"
|
|
|
+ br.Ret = 408
|
|
|
+ return
|
|
|
+ }
|
|
|
+ resp := new(models.CollectionDetailResp)
|
|
|
+ br.Ret = 200
|
|
|
+ br.Success = true
|
|
|
+ br.Msg = "获取成功"
|
|
|
+ br.Data = resp
|
|
|
+}
|
|
|
+
|
|
|
// @Title 提交精选看板申请接口
|
|
|
// @Description 提交精选看板申请接口
|
|
|
// @Param request body cygx.CygxBannerIdReq true "type json string"
|