Selaa lähdekoodia

加入全能少年行业版Api

xuchaolang 6 vuotta sitten
vanhempi
commit
b4022b97e2

+ 1 - 1
api/cms/support/support_list.md

@@ -1,4 +1,4 @@
-### GET /support/list
+### GET /product/support/list
 * method: GET
 * version: v1.0
 * describe: 获取周边列表

+ 1 - 1
api/cms/support/support_one.md

@@ -1,4 +1,4 @@
-### GET /support/{id}
+### GET /product/support/{id}
 * method: GET
 * version: v1.0
 * describe: 获取单个课

+ 1 - 1
api/cms/support/support_save.md

@@ -1,4 +1,4 @@
-### POST /support
+### POST /product/support
 * method: POST
 * version: v1.0
 * describe: 创建周边

+ 174 - 10
api/web/appApi.md

@@ -1,4 +1,11 @@
 
+
+| Modified By | Date | Change |
+|----|----|:-----|
+|langxuchao| 20180514 | 1.增加 /tagType/<typeCode> 2.增加/recommend/posters 3.增加/user/product/valid 4./support/<supportId>增加shopQR, 5. 增加/product/relatedPkg 6./user/message/productExpiredAlert|
+
+---
+
 1.渠道加联系人,联系人电话
 2.课程加subtitle, breadcrumb
 
@@ -109,20 +116,44 @@ DELETE
   'code':200,
   'msg':'success'
   'data':{
-  'list':[
-    {
-      'id':'xxx',
-      'code':'xxx',
-      'title':'xxxx',
-      'subtitle':'xxxx',
-      'breadcrumb':'xxxx',
-    },
-    ...
+    'list':[
+      {
+        'id':'xxx',
+        'code':'xxx',
+        'title':'xxxx',
+        'subtitle':'xxxx',
+        'breadcrumb':'xxxx',
+      },
+      ...
+      ]
+  }
+}
+```
+
+---
+### 海报
+
+```
+/recommend/posters
+GET
+{}
+返回
+{
+  'code':200,
+  'msg':'success'
+  'data':{
+    'num':3,
+    'recs':[
+      'img':'http://xxxx',
+      'pid':'xxxx',
+      'type':'xxxx',
     ]
   }
 }
 ```
 
+---
+
 ### 用户详情
 ```
 /user
@@ -292,7 +323,8 @@ GET
     'imgList':[
       '/resource/a.jpg',
       ...
-    ]
+    ],
+    'shopQR':'http://xxxx',
     'goods':[
       {
         'id':'xxx',
@@ -387,6 +419,47 @@ GET
 ```
 
 ---
+### 获取特定标签类型下的标签及产品
+```
+/tagType/<typeCode>
+GET
+{
+}
+返回
+{
+  'code':200,
+  'msg':'success'
+  'data':[
+    {
+      'id':'xxxx',
+      'name':'xxx',
+      'recs':[
+        {
+          'id':'xxx',
+          'redDot':0,
+          'type':'COURSE',
+          'code':'xxx',
+          'title':'xxx',
+          'subTitle':'xxx',
+          'coverUrl':'/xxx/b.jpg',
+          'goods':[
+            {
+              'id':'xxx',
+              'chargeUnit':'xxx',
+              'terminalPrice':'xxx',
+            },
+          ...
+          ],
+        },
+      ...
+      ]
+    },
+    ...
+  ]
+}
+```
+
+---
 
 ### 获取特定标签下的产品列表
 
@@ -594,3 +667,94 @@ GET
     }
 }
 ```
+
+---
+
+### 权限还未到期的产品
+```
+/user/product/valid
+GET
+{}
+返回
+{
+  'code':200,
+  'msg':'success',
+  'data':{
+    'totalNum':3,
+    'recs':[
+      {
+          'id':'xxx',
+          'title':'xxxx',
+          'beginTime':'xxx',
+          'endTime':'xxx',
+      },
+      ...
+    ]
+  }
+}
+```
+
+### 产品关联的产品包
+
+```
+/product/<productId>/relatedPkg
+GET
+返回
+{
+  'code':200,
+  'msg':'success',
+  'data':{
+    'totalNum':3,
+    'recs':[
+      {
+          'id':'xxx',
+          'name':'xxxx',
+          'totalNum':8,
+          'recs':[
+            {
+              'id':'xxxx',
+              'name':'xxxx',
+              'goods':[
+                {
+                    'id':'xxx',
+                    'chargeUnit':'周',
+                    'terminalPrice':123421.2,
+                    'isInCart':0,
+                    'recommend':0,
+                }
+              ]
+            },
+          ],
+      },
+      ...
+    ]
+    ...
+  }
+}
+```
+
+---
+
+### 产品过期提醒
+```
+/user/message/productExpiredAlert
+GET
+返回
+{
+  'code':200,
+  'msg':'success',
+  'data':{
+    'totalNum':3,
+    'recs':[
+      {
+          'id':'xxx',
+          'name':'xxxx',
+          'endTime':123423,
+          'type':'xxx'
+      },
+      ...
+    ]
+    ...
+  }
+}
+```