Table of Contents
爆料分类
获取爆料分类
说明
获取爆料分类
使用场景:根据分类等级或父分类id查找所属的分类,一般用于首页或页面头部
提交方式
GET
是否需要登录
false
缓存方式
接口缓存
缓存时间
300秒
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| level | 1 一级分类 2 二级分类 | int | 0 | 否 |
| parentId | 上级分类id | int | 0 | 否 |
返回
result {
total: 20,
msg: '请求成功',
data: [
$topicType
]
}
获取与PC分类排序一致的一级分类
说明
获取与PC端首页排序一致的一级分类列表
使用场景:app查询与PC分类排序一致的一级分类
提交方式
GET
是否需要登录
false
缓存方式
接口缓存
缓存时间
300秒
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| limit | 限制查询分类个数 | int | 15 | 否 |
返回
result {
total: 20,
msg: '请求成功',
data: [
$topicType
]
}
获取前两级爆料分类
说明
获取前两级爆料分类
使用场景:获取前两级爆料分类
提交方式
GET
是否需要登录
false
缓存方式
接口缓存
缓存时间
300秒
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|
返回
result {
"data":{
{
"level2":[//2级分类
{
$topicType
},
{
$topicType
}
],
"iconImg2":"http://img.pconline.com.cn/images/upload/upc/tx/pc_best/1505/18/c3/6950189_1431931792646.jpg",//分类图标
"iconImg3":"http://img.pconline.com.cn/images/upload/upc/tx/pc_best/1505/18/c3/6950189_1431931792646.jpg",//3.0分类图标
"level":1,//分类等级
"name":"电脑数码",//分类名称
"typeId":288 //分类id
}
},
"msg":"请求成功",
"status":1
}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)