| Version 5 (modified by pengzhanxuan, 11 years ago) (diff) |
|---|
组合给复杂页面渲染数据的接口
首页数据接口
说明
获取推荐首页的所有爆料 + 推荐位(自定义排序) + 精选试用 + 精选优惠券
请求方式
GET
是否需要登录
否
缓存方式
接口缓存
缓存时间
300秒
请求参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| pageNo | 页数 | int | 1 | 否 |
| pageSize | 页面大小 | int | 10 | 否 |
返回
result {
status: 1
pageNo: 1
pageSize: 20,
total: 100,
pageTotal: 5,
msg: '请求成功',
data: [$indexVo]
}
广场数据接口
说明
获取广场首页需要的内容
请求方式
GET
是否需要登录
否
缓存方式
接口缓存
缓存时间
300秒
参数
返回
result {
status: 1
msg: '请求成功',
data:{
sunplazaEntrys: [$sunplazaEntry],
hotSpecial: $setupSpecial,
activitys: $setupActivity,
gift: $setupGift, // 优惠券
trial: $trial,
hotTopics: [$topic]
}
}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)