Changes between Version 1 and Version 2 of pconline_chanpingku/intf


Ignore:
Timestamp:
08/02/2012 10:41:59 AM (14 years ago)
Author:
daiyuwen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pconline_chanpingku/intf

    v1 v2  
    1111 3. [#point300 配合的接口(产品库接口及编辑出的接口) ] 
    1212 
     13 3.1 [#point301 产品终端页报价 ] 
     14 
     15 3.2 [#point302 产品资讯接口 ] 
     16 
     17 3.3 [#point303 某产品类型的品牌列表 ] 
     18 
     19 3.4 [#point304 产品发送评论  ] 
     20 
     21 3.5 [#point305 显示分类排名前三的品牌 ] 
     22 
     23 3.6 [#point306 产品搜索热点推荐(编辑出) ] 
     24 
     25 3.7 [#point307 推荐品牌(编辑出) ] 
     26 
     27 
    1328 4. [#point400 测试环境接口配置  ] 
    1429 
    1530 5. [#point500 修改历史 ] 
    16 === 2.1 [=#point201 产品终端页报价 ] === 
     31 
     32=== 3.1 [=#point301 产品终端页网上比价 ] === 
     33{{{ 
     34 
     35    HTTP请求方式:get 
     36    请求参数: 
     37           productID: 产品id 
     38    返回参数: 
     39        [{ 
     40            storeName:"卓越", 
     41            price:"2499.0", 
     42            shippingRate:"购物满29元免运费", 
     43            buyLink:"http://XXXX" 
     44        },{ 
     45            storeName:"卓越", 
     46            price:"2499.0", 
     47            shippingRate:"购物满29元免运费", 
     48            buyLink:"http://XXXX" 
     49        }] 
     50   备注: 
     51        商城名称:storeName 
     52       报价:price 
     53       运费:shippingRate 
     54       购买:buyLink 
     55  网页版类似页面:http://product.pconline.com.cn/pdlib/pk/price410030.html 
     56  效果图: 
     57   
     58}}} 
     59 
     60 
     61=== 3.2 [=#point302 产品资讯接口 ] === 
     62{{{ 
     63 
     64    HTTP请求方式:get 
     65    请求参数: 
     66        productId:产品id  
     67      pageNo:第几页 
     68      pageSize:分页数 
     69 
     70    返回参数 
     71        { 
     72            "productId":1021, 
     73            "total":20, 
     74            "articleList":[ 
     75                { 
     76                    "id ":1234, 
     77                    "title":"苦逼0", 
     78                    "channel":"评测", 
     79                    "image":"http://xxdxx.jpg" 
     80                }, 
     81                { 
     82                    "id ":1234, 
     83                    "title":"苦逼0", 
     84                    "channel":"导购", 
     85                    "image":"http://xxdxx.jpg" 
     86                } 
     87            ] 
     88        } 
     89 
     90    备注: 
     91        id 文章id 
     92       title 标题 
     93        channel 文章栏目,"评测"还是“行情” 
     94        image 导读图 
     95    网页版类似页面:product.pconline.com.cn/mobile/nokia/410030_review.html 
     96  效果图: 
     97 
     98 
     99}}} 
     100 
     101=== 3.3 [=#point303 某产品类型的品牌列表 ] === 
     102{{{ 
     103 
     104                HTTP请求方式:get 
     105                请求参数: 
     106                typeID: 产品类型id,例如手机20937 
     107             
     108        返回参数: 
     109  { 
     110      "typeId": 20937, 
     111      "totalBrands": { 
     112          "total": 20, 
     113          "sections": [ 
     114              { 
     115                  "brands": [ 
     116                      { 
     117                          "id": 693, 
     118                          "logo": "http://img0.pcauto.com.cn/pcauto/1112/07/1743776_ACS5050.png", 
     119                          "letter": "A", 
     120                          "name": "APPLE" 
     121                      }, 
     122                      { 
     123                          "id": 693, 
     124                          "logo": "http://img0.pcauto.com.cn/pcauto/1112/07/1743776_ACS5050.png", 
     125                          "letter": "A", 
     126                          "name": "A" 
     127                      } 
     128                  ], 
     129                  "index": "A", 
     130                  "rowNum": 3 
     131              }, 
     132              { 
     133                  "brands": [ 
     134                      { 
     135                          "id": 723, 
     136                          "logo": "http://img0.pcauto.com.cn/pcauto/1203/27/1875156_babosi5050png.png", 
     137                          "letter": "B", 
     138                          "name": "B品牌1" 
     139                      }, 
     140                      { 
     141                          "id": 723, 
     142                          "logo": "http://img0.pcauto.com.cn/pcauto/1203/27/1875156_babosi5050png.png", 
     143                          "letter": "B", 
     144                          "name": "B品牌2" 
     145                      } 
     146                  ], 
     147                  "index": "B", 
     148                  "rowNum": 15 
     149              } 
     150          ] 
     151      } 
     152  } 
     153 
     154 
     155  typeId :产品类型id,例如手机20937       
     156        total:版块集合内部元素的总数 
     157        brands:版块内品牌集合 
     158        id:品牌id 
     159        logo:品牌logo图片url 
     160        letter;品牌名称首字母 
     161        name:品牌名称 
     162        sections:品牌的总集合的分块,按字母A-Z顺序分 
     163        index:分块所属的字母 
     164        rowNum:分块内品牌数量 
     165         
     166  备注: 
     167    网页版类似页面http://product.pconline.com.cn/notebook/ 
     168 
     169}}} 
     170 
     171=== 3.4 [=#point304 产品发送评论 ] === 
    17172{{{ 
    18173 
     
    20175}}} 
    21176 
     177=== 3.5 [=#point305 显示分类排名前三的品牌 ] === 
     178{{{ 
     179 
     180 
     181}}} 
     182 
     183=== 3.6 [=#point306 产品搜索热点推荐(编辑出) ] === 
     184{{{ 
     185 
     186 
     187}}} 
     188 
     189 
     190=== 3.7 [=#point307 推荐品牌(编辑出) ] === 
     191{{{ 
     192 
     193 
     194}}} 
     195 
     196 
    22197== 5. [=#point500 修改历史 ] ==