Prechádzať zdrojové kódy

商品详情接口增加出参

zhou.xiaoning 3 rokov pred
rodič
commit
5d136f6e52
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      models/ferroalloy.go

+ 3 - 1
models/ferroalloy.go

@@ -468,7 +468,7 @@ type THJWrstandardDetail_GoodsInfo struct {
 	STORAGEFEE        float64   `json:"-" xorm:"STORAGEFEE"`                  // 仓储费(固定: 111)
 	THUMURLS          string    `json:"-" xorm:"THUMURLS"`                    // 缩略图片(1:1)(逗号分隔)
 	PICTUREURLS       string    `json:"pictureurls" xorm:"PICTUREURLS"`       // 详情图片(逗号分隔)
-	BANNERPICURL      string    `json:"-" xorm:"BANNERPICURL"`                // Banner图(逗号分隔)
+	BANNERPICURL      string    `json:"bannerpicurl" xorm:"BANNERPICURL"`     // Banner图(逗号分隔)
 	PROVIDERUSERID    int64     `json:"-" xorm:"PROVIDERUSERID"`              // 供应链提供商
 	PROVIDERACCOUNTID int64     `json:"-" xorm:"PROVIDERACCOUNTID"`           // 供应链提供商资金账户 ID
 
@@ -533,6 +533,7 @@ func (r *THJWrstandardDetailReq) GetTHJWrstandardDetail() (rsp *THJWrstandardDet
 			t.WRSTANDARDCODE,
 			t.WRSTANDARDNAME,
 			t.PICTUREURLS,
+			t.BANNERPICURL,
 			t.UNITID,
 			p.SPOTGOODSPRICE
 		from wrstandard t
@@ -992,6 +993,7 @@ func (r *THJGoodsDetailReq) GetTHJGoodsDetail() (rsp *THJGoodsDetailRsp, err err
 			t.WRSTANDARDCODE,
 			t.WRSTANDARDNAME,
 			t.PICTUREURLS,
+			t.BANNERPICURL,
 			p.SPOTGOODSPRICE
 		from wrstandard t
 		left join ERMCP_SpotGoodsPrice p on t.WRSTANDARDID = p.WRSTANDARDID and p.spotgoodsbrandid=0 and p.currencyid = 1