Changes between Initial Version and Version 1 of WikiStart/web-intf


Ignore:
Timestamp:
09/28/2012 11:31:06 AM (14 years ago)
Author:
hejingdong
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart/web-intf

    v1 v1  
     1== 1.首页接口---主题列表 == 
     2原型  http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ 
     3结构类似: 
     4 
     5{{{ 
     6{ 
     7    "total":100, 
     8    "pageIndex":1, 
     9    "pageSize":10, 
     10    "topics":[ 
     11        { 
     12            "id":10, 
     13            "bigImg":"http:xxxx", 
     14            "name":"topicName", 
     15            "description":"topic descript" 
     16        }, 
     17        { 
     18            "id":11, 
     19            "bigImg":"http:xxxx", 
     20            "name":"topicName", 
     21            "description":"topic descript" 
     22        } 
     23    ] 
     24} 
     25 
     26}}} 
     27返回参数说明:[[BR]] 
     28total:主题总数量[[BR]] 
     29pageIndex:分页用页码[[BR]] 
     30pageSize:分页用每页数量[[BR]] 
     31topics:主题数组[[BR]] 
     32id:主题的id[[BR]] 
     33bigImg:主题图片[[BR]] 
     34name:主题名称[[BR]] 
     35description:主题描述 
     36 
     37== 2.主题接口 == 
     38原型 http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ 
     39 
     40{{{ 
     41{ 
     42    "total":20, 
     43    "pageIndex":1, 
     44    "pageSize":10, 
     45    "products":[ 
     46        { 
     47            "id":10, 
     48            "bigImg":"http:xxxx", 
     49            "name":"productName", 
     50            "collectCount":1234 
     51        }, 
     52        { 
     53            "id":11, 
     54            "bigImg":"http:xxxx", 
     55            "name":"productName", 
     56            "collectCount":1234 
     57        } 
     58    ] 
     59} 
     60 
     61}}} 
     62 
     63返回参数说明:[[BR]] 
     64total:单品总数量[[BR]] 
     65pageIndex:分页用页码[[BR]] 
     66pageSize:分页用每页数量[[BR]] 
     67products:单品数组[[BR]] 
     68id:单品的id[[BR]] 
     69bigImg:单品图片[[BR]] 
     70name:单品名称[[BR]] 
     71collectCount:单品被收藏的数量[[BR]] 
     72 
     73== 3.单品库首页 == 
     74原型  http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ 
     75 
     76{{{ 
     77{ 
     78    "items":{ 
     79        "323":{ 
     80            "level":1, 
     81            "seq":1, 
     82            "name":"客厅", 
     83            "image":"http:xxxx", 
     84            "type":"node" 
     85        }, 
     86        "324":{ 
     87            "level":2, 
     88            "seq":2, 
     89            "name":"沙发", 
     90            "image":"http:xxxx", 
     91            "type":"node" 
     92        }, 
     93        "325":{ 
     94            "level":1, 
     95            "seq":1, 
     96            "name":"睡房", 
     97            "image":"http:xxxx", 
     98            "type":"node" 
     99        }, 
     100        "326":{ 
     101            "level":2, 
     102            "seq":2, 
     103            "name":"床", 
     104            "image":"http:xxxx", 
     105            "type":"node" 
     106        } 
     107    }, 
     108    "relations":{ 
     109        "$node id value1":[ 
     110            323, 
     111            324 
     112        ], 
     113        "$node id value2":[ 
     114            325, 
     115            326 
     116        ] 
     117    } 
     118} 
     119 
     120}}} 
     121返回参数说明:[[BR]] 
     122id:节点ID[[BR]] 
     123level:节点的层次,1表示根节点。[[BR]] 
     124seq:节点的顺序,同级节点之间的显示顺序。从1开始[[BR]] 
     125name:节点名称[[BR]] 
     126image:图片url[[BR]] 
     127type:节点类型,node表示该节点的下级还是一个节点,article表示该节点的下级已经是文章ID[[BR]] 
     128$node id value:节点ID的值。以节点ID的值作为key,该节点的子节点集合作为value,建立节点之间的关联关系,实现节点的向下遍历。[[BR]] 
     129     
     130 
     131== 4.单品库列表页-----搜索结果----猜你喜欢 == 
     132http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ 
     133 
     134{{{ 
     135{ 
     136    "total":100, 
     137    "pageIndex":1, 
     138    "pageSize":10, 
     139    "products":[ 
     140        { 
     141            "name":"法丽莎家具 欧式床 实木床 田园婚床 双人床 1.8 1.5米", 
     142            "price":"¥2699.00", 
     143            "oldPrice":"¥2899.00", 
     144            "collectCount":1234 
     145        }, 
     146        { 
     147            "name":"法丽莎家具 欧式床 实木床 田园婚床 双人床 1.8 1.5米", 
     148            "price":"¥2699.00", 
     149            "oldPrice":"¥2899.00", 
     150            "collectCount":1234 
     151        } 
     152    ] 
     153} 
     154 
     155}}} 
     156返回参数说明:[[BR]] 
     157total:单品总数量[[BR]] 
     158pageIndex:分页用页码[[BR]] 
     159pageSize:分页用每页数量[[BR]] 
     160products:单品数组[[BR]] 
     161products:产品数组[[BR]] 
     162name:产品名[[BR]] 
     163price:当前价格、优惠价格[[BR]] 
     164oldPrice:旧价格[[BR]] 
     165collectCount:收藏数量[[BR]] 
     166 
     167 
     168 
     169== 5.测试页 == 
     170http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ 
     171 
     172{{{ 
     173{ 
     174    "count":6, 
     175    "tests":[ 
     176        { 
     177            "testId":1, 
     178            "testDescription":"请选择上述两款产品中你较喜欢的产品", 
     179            "MultiSelect":0, 
     180            "selection":[ 
     181                { 
     182                    "selectionId":11, 
     183                    "image":"http://xxx" 
     184                }, 
     185                { 
     186                    "selectionId":12, 
     187                    "image":"http://xxx" 
     188                } 
     189            ] 
     190        }, 
     191        { 
     192            "testId":2, 
     193            "testDescription":"请选择上述两款产品中你较喜欢的产品", 
     194            "MultiSelect":1, 
     195            "selection":[ 
     196                { 
     197                    "selectionId":21, 
     198                    "image":"http://xxx" 
     199                }, 
     200                { 
     201                    "selectionId":22, 
     202                    "image":"http://xxx" 
     203                } 
     204            ] 
     205        } 
     206    ] 
     207} 
     208 
     209}}} 
     210返回参数说明:[[BR]] 
     211count:测试页数量[[BR]] 
     212tests:测试页数组[[BR]] 
     213testId:测试页id[[BR]] 
     214testDescription:测试页[[BR]] 
     215MultiSelect:是否多选,1是,0否[[BR]] 
     216selection:选项数组[[BR]] 
     217selectionId:选项id[[BR]] 
     218image:图片url[[BR]] 
     219 
     220 
     221== 6.终端页 == 
     222http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.0/ 
     223 
     224{{{ 
     225{ 
     226    "productName":"法丽莎家具 欧式床 实木床 田园婚床 双人床 1.8 1.5米", 
     227    "price":"¥2699.00", 
     228    "oldPrice":"¥2899.00", 
     229    "seller":"发丽莎家居旗舰店", 
     230    "image":[ 
     231        "http://xxxx", 
     232        "http://xxxx", 
     233        "http://xxxx" 
     234    ], 
     235    "commentCount":1234, 
     236    "comments":[ 
     237        { 
     238            "nickName":"b_小贝贝", 
     239            "time":"9月3日 15:23", 
     240            "face":"http://asdfasdf", 
     241            "content":"她家的包包看起来还不错,有谁买过的,求推荐!" 
     242        }, 
     243        { 
     244            "nickName":"Blanch_213", 
     245            "time":"9月3日 15:53", 
     246            "face":"http://asdfasdf", 
     247            "content":"简单,但太普遍了!" 
     248        } 
     249    ] 
     250} 
     251 
     252}}} 
     253返回参数说明:[[BR]] 
     254productName:产品名[[BR]] 
     255price:价格、优惠价格 [[BR]] 
     256oldPrice:原价格[[BR]] 
     257seller:商家[[BR]] 
     258image:图片数组[[BR]] 
     259commentCount:评论总数[[BR]] 
     260comments:评论数组[[BR]] 
     261nickName:昵称[[BR]] 
     262time:评论时间[[BR]] 
     263face:头像[[BR]] 
     264content:评论内容[[BR]] 
     265 
     266== 7.用户信息 == 
     267 
     268{{{ 
     269http://trac.pc.com.cn/mobile/pototype/ideas/youjiapin/req1.0.1/ 
     270{ 
     271    "username":"imoveto1", 
     272    "session":"xxxx", 
     273    "userid":"userid", 
     274    "remark":"坚持世上一切美好的事物,哈哈!", 
     275    "face":"http://xxxx", 
     276    "collectCount":34, 
     277    "readHistory":134 
     278} 
     279}}} 
     280 
     281username:用户名[[BR]] 
     282session:session[[BR]] 
     283userid:用户id[[BR]] 
     284remark:备注[[BR]] 
     285face:头像[[BR]] 
     286collectCount:收藏夹数量[[BR]] 
     287readHistory:浏览历史[[BR]] 
     288