wiki:app2.0/facade

Version 1 (modified by pengzhanxuan, 11 years ago) (diff)

--

TOC?

组合给复杂页面渲染数据的接口

首页数据接口

facade/index.do

说明

获取推荐首页的所有爆料 + 推荐位(自定义排序) + 精选试用 + 精选优惠券

请求参数

  • pageNo
  • pageSize

返回

result {
        status: 1
        pageNo: 1
        pageSize: 20,
        total: 100,
        pageTotal: 5,
        msg: '请求成功',
        data: [$indexVo]
}

广场数据结构

facade/sunplaza.do

说明

获取广场首页需要的内容

参数

返回

result {
        status: 1
        msg: '请求成功',
        data:{
            sunplazaEntrys: [$sunplazaEntry],
            hotSpecial: $special,
            activitys: $setupActivity,
            gift: $gift,  // 优惠券
            trial: $trial,
            hotTopics: [$topic]
        }
}

终端页数据接口

facade/topicDetail.do

说明

获取爆料终端页的详细内容

参数

  • topicId

返回

result {
        status: 1
        msg: '请求成功',
        data:{
            topic: $topic,
            purchasings: [$purchasing]
        }
}