Authored by liqingzhong

接口文档更新

... ... @@ -7,62 +7,36 @@
### 返回
``` json
{
"code": 200,
"data": {
"appVersionClientType": {
"android": "安卓手机",
"androidpad": "安卓Pad",
"ipad": "IOS Pad",
"iphone": "IOS手机"
},
"list": [
{
"clientType": "iphone,android,ipad,androidpad",
"content": "asdfasdfasdf",
"createTime": 1457069079,
"id": 5,
"status": 0,
"updateTime": 0,
"url": "adsfasdfasd",
"version": "sdfasdasdfasd"
},
{
"clientType": "iphone",
"content": "您有新版本更新噢ytjhgjllllll",
"createTime": 1445239945,
"id": 4,
"status": 1,
"updateTime": 1457009285,
"url": "https://itunes.apple.com/cn/app/yoho!-you-huo-nian-qing-ren/id490655927?mt=8",
"version": "V3.1.1"
}
]
},
"md5": "edc6647bf812bd5f8a211a1299c095c6",
"message": "操作成功"
}
```
## 新增页面 返回app设备类型
> 'version/versionAddPage'
### 返回
``` json
{
"code": 200,
"data": {
"appVersionClientType": {
"android": "安卓手机",
"androidpad": "安卓Pad",
"ipad": "IOS Pad",
"iphone": "IOS手机"
}
},
"md5": "46dedd3dade80654ffe0f71462758e48",
"message": "操作成功"
"code": 200,
"data": {
"list": [
{
// 客户端类型
"clientType": "android,ios",
// 内容
"content": "开始升级!",
// 创建时间
"createTime": 1458615109,
// 主键
"id": 6,
// 状态
"status": 0,
// 更新时间
"updateTime": 1458617605,
// 链接
"url": "http://www.yoho.service.com",
// 版本号
"version": "3.6"
}
],
"page": 1,
"size": 10,
"total": 6,
"totalPage": 1
},
"md5": "d028547305baa3cd0f79aefe56a0fda2",
"message": "操作成功"
}
```
... ... @@ -74,16 +48,15 @@
-----------------------------------------------------------
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|version |是 |string |3.2 |版本号 |
|clientType |是 |String |android |类别 |
|content |是|String |升级啦!|内容|
|url |是 |String |http://www.yoho.com |链接|
|status |是|byte |1|状态|
|version |是 |string |3.2 |版本号 |
|clientType |是 |String |android |类别 |
|content |是 |String |升级啦! |内容|
|url |是 |String |http://www.yoho.com |链接 |
|status |是 |byte |1 |状态 |
### 返回
``` json
{
"code": 200,
"data": [],
... ... @@ -107,32 +80,21 @@
### 返回
``` json
{
"code": 200,
"data": {
"appVersionClientType": {
"android": "安卓手机",
"androidpad": "安卓Pad",
"ipad": "IOS Pad",
"iphone": "IOS手机"
},
"id": 6,
"info": {
"clientType": "android",
"content": "升级啦!",
"createTime": 1458615109,
"id": 6,
"status": 1,
"updateTime": 0,
"url": "http://www.yoho.com",
"version": "3.5"
}
},
"md5": "3db483fbf4b2e8186d1abe901abb6ba6",
"message": "操作成功"
{
"code": 200,
"data": {
"clientType": "iphone",
"content": "友情提醒:你有新版本可以升级啦~~",
"createTime": 1435222979,
"id": 2,
"status": 1,
"updateTime": 1444894886,
"url": "https://itunes.apple.com/cn/app/yoho!-you-huo-nian-qing-ren/id490655927?mt=8",
"version": "3.7.1"
},
"md5": "2c75b3d55bbeec487c7f07c1df094b4b",
"message": "操作成功"
}
```
## 开启、关闭提醒
... ... @@ -177,7 +139,6 @@
|status |是|byte |1|状态|
``` json
{
"clientType": "android,ios",
"content": "开始升级!",
... ... @@ -186,7 +147,6 @@
"url": "http://www.yoho.service.com",
"version": "3.6"
}
```
### 返回
... ... @@ -199,4 +159,4 @@
"message": "修改成功"
}
```
\ No newline at end of file
```
... ...
... ... @@ -7,8 +7,10 @@
-----------------------------------------------------------
|参数名 |必填 |类型 |示例值 |描述 |
|------ |---- |---- |------ |---- |
|platform |否 |string | 1 |类别 1:手机 2:ipad|
|status |否 |string |0 |0:关闭;1:开启 |
|platform |否 |string | 1 |类别 1:手机 2:ipad|
|status |否 |string |0 |0:关闭;1:开启 |
|size |否 |int |10 |每页大小 |
|page |否 |int |1 |第几页 |
### 返回
... ... @@ -102,7 +104,7 @@
|platform |类别1,"手机";2,"ipad"|String|1|是|
|orderBy |排序,php默认为0|String|1|否|
|status |是否开启1:开启;0:关闭|byte|1|是|
|zipUrl |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip||
|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|是|
... ... @@ -150,7 +152,7 @@
|platform |类别1,"手机";2,"ipad"|String|1|是|
|orderBy |排序,php默认为0|String|1|否|
|status |是否开启1:开启;0:关闭|byte|1|是|
|zipUrl |压缩包链接|String|img01/2015/08/19/06/015dce5b3564c67edf864de54510e30080.zip||
|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|是|
... ...