接口简介

  • 获取所有开启版块的信息

接口请求说明

请求地址

https://站点接口域名/api1_2/forum/all-forums

请求方式

POST

请求参数

接口响应说明

响应示例

{
    "data":"",
    "ret":1,
    "text":"密钥错误",
    "hasaffair":0,
    "expire_at":0,
    "affair":null
}

{
    "data": {
        "forums": [
            {
                "fid": 0,
                "fname": "热门推荐",
                "showextra": 0,
                "subforum": [
                    {
                        "fid": "2",
                        "fup": "1",
                        "fname": "默认版块",
                        "logo": "https://qiance.qianfanyun.com/1565252117516015.jpg",
                        "status": "2",
                        "tap_setting": "[]",
                        "showextra": "0",
                        "favor_config": "6",
                        "vieworder": "0",
                        "can_del": "1",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": []
                    },
                    {
                        "fid": "36",
                        "fup": "1",
                        "fname": "影视娱乐",
                        "logo": "https://qianfan-qianfanyun.qiniudn.com/_20170703100445_5959a63d9c38f.png",
                        "status": "2",
                        "tap_setting": "[]",
                        "showextra": "0",
                        "favor_config": "0",
                        "vieworder": "0",
                        "can_del": "0",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": [
                            {
                                "fid": "111222",
                                "fup": "36",
                                "fname": "4K资源1",
                                "logo": "",
                                "status": "1",
                                "tap_setting": "[]",
                                "showextra": "0",
                                "favor_config": "0",
                                "vieworder": "0",
                                "can_del": "0",
                                "can_del_reply": "0",
                                "can_lou_del": "0",
                                "edit_time_limit": "0",
                                "del_thread_time_limit": "0",
                                "del_reply_time_limit": "0",
                                "can_edit": "0",
                            }
                        ]
                    }
                ]
            },
            {
                "fid": "1",
                "fup": "0",
                "fname": "化龙版块",
                "logo": "https://qianfan-qianfanyun.qiniudn.com/1508826150.png?roundPic/radius/20",
                "status": "1",
                "tap_setting": "[]",
                "showextra": "0",
                "favor_config": "0",
                "vieworder": "0",
                "can_del": "0",
                "can_del_reply": "0",
                "can_lou_del": "0",
                "edit_time_limit": "0",
                "del_thread_time_limit": "0",
                "del_reply_time_limit": "0",
                "can_edit": "0",
                "subforum": [
                    {
                        "fid": "2",
                        "fup": "1",
                        "fname": "默认版块",
                        "logo": "https://qiance.qianfanyun.com/1565252117516015.jpg",
                        "status": "2",
                        "tap_setting": "[]",
                        "showextra": "0",
                        "favor_config": "6",
                        "vieworder": "0",
                        "can_del": "1",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": []
                    },
                    {
                        "fid": "36",
                        "fup": "1",
                        "fname": "影视娱乐",
                        "logo": "https://qianfan-qianfanyun.qiniudn.com/_20170703100445_5959a63d9c38f.png",
                        "status": "2",
                        "tap_setting": "[]",
                        "showextra": "0",
                        "favor_config": "0",
                        "vieworder": "0",
                        "can_del": "0",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": [
                            {
                                "fid": "111222",
                                "fup": "36",
                                "fname": "4K资源1",
                                "logo": "",
                                "status": "1",
                                "tap_setting": "[]",
                                "showextra": "0",
                                "favor_config": "0",
                                "vieworder": "0",
                                "can_del": "0",
                                "can_del_reply": "0",
                                "can_lou_del": "0",
                                "edit_time_limit": "0",
                                "del_thread_time_limit": "0",
                                "del_reply_time_limit": "0",
                                "can_edit": "0",
                            }
                        ]
                    },
                    {
                        "fid": "41",
                        "fup": "1",
                        "fname": "测试0",
                        "logo": "https://qianfan-qianfanyun.qiniudn.com/_20170517140925_591be9153d919.png",
                        "status": "1",
                        "tap_setting": "[]",
                        "showextra": "0",
                        "favor_config": "1112",
                        "vieworder": "0",
                        "can_del": "1",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": []
                    },
                    {
                        "fid": "38",
                        "fup": "1",
                        "fname": "版块2石头",
                        "logo": "https://qianfan-qianfanyun.qiniudn.com/_20170831094233_59a76989d0c9e.png",
                        "status": "1",
                        "tap_setting": "[]",
                        "showextra": "0",
                        "favor_config": "0",
                        "vieworder": "0",
                        "can_del": "0",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": []
                    },
                    {
                        "fid": "564",
                        "fup": "1",
                        "fname": "测试0",
                        "logo": "https://qianfan-qianfanyun.qiniudn.com/_20170517140925_591be9153d919.png",
                        "status": "1",
                        "tap_setting": "[]",
                        "showextra": "0",
                        "favor_config": "1112",
                        "vieworder": "0",
                        "can_del": "1",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": [
                            {
                                "fid": "38",
                                "fup": "564",
                                "fname": "时事热点",
                                "logo": "",
                                "status": "1",
                                "tap_setting": "[]",
                                "showextra": "1",
                                "favor_config": "0",
                                "vieworder": "1",
                                "can_del": "0",
                                "can_del_reply": "0",
                                "can_lou_del": "0",
                                "edit_time_limit": "0",
                                "del_thread_time_limit": "0",
                                "del_reply_time_limit": "0",
                                "can_edit": "0",
                            },
                            {
                                "fid": "38",
                                "fup": "1",
                                "fname": "版块2石头",
                                "logo": "https://qianfan-qianfanyun.qiniudn.com/_20170831094233_59a76989d0c9e.png",
                                "status": "1",
                                "tap_setting": "[]",
                                "showextra": "0",
                                "favor_config": "0",
                                "vieworder": "0",
                                "can_del": "0",
                                "can_del_reply": "0",
                                "can_lou_del": "0",
                                "edit_time_limit": "0",
                                "del_thread_time_limit": "0",
                                "del_reply_time_limit": "0",
                                "can_edit": "0",
                                "subforum": []
                            }
                        ]
                    },
                    {
                        "fid": "63",
                        "fup": "1",
                        "fname": "postrock",
                        "logo": "",
                        "status": "1",
                        "tap_setting": "",
                        "showextra": "0",
                        "favor_config": "0",
                        "vieworder": "0",
                        "can_del": "0",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": []
                    },
                    {
                        "fid": "143",
                        "fup": "1",
                        "fname": "postrock",
                        "logo": "",
                        "status": "1",
                        "tap_setting": "",
                        "showextra": "0",
                        "favor_config": "0",
                        "vieworder": "0",
                        "can_del": "0",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": []
                    },
                    {
                        "fid": "140",
                        "fup": "1",
                        "fname": "postrock",
                        "logo": "",
                        "status": "1",
                        "tap_setting": "",
                        "showextra": "0",
                        "favor_config": "0",
                        "vieworder": "0",
                        "can_del": "0",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": []
                    },
                    {
                        "fid": "142",
                        "fup": "1",
                        "fname": "postrock",
                        "logo": "",
                        "status": "1",
                        "tap_setting": "",
                        "showextra": "0",
                        "favor_config": "0",
                        "vieworder": "0",
                        "can_del": "0",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": []
                    },
                    {
                        "fid": "142",
                        "fup": "1",
                        "fname": "postrock",
                        "logo": "",
                        "status": "1",
                        "tap_setting": "",
                        "showextra": "0",
                        "favor_config": "0",
                        "vieworder": "0",
                        "can_del": "0",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": []
                    },
                    {
                        "fid": "142",
                        "fup": "1",
                        "fname": "postrock",
                        "logo": "",
                        "status": "1",
                        "tap_setting": "",
                        "showextra": "0",
                        "favor_config": "0",
                        "vieworder": "0",
                        "can_del": "0",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": []
                    },
                    {
                        "fid": "142",
                        "fup": "1",
                        "fname": "postrock",
                        "logo": "",
                        "status": "1",
                        "tap_setting": "",
                        "showextra": "0",
                        "favor_config": "0",
                        "vieworder": "0",
                        "can_del": "0",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": []
                    },
                    {
                        "fid": "142",
                        "fup": "1",
                        "fname": "postrock",
                        "logo": "",
                        "status": "1",
                        "tap_setting": "",
                        "showextra": "0",
                        "favor_config": "0",
                        "vieworder": "0",
                        "can_del": "0",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": []
                    },
                    {
                        "fid": "142",
                        "fup": "1",
                        "fname": "postrock",
                        "logo": "",
                        "status": "1",
                        "tap_setting": "",
                        "showextra": "0",
                        "favor_config": "0",
                        "vieworder": "0",
                        "can_del": "0",
                        "can_del_reply": "0",
                        "can_lou_del": "0",
                        "edit_time_limit": "0",
                        "del_thread_time_limit": "0",
                        "del_reply_time_limit": "0",
                        "can_edit": "0",
                        "subforum": []
                    }
                ]
            },
            {
                "fid": "6",
                "fup": "0",
                "fname": "b",
                "logo": "",
                "status": "1",
                "tap_setting": "[]",
                "showextra": "0",
                "favor_config": "0",
                "vieworder": "0",
                "can_del": "0",
                "can_del_reply": "0",
                "can_lou_del": "0",
                "edit_time_limit": "0",
                "del_thread_time_limit": "0",
                "del_reply_time_limit": "0",
                "can_edit": "0",
                "subforum": []
            }
        ]
    },
    "ret": 0,
    "text": "",
    "hasaffair": 0,
    "expire_at": 0,
    "affair": null
}

参数说明

参数名 类型 说明
fid int fid
fup int 上级id
fname string 版块名称
logo int 版块logo
status int 状态
tap_setting int 选项卡配置
showextra int 0不显示三级板块 1显示
favor_config int 关注版块人的基数
vieworder int 手动排序
can_del int 是否允许删除主题 1允许
can_del_reply int 是否允许删除回复 1允许
can_lou_del int 是否允许楼主删除评论 1允许
edit_time_limit int 编辑主题时间限制 0不限制
del_thread_time_limit int 删除主题时间限制 0不限制
del_reply_time_limit int 删除评论时间限制 0不限制
can_edit int 是否允许编辑 0不允许
subforum array
文档更新时间: 2023-07-19 17:11   作者:张春梅