Changes between Initial Version and Version 1 of app2.0/facade


Ignore:
Timestamp:
02/04/2015 06:05:06 PM (11 years ago)
Author:
pengzhanxuan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • app2.0/facade

    v1 v1  
     1[[ TOC]] 
     2 
     3= 组合给复杂页面渲染数据的接口 = 
     4 
     5== 首页数据接口 == 
     6 
     7> facade/index.do 
     8 
     9**说明**     
     10 
     11获取推荐首页的所有爆料 + 推荐位(自定义排序) + 精选试用 + 精选优惠券 
     12 
     13**请求参数** 
     14 
     15* pageNo 
     16* pageSize 
     17 
     18**返回** 
     19 
     20{{{#!java 
     21result { 
     22        status: 1 
     23        pageNo: 1 
     24        pageSize: 20, 
     25        total: 100, 
     26        pageTotal: 5, 
     27        msg: '请求成功', 
     28        data: [$indexVo] 
     29} 
     30}}} 
     31 
     32---------- 
     33 
     34== 广场数据结构 == 
     35 
     36> facade/sunplaza.do 
     37 
     38**说明** 
     39 
     40获取广场首页需要的内容 
     41 
     42**参数** 
     43 
     44**返回** 
     45 
     46{{{#!java 
     47result { 
     48        status: 1 
     49        msg: '请求成功', 
     50        data:{ 
     51            sunplazaEntrys: [$sunplazaEntry], 
     52            hotSpecial: $special, 
     53            activitys: $setupActivity, 
     54            gift: $gift,  // 优惠券 
     55            trial: $trial, 
     56            hotTopics: [$topic] 
     57        } 
     58} 
     59}}} 
     60 
     61 
     62== 终端页数据接口 == 
     63 
     64> facade/topicDetail.do 
     65 
     66**说明** 
     67 
     68获取爆料终端页的详细内容 
     69 
     70**参数** 
     71 
     72* topicId 
     73 
     74**返回** 
     75 
     76{{{#!java 
     77result { 
     78        status: 1 
     79        msg: '请求成功', 
     80        data:{ 
     81            topic: $topic, 
     82            purchasings: [$purchasing] 
     83        } 
     84} 
     85}}}