浏览代码

获取产品介绍列表接口增加出参

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

+ 8 - 0
docs/docs.go

@@ -40332,6 +40332,10 @@ const docTemplate = `{
                     "description": "详情图片(逗号分隔)",
                     "type": "string"
                 },
+                "thumurls": {
+                    "description": "缩略图片(1:1)(逗号分隔)",
+                    "type": "string"
+                },
                 "wrstandardcode": {
                     "description": "现货商品代码",
                     "type": "string"
@@ -40575,6 +40579,10 @@ const docTemplate = `{
         "models.THJWrstandardDetail_GoodsInfo": {
             "type": "object",
             "properties": {
+                "bannerpicurl": {
+                    "description": "Banner图(逗号分隔)",
+                    "type": "string"
+                },
                 "pictureurls": {
                     "description": "详情图片(逗号分隔)",
                     "type": "string"

+ 8 - 0
docs/swagger.json

@@ -40323,6 +40323,10 @@
                     "description": "详情图片(逗号分隔)",
                     "type": "string"
                 },
+                "thumurls": {
+                    "description": "缩略图片(1:1)(逗号分隔)",
+                    "type": "string"
+                },
                 "wrstandardcode": {
                     "description": "现货商品代码",
                     "type": "string"
@@ -40566,6 +40570,10 @@
         "models.THJWrstandardDetail_GoodsInfo": {
             "type": "object",
             "properties": {
+                "bannerpicurl": {
+                    "description": "Banner图(逗号分隔)",
+                    "type": "string"
+                },
                 "pictureurls": {
                     "description": "详情图片(逗号分隔)",
                     "type": "string"

+ 6 - 0
docs/swagger.yaml

@@ -16892,6 +16892,9 @@ definitions:
       pictureurls:
         description: 详情图片(逗号分隔)
         type: string
+      thumurls:
+        description: 缩略图片(1:1)(逗号分隔)
+        type: string
       wrstandardcode:
         description: 现货商品代码
         type: string
@@ -17039,6 +17042,9 @@ definitions:
     type: object
   models.THJWrstandardDetail_GoodsInfo:
     properties:
+      bannerpicurl:
+        description: Banner图(逗号分隔)
+        type: string
       pictureurls:
         description: 详情图片(逗号分隔)
         type: string

+ 3 - 1
models/ferroalloy.go

@@ -864,6 +864,7 @@ type THJProduct struct {
 	WRSTANDARDNAME string `json:"wrstandardname" xorm:"WRSTANDARDNAME"` // 现货商品名称
 	BANNERPICURL   string `json:"bannerpicurl" xorm:"BANNERPICURL"`     // Banner图(逗号分隔)
 	PICTUREURLS    string `json:"pictureurls" xorm:"PICTUREURLS"`       // 详情图片(逗号分隔)
+	THUMURLS       string `json:"thumurls" xorm:"THUMURLS"`             // 缩略图片(1:1)(逗号分隔)
 
 	UserID       int  `json:"-" xorm:"-" form:"userid" binding:"required"` // 用户ID
 	FavoriteFlag bool `json:"-" xorm:"-" form:"favoriteflag"`              // 关注标志 true-已关注 false-未关注
@@ -881,7 +882,8 @@ func (r *THJProduct) buildSql() string {
 		to_char(t.WRSTANDARDID) WRSTANDARDID, 
 		t.WRSTANDARDNAME, 
 		t.BANNERPICURL, 
-		t.PICTUREURLS 
+		t.PICTUREURLS,
+		t.THUMURLS 
 	from wrstandard t
 	where t.IsValid = 1 
 		and t.wrstandardid