Changes between Version 143 and Version 144 of intf
- Timestamp:
- 06/30/2014 11:30:06 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
intf
v143 v144 1168 1168 输出结果:返回页面intf/memcp.jsp[[BR]] 1169 1169 1170 == [=#p_mobile]mobile == 1171 ==== 4.1生活圈精华帖子列表 ==== 1170 * 查询版块的精华帖接口 1172 1171 {{{ 1173 备注: 生活圈帖子列表,时间倒序1174 请求URL: http://bbs.pcbaby.com.cn/intf/forum/getPicks.do1172 备注:支持多个fid查询,时间倒序 1173 请求URL:/intf/forum/getPicks.do 1175 1174 HTTP请求方式:get 1176 1175 是否需要登录:否 1177 1176 返回格式:JSON 1178 1177 缓存方式:有 1179 缓存时间: 1小时1178 缓存时间:默认1小时 1180 1179 请求参数: 1181 1180 forums=1;需要查询的版块ID,多个版块ID用半角逗号分隔。查找的信息也会包含其子版块 … … 1209 1208 }}} 1210 1209 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 == 1211 1299 ==== 4.1.1生活圈最新帖子列表 ==== 1212 1300 {{{ … … 1408 1496 } 1409 1497 }}} 1410 1411 ==== 6.2我的交流圈-主帖、精华帖、回帖 ====1412 {{{1413 备注:我的交流圈-主帖、精华帖、回帖1414 请求URL:http://bbs.pcbaby.com.cn/intf/user/queryUserPost.do1415 HTTP请求方式:get1416 是否需要登录:否1417 返回格式:JSON1418 缓存方式:无1419 缓存时间:无1420 请求参数:1421 uid: 用户id,默认为当前登录用户id1422 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.do1486 HTTP请求方式:get1487 是否需要登录:否1488 返回格式:JSON1489 缓存方式:无1490 缓存时间:无1491 请求参数:1492 uid: 用户id,默认查询当前登录用户id1493 返回参数1494 {1495 topicCount:主帖数量1496 pickCount:精华帖数量1497 replyCount:回帖数量1498 }1499 }}}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)