Browse Source

加入/package/<packageId>接口

xuchaolang 6 years ago
parent
commit
d0b12e51fc
3 changed files with 45 additions and 1 deletions
  1. 26 1
      api/web/appApi.md
  2. 18 0
      db/config/poster.md
  3. 1 0
      db/product/lj_goods.md

+ 26 - 1
api/web/appApi.md

@@ -709,6 +709,7 @@ GET
       {
           'id':'xxx',
           'name':'xxxx',
+          'shopQR':'xxxx',
           'totalNum':8,
           'recs':[
             {
@@ -725,6 +726,16 @@ GET
               ]
             },
           ],
+
+          'goods':[
+                {
+                    'id':'xxx',
+                    'chargeUnit':'周',
+                    'terminalPrice':123421.2,
+                    'isInCart':0,
+                    'recommend':0,
+                }
+              ]
       },
       ...
     ]
@@ -750,7 +761,7 @@ GET
           'id':'xxx',
           'name':'xxxx',
           'endTime':123423,
-          'type':'xxx'
+          'type':'xxx',
       },
       ...
     ]
@@ -758,3 +769,17 @@ GET
   }
 }
 ```
+
+### 课程包详情
+```
+/package/<packageId>
+GET
+返回
+{
+  'code':200,
+  'msg':'success',
+  'data':{
+    /*参考/product/<productId>/relatedPkg中的课程包字段*/
+  }  
+}
+```

+ 18 - 0
db/config/poster.md

@@ -0,0 +1,18 @@
+### poster table structure
+> 此表为存储对应
+
+
+| field | type | null | default | desc | extra |
+|----|:-----|:-------|:------|:-----|:-----|
+| id | string | no | | id | |
+| merchant_id | int | no | 0 | 渠道id | |
+| pid | int | no | 0 | 产品id | |
+| type | int | no | 0 | 产品类型 | |
+| img | string | no | | 产品id | |
+| sort | string | no | | 顺序号 | |
+| status | smallint | no | | 状态 | |
+| gmt_created | timestamp | no | now | 创建时间 | |
+| gmt_modified | timestamp | no | now | 更新时间 | | |
+
+### index
+unique index on (merchant_id, item_id)

+ 1 - 0
db/product/lj_goods.md

@@ -16,6 +16,7 @@
 | terminal_price | double(19,2) | no | 0 | 终端显示价格 | |
 | sort | int(11) | yes | null | 排序字段 | |
 | pkg_id | varchar(255) | yes | null | 课程包id | |
+| shop_qr | string | no | | 二维码图片地址 | |
 | status | smallint | no | | 状态 | |
 | gmt_created | timestamp | no | now | 创建时间 | |
 | gmt_modified | timestamp | no | now | 更新时间 | | |