简要描述:

  • 搜索页-分类

请求域名:

  • http://xx.com

请求URL:

GET/&route=plugin.be-within-call.frontend.public-search.classify&page_size=15

参数:

参数名 是否必须 类型 说明
name string 分类名称
page string 当前页数
page_size int 每页条数
sort_type int 分类类型:1需求、2技能、3企业;默认:1

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "list",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "uniacid": 6,
                "sort": 0,
                "type": 1,
                "title": "需求分类",
                "is_show": 1,
                "is_recommend": 1,
                "created_at": "2023-02-27 17:46:41",
                "thumb": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                "thumb_url": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg"
            }
        ],
        "first_page_url": "http://demo.yun.cn/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://demo.yun.cn/addons/yun_shop/api.php?page=1",
        "next_page_url": null,
        "path": "http://demo.yun.cn/addons/yun_shop/api.php",
        "per_page": "15",
        "prev_page_url": null,
        "to": 1,
        "total": 1
    }
}

返回参数说明:

返回参数说明(分页):

参数名 类型 说明
current_page int 当前页数
per_page int 每页条数
to int 当前页条数
total int 总条数(直推人数)
data array 内容数据

data参数说明:

参数名 类型 说明
id string 分类
title string 分类名称
thumb_url string 分类图片

备注: