Changes between Version 13 and Version 14 of pcauto_4.5.0/interface


Ignore:
Timestamp:
09/01/2014 12:14:51 PM (12 years ago)
Author:
hejingdong
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_4.5.0/interface

    v13 v14  
    414414    缓存时间:1分钟 
    415415    说明: 
     416isSerialGroup //是否是车系     
     417state: 
    416418    请求参数: 
    417419keyword:输入的关键词 
    418420    返回结果: 
    419 { 
    420   "branch": [ 
    421     { 
    422       "id": 123, 
    423       "name": "品牌or厂商名称" 
    424     } 
    425   ], 
    426   "serial": [ 
    427     { 
    428       "id": 12, 
    429       "name": "车系名" 
    430     } 
    431   ] 
    432 } 
    433 }}} 
    434  
    435 === 2.3.1 [=#point2.3.1 搜索结果] === 
     421[ 
     422  { 
     423    "keyword": "大众" 
     424  }, 
     425  { 
     426    "keyword": "大迪" 
     427  }, 
     428  { 
     429    "keyword": "道奇" 
     430  }, 
     431  { 
     432    "keyword": "大众(进口)" 
     433  }, 
     434  { 
     435    "isSerialGroup": true, 
     436    "keyword": "朗逸", 
     437    "price": "9.78-15.79万", 
     438    "sid": "3225", 
     439    "state": "3" 
     440  }, 
     441  { 
     442    "isSerialGroup": true, 
     443    "keyword": "途观", 
     444    "price": "19.97-31.57万", 
     445    "sid": "3895", 
     446    "state": "3" 
     447  }, 
     448  { 
     449    "isSerialGroup": true, 
     450    "keyword": "速腾", 
     451    "price": "12.08-18.53万", 
     452    "sid": "1633", 
     453    "state": "3" 
     454  }, 
     455  { 
     456    "isSerialGroup": true, 
     457    "keyword": "宝来", 
     458    "price": "9.88-13.13万", 
     459    "sid": "3286", 
     460    "state": "3" 
     461  }, 
     462  { 
     463    "isSerialGroup": true, 
     464    "keyword": "捷达", 
     465    "price": "7.28-9.88万", 
     466    "sid": "89", 
     467    "state": "3" 
     468  }, 
     469  { 
     470    "isSerialGroup": true, 
     471    "keyword": "帕萨特", 
     472    "price": "15.98-29.88万", 
     473    "sid": "99", 
     474    "state": "3" 
     475  } 
     476] 
     477}}} 
     478 
     479=== 2.3.1 [=#point2.3.1 搜索结果-综合] === 
    436480{{{ 
    437481    请求url: 
     
    521565      "title": "2015款 1.8 30TFSI 手动舒适型", 
    522566      "vendorPrice": "23.10~27.28" 
     567    } 
     568  ] 
     569} 
     570}}} 
     571 
     572=== 2.3.1.1 [=#point2.3.1.1 搜索结果-帖子] === 
     573{{{ 
     574    请求url: 
     575    HTTP请求方式:GET 
     576    是否需要登录:false 
     577    返回格式:JSON 
     578    缓存方式:对象缓存 
     579    缓存时间:1分钟 
     580    说明: 
     5811、出相关车系的车系页中的“文章”版块的内容,优先出必看文章,再按时间出最新相关文章,最多外显3篇。 
     5822、如果车系页中没有相关文章,则通过快搜按关键字搜索相关的文章进行填充 
     583    请求参数: 
     584keyword:搜索的关键词 
     585clusterQuery: 文章分类(直接搜中文) 
     586sort:排序方式(不填则默认最相关,time:最新发布,access:最热门) 
     587searchTime:发布时间(不填则搜全部时间,year:一年内,month:一个月内,week:一周内) 
     588    返回结果: 
     589{ 
     590  "keyword": "如果是模糊搜索出来的,这个keyword会和请求参数的keyword不一样", 
     591  "topics": [ 
     592    { 
     593      "authorId": 22393072, 
     594      "authorName": "hkitty", 
     595      "authorPhoto": "http://i1.3conline.com/images/upload/upc/face/22/39/30/72/22393072_50x50", 
     596      "contribution": 0, 
     597      "forumId": 19017, 
     598      "forumName": "内部测试", 
     599      "images": [ 
     600        { 
     601          "url": "http://imgrt.pconline.com.cn/images/upload/upc/tx/bbs6/1407/23/c0/spcgroup/bbs/center/36611290_1406089561207.jpg", 
     602          "width": 100, 
     603          "height": 200 
     604        } 
     605      ], 
     606      "nickname": "Rachel", 
     607      "postCount": 1, 
     608      "pubTime": 1406166953000, 
     609      "topicId": 5098712, 
     610      "topicTitle": "普通帖子", 
     611      "answerCount": 12提问帖中回答的人数,非提问帖可以不用这个 
     612    } 
     613  ], 
     614  "types": [ 
     615    { 
     616      "id": "33318", 
     617      "name": "全部论坛" 
     618    } 
     619  ] 
     620} 
     621}}} 
     622 
     623=== 2.3.1.2 [=#point2.3.1.2 搜索结果-文章] === 
     624{{{ 
     625    请求url: 
     626    HTTP请求方式:GET 
     627    是否需要登录:false 
     628    返回格式:JSON 
     629    缓存方式:对象缓存 
     630    缓存时间:1分钟 
     631    说明: 
     6321、出相关车系的车系页中的“文章”版块的内容,优先出必看文章,再按时间出最新相关文章,最多外显3篇。 
     6332、如果车系页中没有相关文章,则通过快搜按关键字搜索相关的文章进行填充 
     634    请求参数: 
     635keyword:搜索的关键词 
     636clusterQuery: 文章分类(直接搜中文) 
     637sort:排序方式(不填则默认最相关,time:最新发布,access:最热门) 
     638searchTime:发布时间(不填则搜全部时间,year:一年内,month:一个月内,week:一周内) 
     639    返回结果: 
     640{ 
     641  "keyword": "如果是模糊搜索出来的,这个keyword会和请求参数的keyword不一样", 
     642  "articles": [ 
     643    { 
     644      "channelId": 2, 
     645      "channelName": "新车", 
     646      "count": 10, 
     647      "id": "5023924", 
     648      "image": "http://img0.pcauto.com.cn/pcauto/1408/26/g_5023924_1409017503587_240x160.jpg", 
     649      "pubDate": "2014-08-26", 
     650      "title": "野马F16将成都车展上市 并发布全新LOGO", 
     651      "url": "http://www.pcauto.com.cn/nation/502/5023924.html" 
     652    } 
     653  ], 
     654  "types": [ 
     655    { 
     656      "id": "33318", 
     657      "name": "全部分类" 
    523658    } 
    524659  ]