fastadmin开发手册

栏目分类接口[getCategory]【免登录】


可根据模型或栏目调用对应栏目的接口,模型id和栏目id按自己需求取值

请求URL


http://www.yoursite.com/addons/cms/api.common/getCategory

请求方法


GET

请求参数


| Body参数名 | 类型 | 必需 | 描述 | 示例 |
| --- | --- | --- | --- | --- |
| model | number | 否 | 模型id | 1 |
| channel | number | 否 | 栏目id | 1 |

注:channel=-1&model=-1 对于首页,应用初始化,无法给传参,默认传-1,取导航的设置参数


返回值


``json
{
"code": 1,
"msg": "",
"time": "1616565802",
"data": [
{
"id": 0,
"title": "全部"
},
{
"id": 25,
"title": "小硬件"
}
]
}
``

10 Screens$8,029

I will design rough sketches for upto 5 Screens of your website/Mobile app.

3 Days Delivery 1 Revision
  • Source File
  • Commercial Use
  • Interactive Mockup
  • 10 Pages

20 Screens$16,029

I will design rough sketches for upto 5 Screens of your website/Mobile app.

3 Days Delivery
  • Source File
  • Commercial Use
  • Interactive Mockup
  • 10 Pages

30 Screens$24,029

I will design rough sketches for upto 5 Screens of your website/Mobile app.

3 Days Delivery
  • Source File
  • Commercial Use
  • Interactive Mockup
  • 10 Pages
0.237854s