浏览代码

"获取二级市场(挂牌点选)商品信息详情"接口增加供应商信息

zhou.xiaoning 5 年之前
父节点
当前提交
c92be1a095
共有 4 个文件被更改,包括 26 次插入2 次删除
  1. 8 0
      docs/docs.go
  2. 8 0
      docs/swagger.json
  3. 6 0
      docs/swagger.yaml
  4. 4 2
      models/hsby.go

+ 8 - 0
docs/docs.go

@@ -3517,10 +3517,18 @@ var doc = `{
                     "description": "介绍图片[多张用逗号分隔]",
                     "type": "string"
                 },
+                "vendorattr": {
+                    "description": "附件(多张,逗号分隔)",
+                    "type": "string"
+                },
                 "vendorname": {
                     "description": "供应商名称",
                     "type": "string"
                 },
+                "vendorphone": {
+                    "description": "客服电话",
+                    "type": "string"
+                },
                 "videourls": {
                     "description": "介绍视频[多张用逗号分隔]",
                     "type": "string"

+ 8 - 0
docs/swagger.json

@@ -3501,10 +3501,18 @@
                     "description": "介绍图片[多张用逗号分隔]",
                     "type": "string"
                 },
+                "vendorattr": {
+                    "description": "附件(多张,逗号分隔)",
+                    "type": "string"
+                },
                 "vendorname": {
                     "description": "供应商名称",
                     "type": "string"
                 },
+                "vendorphone": {
+                    "description": "客服电话",
+                    "type": "string"
+                },
                 "videourls": {
                     "description": "介绍视频[多张用逗号分隔]",
                     "type": "string"

+ 6 - 0
docs/swagger.yaml

@@ -1261,9 +1261,15 @@ definitions:
       picurls:
         description: 介绍图片[多张用逗号分隔]
         type: string
+      vendorattr:
+        description: 附件(多张,逗号分隔)
+        type: string
       vendorname:
         description: 供应商名称
         type: string
+      vendorphone:
+        description: 客服电话
+        type: string
       videourls:
         description: 介绍视频[多张用逗号分隔]
         type: string

+ 4 - 2
models/hsby.go

@@ -146,7 +146,9 @@ type HsbyListingGoodsDetail struct {
 	Currency     string `json:"currency" xorm:"'CURRENCY'"`         // 货币
 	Currencysign string `json:"currencysign" xorm:"'CURRENCYSIGN'"` // 货币符号
 
-	Vendorname string `json:"vendorname"  xorm:"'VENDORNAME'"` // 供应商名称
+	Vendorname  string `json:"vendorname"  xorm:"'VENDORNAME'"`   // 供应商名称
+	Vendorphone string `json:"vendorphone"  xorm:"'VENDORPHONE'"` // 客服电话
+	Vendorattr  string `json:"vendorattr"  xorm:"'VENDORATTR'"`   // 附件(多张,逗号分隔)
 
 	Last float64 `json:"last" xorm:"-"` // 现价
 }
@@ -165,7 +167,7 @@ func GetHsbyListingGoodsDetail(goodsID int) (*HsbyListingGoodsDetail, error) {
 		Select(`GOODS.GOODSID, GOODS.GOODSCODE, GOODS.GOODSNAME, GOODS.DECIMALPLACE, GOODS.MARKETID,
 				HSBY_GOODSEX.HOTINDEX, HSBY_GOODSEX.VIDEOURLS, HSBY_GOODSEX.PICURLS, HSBY_GOODSEX.DESCPROVINCEID, HSBY_GOODSEX.Desccityid, HSBY_GOODSEX.Goodsdesc,
 				ENUMDICITEM.ENUMDICNAME CURRENCY, ENUMDICITEM.PARAM2 CURRENCYSIGN, 
-				HSBY_SUPPLIERINFO.VENDORNAME`).
+				HSBY_SUPPLIERINFO.VENDORNAME, HSBY_SUPPLIERINFO.VENDORPHONE, HSBY_SUPPLIERINFO.VENDORATTR`).
 		Join("LEFT", "HSBY_GOODSEX", "HSBY_GOODSEX.GOODSID = GOODS.GOODSID").
 		Join("LEFT", "ENUMDICITEM", "ENUMDICITEM.ENUMITEMNAME = GOODS.CURRENCYID and ENUMDICITEM.ENUMDICCODE = 'currency'").
 		Join("LEFT", "HSBY_SUPPLIERINFO", "HSBY_SUPPLIERINFO.VENDORID = HSBY_GOODSEX.VENDORID").