Changes between Initial Version and Version 1 of bestIntf


Ignore:
Timestamp:
04/07/2016 04:01:02 PM (10 years ago)
Author:
zhangguangwen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • bestIntf

    v1 v1  
     1== 批量查询爆料点赞、踩、收藏数、评论数 == 
     2 
     3> 线上:http://best.pconline.com.cn/intf/shangpinbaike/getTopicAttributes.jsp 
     4 
     5**说明** 
     6 
     7> 根据爆料ID出爆料点赞、踩、收藏数、评论数,批量查询 
     8 
     9**提交方式** 
     10 
     11> post 
     12 
     13**是否需要登录** 
     14 
     15> false 
     16 
     17**缓存方式** 
     18 
     19> 无 
     20 
     21**缓存时间** 
     22 
     23> 无 
     24 
     25**参数** 
     26 
     27||= 参数名 =||= 参数含义 =||= 类型 =||= 默认值 =||= 是否必须 =|| 
     28||ids||爆料id,用英文逗号隔开||string||""||是|| 
     29||callback||回调参数||string||""||否|| 
     30 
     31 
     32**返回** 
     33{{{#!java 
     34result { 
     35    "data":[ 
     36        { 
     37            "badCount":1,//踩次数 
     38            "commentCount":0,//评论数 
     39            "favoriteCount":1,//收藏数 
     40            "goodCount":7,//点赞数 
     41            "topicId":2//爆料id 
     42        }, 
     43        { 
     44            "badCount":5, 
     45            "commentCount":0, 
     46            "favoriteCount":0, 
     47            "goodCount":4, 
     48            "topicId":11 
     49        }, 
     50        { 
     51            "badCount":0, 
     52            "commentCount":0, 
     53            "favoriteCount":0, 
     54            "goodCount":4, 
     55            "topicId":22 
     56        } 
     57    ], 
     58    "msg":"success",  
     59    "status":1 
     60} 
     61}}} 
     62**返回状态** 
     63||= status =||= msg =||= 说明 =|| 
     64||1||success||请求成功|| 
     65||0||null||结果为空|| 
     66||-1||parameter error||参数错误|| 
     67 
     68 
     69---- 
     70== 收藏接口 == 
     71 
     72> 线上:http://best.pconline.com.cn/action/collect/collect.jsp 
     73 
     74**说明** 
     75 
     76> 收藏接口,支持跨域,限制每个用户1秒内请求一次 
     77 
     78**提交方式** 
     79 
     80> post 
     81 
     82**是否需要登录** 
     83 
     84> true 
     85 
     86**缓存方式** 
     87 
     88> 无 
     89 
     90**缓存时间** 
     91 
     92> 无 
     93 
     94**参数** 
     95 
     96||= 参数名 =||= 参数含义 =||= 类型 =||= 默认值 =||= 是否必须 =|| 
     97||topicId||爆料id||long||""||是|| 
     98||num||原有收藏数||long||""||是|| 
     99||isCollect||/收藏或取消收藏 0取消收藏 1收藏||int||""||是|| 
     100||callback||回调参数||string||""||否|| 
     101 
     102**返回** 
     103{{{#!java 
     104result { 
     105    "count":1,//收藏数 
     106    "status":1 
     107} 
     108}}} 
     109**返回状态** 
     110||= status =||= desc =||= 说明 =|| 
     111||1||已收藏||1收藏成功|| 
     112||2|| ||收藏不成功|| 
     113||3|| ||爆料不存在|| 
     114||4|| ||取消收藏成功|| 
     115||0||正在收藏,请稍候!||已收藏不能再收藏|| 
     116||-1|| ||未登录|| 
     117 
     118---- 
     119== 点赞点踩接口 == 
     120 
     121> 线上:http://best.pconline.com.cn/action/topic/like_and_dislike.jsp 
     122 
     123**说明** 
     124 
     125> 点赞点踩接口,支持跨域 
     126 
     127**提交方式** 
     128 
     129> post 
     130 
     131**是否需要登录** 
     132 
     133> true 
     134 
     135**缓存方式** 
     136 
     137> 无 
     138 
     139**缓存时间** 
     140 
     141> 无 
     142 
     143**参数** 
     144 
     145||= 参数名 =||= 参数含义 =||= 类型 =||= 默认值 =||= 是否必须 =|| 
     146||topicId||爆料id||string||""||是|| 
     147||num||原有收藏数||string||""||是|| 
     148||   operate ||  0 赞 1 踩||string||""||是|| 
     149||callback||回调参数||string||""||否|| 
     150 
     151 
     152**返回** 
     153{{{#!java 
     154result { 
     155    "code":1, 
     156    "desc":"投票成功" 
     157} 
     158}}} 
     159**返回状态** 
     160||= code=||= desc =|| 
     161||1||投票成功!|| 
     162||0||亲,您已经投过票了!||  
     163||-1||投票失败! || 
     164||-2||参数不对! ||  
     165||-3||爆料不存在! ||  
     166||error||不合法的请求方式!||  
     167 
     168---- 
     169== 加金币加积分接口 == 
     170 
     171> 线上:http://best.pconline.com.cn/intf/shangpinbaike/addGoldAndScore.jsp 
     172**说明** 
     173 
     174> 提供加积分和金币接口 ,有ip限定,只提供给商品百科。 
     175 
     176**提交方式** 
     177 
     178> post 
     179 
     180**是否需要登录** 
     181 
     182> true 
     183 
     184**缓存方式** 
     185 
     186> 无 
     187 
     188**缓存时间** 
     189 
     190> 无 
     191 
     192**参数** 
     193 
     194||= 参数名 =||= 参数含义 =||= 类型 =||= 默认值 =||= 是否必须 =|| 
     195||gold||金币||int||""||是|| 
     196||score||积分||int||""||是|| 
     197||experience||经验||int||""||是|| 
     198||userid||用户id||long||""||是|| 
     199 
     200 
     201**返回** 
     202{{{#!java 
     203result { 
     204    "status":1, 
     205    "msg":"添加成功" 
     206} 
     207}}} 
     208**返回状态** 
     209||= status =||= msg=||= 说明 =|| 
     210||1||添加成功||添加成功|| 
     211||0||未找到该用户:+userid ||未找到该用户|| 
     212||-1||你当前的ip:+ip地址+没有权限访问 ||非商品百科,没有权限访问|| 
     213||-2||请求方式错误 ||请求方式错误|| 
     214 
     215 
     216---- 
     217== 根据所属地域查询电商列表 == 
     218 
     219> 线上:http://best.pconline.com.cn/intf/mall/getMallByType.jsp 
     220 
     221**说明** 
     222 
     223> 根据所属地域查询电商列表,支持跨域 
     224 
     225**提交方式** 
     226 
     227> post 
     228 
     229**是否需要登录** 
     230 
     231> false 
     232 
     233**缓存方式** 
     234 
     235> ATS 
     236**缓存时间** 
     237 
     238> 10分钟 
     239 
     240**参数** 
     241 
     242||= 参数名 =||= 参数含义 =||= 类型 =||= 默认值 =||= 是否必须 =|| 
     243||typeId||国内外电商  0国内电商 1国外电商 2跨境电商 3转运公司||int||""||是|| 
     244||callback||回调参数||string||""||否|| 
     245||pageNo||页数,默认为1||int||""||否|| 
     246||pageSize||每页数量,默认为10,最大为100||int||""||否|| 
     247 
     248 
     249**返回** 
     250{{{#!java 
     251result { 
     252   { 
     253    "data":[ 
     254        { 
     255            "Logo":"http://dev2.pconline.com.cn:9191/upcfiles/pc_best/1604/07/c0/114692_1460009584501.jpg", 
     256            "name":"测试电商1", 
     257            "seq":1, 
     258            "url":"http://best.pconline.com.cn/mall/网易考拉海购/youhui" 
     259        } 
     260    ], 
     261    "msg":"success", 
     262    "status":1 
     263} 
     264}}} 
     265**返回状态** 
     266||= status =||= msg =||= 说明 =|| 
     267||1||success||请求成功|| 
     268||0||null||结果为空|| 
     269||-1||parameter error||请求参数错误||