|
@@ -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'
|
|
|
+ },
|
|
|
+ ...
|
|
|
+ ]
|
|
|
+ ...
|
|
|
+ }
|
|
|
+}
|
|
|
+```
|