Changes between Version 143 and Version 144 of intf


Ignore:
Timestamp:
06/30/2014 11:30:06 AM (12 years ago)
Author:
zhangzhuojian
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • intf

    v143 v144  
    11681168    输出结果:返回页面intf/memcp.jsp[[BR]] 
    11691169 
    1170 == [=#p_mobile]mobile == 
    1171 ==== 4.1生活圈精华帖子列表 ==== 
     1170* 查询版块的精华帖接口 
    11721171{{{ 
    1173   备注:生活圈帖子列表,时间倒序 
    1174   请求URL:http://bbs.pcbaby.com.cn/intf/forum/getPicks.do 
     1172  备注:支持多个fid查询,时间倒序 
     1173  请求URL:/intf/forum/getPicks.do 
    11751174  HTTP请求方式:get 
    11761175  是否需要登录:否 
    11771176  返回格式:JSON 
    11781177  缓存方式:有 
    1179   缓存时间:1小时 
     1178  缓存时间:默认1小时 
    11801179  请求参数: 
    11811180  forums=1;需要查询的版块ID,多个版块ID用半角逗号分隔。查找的信息也会包含其子版块 
     
    12091208}}} 
    12101209 
     1210* 查询用户的主帖、精华帖、回帖 
     1211{{{ 
     1212 请求URL:/intf/user/queryUserPost.do 
     1213 HTTP请求方式:get 
     1214 是否需要登录:否 
     1215 返回格式:JSON 
     1216 缓存方式:无 
     1217 缓存时间:无 
     1218 请求参数: 
     1219  uid: 用户id,默认为当前登录用户id 
     1220  type: 查询类型,默认为topic;可填topic(主贴),pick(精华帖),reply(回帖) 
     1221  pageNo: 当前第几页 
     1222  pageSize: 每页显示的数量,默认10条 
     1223  maxLength: 帖子内容需要截取的长度,默认240个字节 
     1224  callback: 回调函数 
     1225  ie=gbk;输出内容的编码格式 
     1226 type为topic或pick时的返回参数,成功时: 
     1227 { 
     1228   status: 0, 
     1229   desc: "查询成功", 
     1230   uid: 用户id, 
     1231   topics:[ 
     1232    { 
     1233       topicId: 主帖id, 
     1234       title: 标题, 
     1235       message: 截取的帖子内容, 
     1236       authorName: 主帖的用户名, 
     1237       createAt: 发帖时间, 
     1238       views: 帖子浏览数, 
     1239       replyCount: 帖子回复数 
     1240    } 
     1241   ] 
     1242 } 
     1243 失败时: 
     1244 { 
     1245    desc: "原因描述", 
     1246    status: 状态码 
     1247 } 
     1248 
     1249 type为reply时的返回参数,成功时: 
     1250  { 
     1251   status: 0, 
     1252   desc: "查询成功", 
     1253   uid: 用户id, 
     1254   topics:[ 
     1255    { 
     1256       topicId: 主帖id, 
     1257       image: 主帖中的第一张图片, 
     1258       title: 主帖标题, 
     1259       message: 截取的帖子内容, 
     1260       authorName: 主帖的用户名, 
     1261       createAt: 主帖创建时间, 
     1262       views: 主帖浏览数, 
     1263       replyCount: 主帖回复数, 
     1264       categoryId: 1性福,2婆媳,3情感,4职场,5姐妹,6邻里, 
     1265       category: 对应category的名字, 
     1266       replyContent: 回帖的内容, 
     1267       replyAuthorName: 回帖的用户名, 
     1268       replyAuthorId: 回帖的用户id, 
     1269       replyTime: 回帖的时间 
     1270    } 
     1271   ] 
     1272  } 
     1273  失败时: 
     1274  { 
     1275     desc: "原因描述", 
     1276     status: 状态码 
     1277  } 
     1278}}} 
     1279 
     1280* 查询用户的主帖数量、精华帖数量、回帖数量 
     1281{{{ 
     1282 请求URL:/intf/user/queryUserPostCount.do 
     1283 HTTP请求方式:get 
     1284 是否需要登录:否 
     1285 返回格式:JSON 
     1286 缓存方式:无 
     1287 缓存时间:无 
     1288 请求参数: 
     1289 uid: 用户id,默认查询当前登录用户id 
     1290 返回参数 
     1291  { 
     1292  topicCount:主帖数量 
     1293  pickCount:精华帖数量 
     1294  replyCount:回帖数量 
     1295  } 
     1296}}} 
     1297 
     1298== [=#p_mobile]mobile == 
    12111299==== 4.1.1生活圈最新帖子列表 ==== 
    12121300{{{ 
     
    14081496  } 
    14091497}}} 
    1410  
    1411 ==== 6.2我的交流圈-主帖、精华帖、回帖 ==== 
    1412 {{{ 
    1413  备注:我的交流圈-主帖、精华帖、回帖 
    1414  请求URL:http://bbs.pcbaby.com.cn/intf/user/queryUserPost.do 
    1415  HTTP请求方式:get 
    1416  是否需要登录:否 
    1417  返回格式:JSON 
    1418  缓存方式:无 
    1419  缓存时间:无 
    1420  请求参数: 
    1421   uid: 用户id,默认为当前登录用户id 
    1422   type: 查询类型,默认为topic;可填topic(主贴),pick(精华帖),reply(回帖) 
    1423   pageNo: 当前第几页 
    1424   pageSize: 每页显示的数量,默认10条 
    1425   maxLength: 帖子内容需要截取的长度,默认240个字节 
    1426   callback: 回调函数 
    1427   ie=gbk;输出内容的编码格式 
    1428  type为topic或pick时的返回参数,成功时: 
    1429  { 
    1430    status: 0, 
    1431    desc: "查询成功", 
    1432    uid: 用户id, 
    1433    topics:[ 
    1434     { 
    1435        topicId: 主帖id, 
    1436        title: 标题, 
    1437        message: 截取的帖子内容, 
    1438        authorName: 主帖的用户名, 
    1439        createAt: 发帖时间, 
    1440        views: 帖子浏览数, 
    1441        replyCount: 帖子回复数 
    1442     } 
    1443    ] 
    1444  } 
    1445  失败时: 
    1446  { 
    1447     desc: "原因描述", 
    1448     status: 状态码 
    1449  } 
    1450  
    1451  type为reply时的返回参数,成功时: 
    1452   { 
    1453    status: 0, 
    1454    desc: "查询成功", 
    1455    uid: 用户id, 
    1456    topics:[ 
    1457     { 
    1458        topicId: 主帖id, 
    1459        image: 主帖中的第一张图片, 
    1460        title: 主帖标题, 
    1461        message: 截取的帖子内容, 
    1462        authorName: 主帖的用户名, 
    1463        createAt: 主帖创建时间, 
    1464        views: 主帖浏览数, 
    1465        replyCount: 主帖回复数, 
    1466        categoryId: 1性福,2婆媳,3情感,4职场,5姐妹,6邻里, 
    1467        category: 对应category的名字, 
    1468        replyContent: 回帖的内容, 
    1469        replyAuthorName: 回帖的用户名, 
    1470        replyAuthorId: 回帖的用户id, 
    1471        replyTime: 回帖的时间 
    1472     } 
    1473    ] 
    1474   } 
    1475   失败时: 
    1476   { 
    1477      desc: "原因描述", 
    1478      status: 状态码 
    1479   } 
    1480 }}} 
    1481  
    1482 ==== 6.3我的交流圈数量 ==== 
    1483 {{{ 
    1484  备注:我的交流圈-主贴、精华帖 
    1485  请求URL:http://bbs.pcbaby.com.cn/intf/user/queryUserPostCount.do 
    1486  HTTP请求方式:get 
    1487  是否需要登录:否 
    1488  返回格式:JSON 
    1489  缓存方式:无 
    1490  缓存时间:无 
    1491  请求参数: 
    1492  uid: 用户id,默认查询当前登录用户id 
    1493  返回参数 
    1494   { 
    1495   topicCount:主帖数量 
    1496   pickCount:精华帖数量 
    1497   replyCount:回帖数量 
    1498   } 
    1499 }}}