Changes between Version 10 and Version 11 of buygo_jiekou


Ignore:
Timestamp:
07/02/2013 05:05:10 PM (13 years ago)
Author:
lijincai
Comment:

修改接口格式

Legend:

Unmodified
Added
Removed
Modified
  • buygo_jiekou

    v10 v11  
    178178  请求方式:GET [[BR]] 
    179179  要求登录:否 [[BR]] 
    180   参数:name:收件联系人,phone:联系电话,count:购买数量,url:商品概述的url,postType:运输方式,message:留言 
     180  参数: 
     181{{{ 
     182       name:收件联系人, 
     183       phone:联系电话, 
     184       count:购买数量, 
     185       url:商品概述的url, 
     186       postType:运输方式, 
     187       message:留言 
     188}}} 
    181189  返回结果:跳转至支付页面 
    182190 
     
    1841925,精准搜索 
    185193 
    186 5.1  热门搜索词     请求url:   /shot 
    187   
    188                返回参数: 
    189                     { 
     194 * '''热门搜索词  接口:  url:  /shot '''[[BR]] 
     195 
     196  接口类型:数据接口 [[BR]] 
     197  数据格式:JSON [[BR]] 
     198  请求方式:GET [[BR]] 
     199  要求登录:否 [[BR]] 
     200  参数:无 [[BR]] 
     201  返回数据: [[BR]]  
     202{{{ 
     203               { 
    190204                         hotlist: 
    191205                              [ 
    192206                                   { 
    193                                          "[id]:热点类型id, 
    194                                           [name]:类型名"  
     207                                         "id":热点类型id, 
     208                                          "name":类型名 
    195209                                   } 
    196210                              ] 
    197                     } 
    198                     
    199  
    200  
    201 5.2      搜索商品    请求url: /searchProducts      
    202  
    203                请求参数: 
    204                     [words]关键词 
    205  
    206  
    207                返回参数: 
    208                       { 
     211                    }  
     212}}} 
     213[[br]][[br]]                    
     214 
     215 * '''搜索商品  接口:  url:  /searchProducts '''[[BR]] 
     216 
     217  接口类型:数据接口 [[BR]] 
     218  数据格式:JSON [[BR]] 
     219  请求方式:GET [[BR]] 
     220  要求登录:否 [[BR]] 
     221  参数: [[BR]] 
     222{{{ 
     223   "words":关键词 
     224}}} 
     225  返回数据: [[BR]]  
     226{{{ 
     227               { 
    209228                         "resultlist": 
    210229                              [ 
    211230                                   { 
    212                                         [id]:商品id, 
    213                                         [name]:商品标题 
    214                                         [price]:价格 
    215                                         [url]:商品概述的url 
    216                                         [type]:淘宝商品、IT商场商品 
    217                                         [thumb]:商品缩略图  
    218                                    },{...},{...} 
     231                                        "id":商品id, 
     232                                        "name":商品标题, 
     233                                        "price":价格, 
     234                                        "url":商品概述的url, 
     235                                        "type":淘宝商品、IT商场商品, 
     236                                        "thumb":商品缩略图  
     237                                   } 
    219238                              ] 
    220                          } 
    221  
    222  
    223 5.3          搜索店铺      请求url:  /searchShops     
    224             
    225                请求参数: 
    226                     [word]关键词(热点词)      
    227  
    228                 返回参数: 
    229                       { 
     239                         }  
     240}}} 
     241[[br]][[br]] 
     242 
     243 * '''搜索店铺   接口:  url:  /searchShops '''[[BR]] 
     244 
     245  接口类型:数据接口 [[BR]] 
     246  数据格式:JSON [[BR]] 
     247  请求方式:GET [[BR]] 
     248  要求登录:否 [[BR]] 
     249  参数: [[BR]] 
     250{{{ 
     251   "words":关键词 
     252}}} 
     253  返回数据: [[BR]]  
     254{{{ 
     255               { 
    230256                         "resultlist": 
    231257                              [ 
    232258                                   { 
    233                                         [id]:店铺Id                             
     259                                        [id]:店铺Id ,                            
    234260                                        [tile]:店铺标题, 
    235                                         [rate]:店铺信誉 
    236                                         [isFlagShip]:是否为旗舰店 
     261                                        [rate]:店铺信誉, 
     262                                        [isFlagShip]:是否为旗舰店, 
    237263                                        [addr]:地区        
    238                                    },{...},{...} 
     264                                   } 
    239265                              ] 
    240                          }  
    241                                                
     266                         }   
     267}}}                    
    242268 
    2432696,个人中心 
    244  
    245     
    246  
    247270 
    248271* '''买家收货地址列表 接口:  url:  /addrs '''[[BR]]