Browse Source

modified merchant/product/detail

huodongdong 7 years ago
parent
commit
cb09bbeaf7
2 changed files with 16 additions and 2 deletions
  1. 15 1
      tob/tobApi.md
  2. 1 1
      tob/tobDB.md

+ 15 - 1
tob/tobApi.md

@@ -83,7 +83,7 @@ POST
   'uid':'xxxx',
   'priceAdjust':-200.01,
   'note':'xxx',
-  'recs':[
+  'goods':[
     {
       'goodsId':'xxx',
       'quantity':2,
@@ -352,6 +352,20 @@ GET
             'merchantPrice':23.92,
             'terminalPrice':50.1,
             }],
+          'specials': [{
+            'id':'xxx',
+            'merchantId':'xxxx',
+            'duration':2322,
+            'chargeUnit':'xxx',
+            'cpPrice':12.01,
+            'merchantPrice':23.92,
+            'terminalPrice':50.1,
+          },
+          ...
+          ],
+          'products': [{
+            product...
+            }]
     }
 }
 ```

+ 1 - 1
tob/tobDB.md

@@ -104,7 +104,7 @@
 | field | type | null | default | desc | extra |
 |----|:-----|:-------|:------|:-----|:-----|
 | id | varchar(512) | no | | 主键 | pri |
-| package_id | varchar(512) | no | | 课程包id | |
+| pkg_id | varchar(512) | no | | 课程包id | |
 | pid | varchar(512) | no | | | |
 | cpPriceInPackage | float | no | | 产品在课程包内的cp价格 | |
 | sort | int | no | | 顺序 | |