| Version 1 (modified by caomenglin, 11 years ago) (diff) |
|---|
医美2.0.0接口文档
mrobot代理环境说明:
192.168.10.198:1080(192.168.74.80)
192.168.10.199 端口为 1080 连的是dev40的开发环境(192.168.75.40)
ps:未到qa阶段,连开发环境调试(若仅做代理,mrobot不存在真正的处理文件,只作转发的功能)
1.广告
1.1精选推荐
(mrobot已完成,请连开发机进行测试)
开发环境: http://dev15.pclady.com.cn/app/essenceList.jsp
线上环境: http://plastic.pclady.com.cn/app/essenceList.jsp
mrobot地址: http://mrobot.pclady.com.cn/s-900/yimei/cms/index.xsp
说明
广告接口
缓存时间
15分钟
提交方式
GET
是否登录
否
数据来源
整形库编辑后台
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 | 说明 |
|---|---|---|---|---|---|
| pageNo | 页数 | int | 1 | 是 | 为1时返回主页的内容 |
| pageSize | 页面大小 | int | 10 | 是 | |
| deviceID | 设备ID | string | "" | 是 | 应用端需要 |
| city | 城市 | String | "" | 否 | mrobot请求主页数据时用到 |
| project | 感兴趣的项目 | String | "" | 否 | mrobot请求主页数据时用到 |
返回
{
"status":0,
"msg":"请求成功",
"pageNo": 1,
"pageSize": 20,
"total": 100,
"sysTime":"系统当前时间YYYY-MM-DD HH:mm:ss
"data":[{
"contentID":"",
"nickName":"",
"userID":"",
"type":””,
"imageUrl":"",
"title":"",
"commentCount":1,
"laudCount":1,
"hasLaud":1",
"isExample":0
}
],
"index":{
}
}
返回参数说明
| 参数名 | 参数含义 | 参数名 | 参数含意 |
|---|---|---|---|
| contentID | 内容ID | title | 标题 |
| nickName | 用户昵称 | userID | 用户ID,用于查看ta的主页 |
| type | 1:日记,2:帖子 | imageUrl | 推荐图 |
| commentCount | 评论数 | laudCount | 点赞数 |
| index | 当pageno=1时,返回首页接口数据 | hasLaud | 是否点赞,1:已点赞,0:未点赞 |
| isExample | 当type==2时,要判断是否为旧案例数据,isExample==1时为旧案例数据,默认为0 |
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)