Authored by liqingzhong

入口管理,文档更新

... ... @@ -53,10 +53,11 @@
}
```
## 编辑页面展示
## 根据 ID 加载实体
> 'entrance/entranceEditPage'
### 入参
-----------------------------------------------------------
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
... ... @@ -64,61 +65,29 @@
### 返回
``` json
{
"code": 200,
"data": {
"gender": {
1: "手机",
2: "ipad"
},
"id": 4,
"list": {
"channelId": 4,
"clickAfterImg": "lif2.png",
"clickBeforeImg": "lif1.png",
"createTime": 0,
"entryName": "家居",
"gender": "1,2,3",
"id": 4,
"orderBy": 4,
"platform": "1",
"status": 1,
"url": "{\"action\":\"go.gender\",\"url\":\"http://m.yohobuy.com/life.html\"}",
"zipUrl": "http://img12.static.yhbimg.com/yhb-img01/2015/08/19/06/025dce5b3564c67edf864de54510e30080.zip"
},
"platform_type": {
1: "手机",
2: "ipad"
}
},
"md5": "45916a47a02eea210394dfb48ea3f06d",
"message": "操作成功"
"code": 200,
"data": {
"channelId": 1,
"clickAfterImg": "cd.png",
"clickBeforeImg": ".png",
"createTime": 1458272012,
"entryName": "户内",
"gender": "1,2,3",
"id": 10,
"orderBy": 1,
"platform": "1",
"status": 0,
"url": "{\"action\":\"go.h5\",\"url\":\"http://s.yohobuy.com/girls.html\"}",
"zipUrl": "img02/2015/10/08/10/0114eb2c8581ab3bd58a488f9d73936201.jpg"
},
"md5": "517d012eca496b137a92dab289a8b72b",
"message": "操作成功"
}
```
## 新增页面展示
> 'entrance/entranceAddPage'
### 返回
``` json
{
"code": 200,
"data": {
"gender": {
1: "手机",
2: "ipad"
},
"platform_type": {
1: "手机",
2: "ipad"
}
},
"md5": "37107214947a102a6f4c7ebbc4dfb88b",
"message": "操作成功"
}
```
## 更新入口信息
> 'entrance/updateEntrance'
### 入参
... ... @@ -126,17 +95,16 @@
|参数名 |描述|类型 |示例值 |必填 |
|------ |---- |---- |------ |---- |
|id |id |Integer | 5 |是|
|entrance_name |入口名称|String| 测试入口| 是|
|click_before_img|点击前的图片|String|boy1.png|是|
|click_after_img|点击后的图片|String|boy2.png|是|
|url|链接|String|{"action":"go.gender","url":"http://m.yohobuy.com/boys.html"}|是|
|platform |类别1,"手机";2,"ipad"|String|1|是|
|order_by |排序,php默认为0|String|1|否|
|entryName |入口名称|String| 测试入口| 是|
|clickBeforeImg|点击前的图片|String|boy1.png|是|
|clickAfterImg|点击后的图片|String|boy2.png|是|
|url |链接|String|{"action":"go.gender","url":"http://m.yohobuy.com/boys.html"}|是|
|platform |类别1,"手机";2,"ipad"|String|1|是|
|orderBy |排序,php默认为0|String|1|否|
|status |是否开启1:开启;0:关闭|byte|1|是|
|zip_url |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip|否|
|channel_id|频道id,php默认为0|int|12|否|
|genter|平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|String|1,2,3|是|
|create_time|创建时间|int|12312321|否|
|zipUrl |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip|否|
|channelId |频道id,php默认为0|int|12|否|
|gender |平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|String|1,2,3|是|
### 返回
{
... ... @@ -147,6 +115,7 @@
}
## 打开、关闭入口
> 'entrance/publishEntrance'
### 入参
... ... @@ -170,35 +139,21 @@
> 'entrance/insertEntrance'
### 入参
-----------------------------------------------------------
|参数名 |描述|类型 |示例值 |必填 |
|------ |---- |---- |------ |---- |
|entrance_name |入口名称|String| 测试入口| 是|
|click_before_img|点击前的图片|String|boy1.png|是|
|click_after_img|点击后的图片|String|boy2.png|是|
|url|链接|String|{"action":"go.gender","url":"http://m.yohobuy.com/boys.html"}|是|
|platform |类别1,"手机";2,"ipad"|String|1|是|
|order_by |排序,php默认为0|String|1|否|
|entryName |入口名称|String| 测试入口| 是|
|clickBeforeImg|点击前的图片|String|boy1.png|是|
|clickAfterImg|点击后的图片|String|boy2.png|是|
|url |链接|String|{"action":"go.gender","url":"http://m.yohobuy.com/boys.html"}|是|
|platform |类别1,"手机";2,"ipad"|String|1|是|
|orderBy |排序,php默认为0|String|1|否|
|status |是否开启1:开启;0:关闭|byte|1|是|
|zip_url |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip|否|
|channel_id|频道id,php默认为0|int|12|否|
|genter|平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|String|1,2,3|是|
|create_time|创建时间|int|12312321|否|
|zipUrl |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip|否|
|channelId |频道id,php默认为0|int|12|否|
|gender |平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|String|1,2,3|是|
``` json
{
"channelId": "1",
"clickAfterImg": "cd.png",
"clickBeforeImg": ".png",
"entryName": "户内",
"gender": "1,2,3",
"orderBy": "1",
"platform": "1",
"status": "0",
"url": "{\"action\":\"go.h5\",\"url\":\"http://s.yohobuy.com/girls.html\"}",
"zipUrl": "img02/2015/10/08/10/0114eb2c8581ab3bd58a488f9d73936201.jpg"
}
```
### 返回
``` json
... ...