Changes between Version 2 and Version 3 of pcauto_chexingku/web-intf


Ignore:
Timestamp:
08/02/2012 01:51:00 PM (14 years ago)
Author:
daiyuwen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_chexingku/web-intf

    v2 v3  
    3737 3. [#point300 配合的接口(产品库接口及编辑出的接口) ] 
    3838 
    39  3.1 [#point301 产品终端页网上比价 ] 
    40  
    41  3.2 [#point302 产品资讯接口 ] 
    42  
    43  3.3 [#point303 某产品类型的品牌列表 ] 
    44  
    45  3.4 [#point304 产品发送评论  ] 
    46  
    47  3.5 [#point305 显示分类排名前三的品牌 ] 
    48  
    49  3.6 [#point306 产品搜索热点推荐(编辑出) ] 
    50  
    51  3.7 [#point307 推荐品牌(编辑出) ] 
     39 3.1 [#point301 通过品牌ID得到车系列表 ] 
     40 
     41 3.2 [#point302 通过车系ID得到车型列表 ] 
     42 
     43 3.3 [#point303 通过价格返回车系列表(按首字母顺序排) ] 
     44 
     45 3.4 [#point304 通过车系ID得到相关文章  ] 
     46 
     47 3.5 [#point305 发表车系评论 ] 
     48 
     49 3.6 [#point306 口碑 ] 
     50 
     51 3.7 [#point307 购车计算器 ] 
    5252 
    5353 
     
    445445 
    446446 
    447 === 3 [=#point300 配合的接口(产品库接口及编辑出的接口) ] === 
    448 此部分的接口由产品和编辑的同事配合 
     447=== 3 [=#point300 配合的接口(车型库接口及编辑出的接口) ] === 
     448此部分的接口由车型库和编辑的同事配合 
    449449 
    450450=== 3.1 [=#point301 产品终端页网上比价 ] === 
    451451{{{ 
    452452 
    453     HTTP请求方式:get 
    454     请求参数: 
    455            productID: 产品id 
    456     返回参数: 
    457         [{ 
    458             storeName:"卓越", 
    459             price:"2499.0", 
    460             shippingRate:"购物满29元免运费", 
    461             buyLink:"http://XXXX" 
    462         },{ 
    463             storeName:"卓越", 
    464             price:"2499.0", 
    465             shippingRate:"购物满29元免运费", 
    466             buyLink:"http://XXXX" 
    467         }] 
    468    备注: 
    469         商城名称:storeName 
    470        报价:price 
    471        运费:shippingRate 
    472        购买:buyLink 
    473   网页版类似页面:http://product.pconline.com.cn/pdlib/pk/price410030.html 
    474   效果图: 
    475    
    476 }}} 
    477  
    478  
    479 === 3.2 [=#point302 产品资讯接口 ] === 
    480 {{{ 
    481  
    482     HTTP请求方式:get 
    483     请求参数: 
    484         productId:产品id  
    485       pageNo:第几页 
    486       pageSize:分页数 
    487  
    488     返回参数 
    489         { 
    490             "productId":1021, 
    491             "total":20, 
    492             "articleList":[ 
    493                 { 
    494                     "id ":1234, 
    495                     "title":"苦逼0", 
    496                     "channel":"评测", 
    497                     "image":"http://xxdxx.jpg" 
    498                 }, 
    499                 { 
    500                     "id ":1234, 
    501                     "title":"苦逼0", 
    502                     "channel":"导购", 
    503                     "image":"http://xxdxx.jpg" 
    504                 } 
    505             ] 
    506         } 
    507  
    508     备注: 
    509         id 文章id 
    510        title 标题 
    511         channel 文章栏目,"评测"还是“行情” 
    512         image 导读图 
    513     网页版类似页面:product.pconline.com.cn/mobile/nokia/410030_review.html 
    514   效果图: 
    515  
    516  
    517 }}} 
    518  
    519 === 3.3 [=#point303 某产品类型的品牌列表 ] === 
    520 {{{ 
    521  
    522                 HTTP请求方式:get 
    523                 请求参数: 
    524                 typeID: 产品类型id,例如手机20937 
    525              
    526         返回参数: 
    527   { 
    528       "typeId": 20937, 
    529       "totalBrands": { 
    530           "total": 20, 
    531           "sections": [ 
    532               { 
    533                   "brands": [ 
    534                       { 
    535                           "id": 693, 
    536                           "logo": "http://img0.pcauto.com.cn/pcauto/1112/07/1743776_ACS5050.png", 
    537                           "letter": "A", 
    538                           "name": "APPLE" 
    539                       }, 
    540                       { 
    541                           "id": 693, 
    542                           "logo": "http://img0.pcauto.com.cn/pcauto/1112/07/1743776_ACS5050.png", 
    543                           "letter": "A", 
    544                           "name": "A" 
    545                       } 
    546                   ], 
    547                   "index": "A", 
    548                   "rowNum": 3 
    549               }, 
    550               { 
    551                   "brands": [ 
    552                       { 
    553                           "id": 723, 
    554                           "logo": "http://img0.pcauto.com.cn/pcauto/1203/27/1875156_babosi5050png.png", 
    555                           "letter": "B", 
    556                           "name": "B品牌1" 
    557                       }, 
    558                       { 
    559                           "id": 723, 
    560                           "logo": "http://img0.pcauto.com.cn/pcauto/1203/27/1875156_babosi5050png.png", 
    561                           "letter": "B", 
    562                           "name": "B品牌2" 
    563                       } 
    564                   ], 
    565                   "index": "B", 
    566                   "rowNum": 15 
    567               } 
    568           ] 
    569       } 
    570   } 
    571  
    572  
    573   typeId :产品类型id,例如手机20937       
    574         total:版块集合内部元素的总数 
    575         brands:版块内品牌集合 
    576         id:品牌id 
    577         logo:品牌logo图片url 
    578         letter;品牌名称首字母 
    579         name:品牌名称 
    580         sections:品牌的总集合的分块,按字母A-Z顺序分 
    581         index:分块所属的字母 
    582         rowNum:分块内品牌数量 
    583          
    584   备注: 
    585     网页版类似页面http://product.pconline.com.cn/notebook/ 
    586  
    587 }}} 
    588  
    589 === 3.4 [=#point304 产品发送评论 ] === 
    590 {{{ 
    591 HTTP请求方式:post 
    592 请求参数: 
    593   productId: 产品ID 
    594   score  :  分数 从1到5的整数 
    595   title  : 标题   
    596   advantage  :优点 
    597   deficiency   :缺点 
    598   summary           :总结 
    599   common_session_Id    :太平洋网络通行证的sessionId 若为空则匿名发评论 
    600    
    601 返回参数: 
    602   { 
    603   stats:"ok", 
    604   msg:"发送成功" 
    605   } 
    606    
    607   Stats发送状态,成功为ok,失败为error, 
    608   msg中显示提示的信息 ,例如必填字段未填,或者其他必要的提示等 
    609    
    610   备注: 
    611 网页版类似页面http://product.pconline.com.cn/mobile/samsung/485270_comment.html#dianping 
    612  
    613 }}} 
    614  
    615 === 3.5 [=#point305 显示分类排名前三的品牌 ] === 
    616 {{{ 
    617         HTTP请求方式:get 
    618         请求参数: 
    619         typeId :产品类型ID,逗号分割,例如手机20937,台式机20806 
    620  
    621         返回参数: 
    622         { 
    623                 "20937":["三星","APPLE","HTC"], 
    624                 "256567":["三星","APPLE","HTC"], 
    625                 "256568":["三星","APPLE","HTC"] 
    626         } 
    627         备注:返回的顺序按照排名顺序来排 
    628         排名顺序根据类似此报价页面的http://product.pconline.com.cn/notebook 
    629 }}} 
    630  
    631 === 3.6 [=#point306 产品搜索热点推荐(编辑出) ] === 
    632 {{{ 
    633     HTTP请求方式:get 
    634   是否需要登录:否 
    635   请求参数:无 
    636  
    637         返回参数: 
    638         { 
    639                 "words":[ 
    640                     "三星","htc","苹果","华为" 
    641                 ] 
    642         } 
    643  
    644   备注:返回最多5个关键词 
    645   由编辑设置 
    646  
    647 }}} 
    648  
    649  
    650 === 3.7 [=#point307 推荐品牌(编辑出) ] === 
    651 {{{ 
    652     HTTP请求方式:get 
    653   是否需要登录:否 
    654   请求参数:无 
    655  
    656         返回参数: 
    657   { 
    658         "total": 2, 
    659         "25289": [{ 
    660                 "id": 693, 
    661   "name":"联想", 
    662                 "logo": "http:\/\/img0.pcauto.com.cn\/pcauto\/1112\/07\/1743776_ACS5050.png", 
    663         }, 
    664         { 
    665                 "id": 693, 
    666   "name":"联想", 
    667                 "logo": "http:\/\/img0.pcauto.com.cn\/pcauto\/1112\/07\/1743776_ACS5050.png", 
    668         }], 
    669         "25293": [{ 
    670                 "id": 693, 
    671   "name":"联想", 
    672                 "logo": "http:\/\/img0.pcauto.com.cn\/pcauto\/1112\/07\/1743776_ACS5050.png", 
    673         }, 
    674         { 
    675                 "id": 693, 
    676   "name":"联想", 
    677                 "logo": "http:\/\/img0.pcauto.com.cn\/pcauto\/1112\/07\/1743776_ACS5050.png", 
    678         }] 
    679    
    680   } 
    681   备注:返回编辑推荐的品牌 
    682   此关键词为编辑设置 
    683    
    684         total:版块集合内部元素的总数 
    685         25289,25293类似的数字,产品类型 
    686         id:品牌id 
    687         logo:品牌logo图片url 
    688   name:品牌名称 
    689  
    690 }}} 
     453}}} 
     454 
     455===  3.1 [=#point301 通过品牌ID得到车系列表 ] === 
     456{{{ 
     457 
     458}}} 
     459 
     460===  3.2 [=#point302 通过车系ID得到车型列表 ] === 
     461{{{ 
     462 
     463}}} 
     464 
     465===  3.3 [=#point303 通过价格返回车系列表(按首字母顺序排) ] === 
     466{{{ 
     467 
     468}}} 
     469 
     470===  3.4 [=#point304 通过车系ID得到相关文章  ] === 
     471{{{ 
     472 
     473}}} 
     474 
     475===  3.5 [=#point305 发表车系评论 ] === 
     476{{{ 
     477 
     478}}} 
     479 
     480===  3.6 [=#point306 口碑 ] === 
     481{{{ 
     482 
     483}}} 
     484 
     485===  3.7 [=#point307 购车计算器 ] === 
     486{{{ 
     487 
     488}}} 
     489 
    691490 
    692491