Authored by qianjun

update02

... ... @@ -107,20 +107,20 @@ or
}
```
## 根据ID获得帮助内容
## 根据ID获得帮助分类
> 接口名:`/HelpContentRest/getHelpContentById`
> 接口名:`/HelpCategoryRest/getHelpCategoryById`
### 入参
``` json
{
"id":44
"id":46
}
```
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|id|int|44|帮助内容记录ID|
|id|int|46|帮助分类记录ID|
---------------------
### 返回
... ... @@ -129,52 +129,38 @@ or
{
"code": 200,
"data": {
"categoryId": 13,
"content": "如订单未选择发票需要补寄,请您联系有货客服,我们可以为您补开三个自然月内订单的发票,但是需运费到付。",
"createTime": 1455438073,
"id": 44,
"categoryName": "订单问题2期项目",
"createTime": 1456281715,
"id": 46,
"parentId": 0,
"platform": [
"iphone",
"android",
"h5"
"android"
],
"title": "补开发票",
"updateTime": 1455438842
"updateTime": 1456283370
},
"message": "Help Content"
"message": "Help Category"
}
or
{
"code":400
"message":"Id is null"
}
```
## 获取所有帮助内容
## 根据父id获取帮助分类
> 接口名:`/HelpContentRest/getAllHelpContent`
> 接口名:`/HelpCategoryRest/getCategoryListByPid`
### 入参
``` json
{
"categoryId":13,
"platform":"iphone,android"
}
or
{
"categoryId":13,
}
or
{
"platform":"iphone,android"
"parentId":0
}
or
{ }
```
注意:如果不传入参数,必须传入`{}`
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|categoryId|int|13|分类ID(可选)|
|platform|String|iphone,android|显示平台(可选)|
|parentId|int|0|父分类ID|
---------------------
### 返回
... ... @@ -184,82 +170,72 @@ or
"code": 200,
"data": [
{
"categoryId": 13,
"content": "如订单未选择发票需要补寄,请您联系有货客服,我们可以为您补开三个自然月内订单的发票,但是需运费到付。",
"createTime": 1455438073,
"id": 44,
"platform": "iphone,android,h5",
"status": 1,
"title": "补开发票",
"updateTime": 1455438842
},
{
"categoryId": 13,
"content": "4",
"createTime": 1437566047,
"id": 17,
"categoryName": "订单问题",
"createTime": 1437544209,
"id": 12,
"parentId": 0,
"platform": "iphone,android",
"status": 1,
"title": "3",
"updateTime": 0
},
{
"categoryId": 13,
"content": "3",
"createTime": 1437566035,
"categoryName": "购物问题",
"createTime": 1437544351,
"id": 16,
"parentId": 0,
"platform": "iphone,android",
"status": 1,
"title": "2",
"updateTime": 0
},
{
"categoryId": 13,
"content": "订单生成后无法修改收货人信息,请您联系有货客服处理。",
"createTime": 1437562842,
"id": 13,
"categoryName": "其他问题",
"createTime": 1437544406,
"id": 20,
"parentId": 0,
"platform": "iphone,android",
"status": 1,
"title": "修改订单地址/电话",
"updateTime": 0
},
{
"categoryId": 13,
"content": "因为网络问题,信息更新有所延迟,导致无法显示,请您保持网络顺畅情况下,重新登录进入再查看。",
"createTime": 1437562792,
"id": 11,
"categoryName": "第四个一级",
"createTime": 1437547671,
"id": 24,
"parentId": 0,
"platform": "iphone,android",
"status": 1,
"title": "下单后看不到订单",
"updateTime": 0
},
{
"categoryId": 13,
"content": "目前暂不支持订单修改功能,请您联系有货客服为您处理。",
"createTime": 1437562767,
"id": 10,
"categoryName": "订单问题2期项目",
"createTime": 1456281715,
"id": 46,
"parentId": 0,
"platform": "iphone,android",
"status": 1,
"title": "订单内容的修改",
"updateTime": 0
"updateTime": 1456283370
},
{
"categoryId": 13,
"content": "在线支付订单未付款2小时内会自动取消,付款成功后需联系有货客服取消订单,货到付款订单未发货前可以进入“我的订单”自行取消订单。",
"createTime": 1437545220,
"id": 1,
"categoryName": "订单问题",
"createTime": 1456284113,
"id": 48,
"parentId": 0,
"platform": "iphone,android",
"status": 1,
"title": "取消订单",
"updateTime": 1437548510
"updateTime": 0
}
],
"message": "All Help Content Platform List"
"message": "Help Category List"
}
or
{
"code":400
"message":"分类ID无效"
}
```
## 删除帮助内容
> 接口名:`/HelpContentRest/deleteHelpContent`
> 接口名:`/HelpCategoryRest/addCategory`
### 入参
``` json
... ...