Authored by wei

更新格式

# 入口管理
## 首页列表
'entrance/selectEntranceList'
### 入参
-----------------------------------------------------------
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|platform |否 |string | 1 |类别 1:手机 2:ipad|
|status |否 |string |0 |0:关闭;1:开启 |
### 返回
``` json
{
"code": 200,
"data": {
"entranceManagementBos": [
{
"channelId": 2323,
"clickAfterImg": "34434",
"clickBeforeImg": "3434",
"createTime": 1457068575,
"entryName": "测试",
"gender": "1,3",
"id": 9,
"orderBy": 232,
"platform": "2",
"status": 0,
"url": "{\"action\":\"go.plus\",\"url\":\"http://admin.portal.yohobuy.com/operations/entrance/add\"}",
"zipUrl": "http://img12.static.yhbimg.com/yhb-img01/2016/03/04/05/02bdf3bf1da3405725be763540d6601144.jpg"
}
],
"platform_type": {
1: "手机",
2: "ipad"
}
},
"md5": "07b286e15d71960410eb84db52cd69bb"
}
```
-----------------------------
|参数名 |描述 |
|------ |---- |
|id |主键 |
|entrance_name |入口名称 |
|click_before_img|点击前的图片|
|click_after_img|点击后的图片|
|platform |类别1,"手机";2,"ipad"|
|order_by |排序,php默认为0|
|status |是否开启1:开启;0:关闭|
|zip_url |压缩包链接|
|channel_id|频道id,php默认为0|
|genter|平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|
|create_time|创建时间|
## 编辑页面展示
'entrance/entranceEditPage'
### 入参
-----------------------------------------------------------
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |是 |Integer | 5 |id|
### 返回
``` 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": "操作成功"
}
```
## 新增页面展示
'entrance/entranceAddPage'
### 返回
``` json
{
"code": 200,
"data": {
"gender": {
1: "手机",
2: "ipad"
},
"platform_type": {
1: "手机",
2: "ipad"
}
},
"md5": "37107214947a102a6f4c7ebbc4dfb88b",
"message": "操作成功"
}
```
## 更新入口信息
'entrance/updateEntrance'
### 入参
-----------------------------------------------------------
|参数名 |描述|类型 |示例值 |必填 |
|------ |---- |---- |------ |---- |
|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|否|
|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|是|
|create_time|创建时间|int|12312321|否|
### 返回
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "更新成功"
}
## 打开、关闭入口
'entrance/publishEntrance'
### 入参
-----------------------------------------------------------
|参数名 |描述|类型 |示例值 |必填 |
|------ |---- |---- |------ |---- |
|id |id |Integer | 5 |是|
|status |1:开启、0:关闭|byte| 1| 是|
### 返回
``` json
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "开启成功"
}
```
## 新增入口
'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|否|
|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|是|
|create_time|创建时间|int|12312321|否|
``` 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
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "新增成功"
}
```
# 入口管理
## 首页列表
> 'entrance/selectEntranceList'
### 入参
-----------------------------------------------------------
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|platform |否 |string | 1 |类别 1:手机 2:ipad|
|status |否 |string |0 |0:关闭;1:开启 |
### 返回
``` json
{
"code": 200,
"data": {
"entranceManagementBos": [
{
"channelId": 2323,
"clickAfterImg": "34434",
"clickBeforeImg": "3434",
"createTime": 1457068575,
"entryName": "测试",
"gender": "1,3",
"id": 9,
"orderBy": 232,
"platform": "2",
"status": 0,
"url": "{\"action\":\"go.plus\",\"url\":\"http://admin.portal.yohobuy.com/operations/entrance/add\"}",
"zipUrl": "http://img12.static.yhbimg.com/yhb-img01/2016/03/04/05/02bdf3bf1da3405725be763540d6601144.jpg"
}
],
"platform_type": {
1: "手机",
2: "ipad"
}
},
"md5": "07b286e15d71960410eb84db52cd69bb"
}
```
-----------------------------
|参数名 |描述 |
|------ |---- |
|id |主键 |
|entrance_name |入口名称 |
|click_before_img|点击前的图片|
|click_after_img|点击后的图片|
|platform |类别1,"手机";2,"ipad"|
|order_by |排序,php默认为0|
|status |是否开启1:开启;0:关闭|
|zip_url |压缩包链接|
|channel_id|频道id,php默认为0|
|genter|平台列表 "1,3":"男";"2,3":"女";"1,2,3":"通用"|
|create_time|创建时间|
## 编辑页面展示
> 'entrance/entranceEditPage'
### 入参
-----------------------------------------------------------
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|id |是 |Integer | 5 |id|
### 返回
``` 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": "操作成功"
}
```
## 新增页面展示
> 'entrance/entranceAddPage'
### 返回
``` json
{
"code": 200,
"data": {
"gender": {
1: "手机",
2: "ipad"
},
"platform_type": {
1: "手机",
2: "ipad"
}
},
"md5": "37107214947a102a6f4c7ebbc4dfb88b",
"message": "操作成功"
}
```
## 更新入口信息
> 'entrance/updateEntrance'
### 入参
-----------------------------------------------------------
|参数名 |描述|类型 |示例值 |必填 |
|------ |---- |---- |------ |---- |
|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|否|
|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|否|
### 返回
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "更新成功"
}
## 打开、关闭入口
> 'entrance/publishEntrance'
### 入参
-----------------------------------------------------------
|参数名 |描述|类型 |示例值 |必填 |
|------ |---- |---- |------ |---- |
|id |id |Integer | 5 |是|
|status |1:开启、0:关闭|byte| 1| 是|
### 返回
``` json
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "开启成功"
}
```
## 新增入口
> '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|否|
|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|否|
``` 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
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "新增成功"
}
```
... ...