简要描述:

项目列表查询接口

请求域名:

  • 链接1

请求路由:

GET/&route=plugin.lawyer-platform.frontend.controllers.lawyer.getLawyerList

请求参数说明:

参数名 类型 是否必需 说明
year_type array 多选年份数组, [1,2,3,4,5]
sex int 性别1男,2 女
age_type array 多选年龄数组, [1,2,3,4,5]

返回示例:

正确时返回:

json
{
    "result": 1,
    "msg": "ok",
    "data": {
        "list": {
            "current_page": 1,
            "data": [
                {
                    "id": 1,
                    "name": "adad",
                    "avatar": "newimage/676b4a331c2e659c1822462d6012ff06.gif",
                    "lf_id": 1,
                    "category_ids": [
                        1,
                        2
                    ],
                    "year": "12",
                    "title": "ada",
                    "city_id": 130200,
                    "location": [
                        "116.413384",
                        "39.910925"
                    ],
                    "category_data": [
                        {
                            "id": 1,
                            "title": "a",
                            "thumb_image": ""
                        },
                        {
                            "id": 2,
                            "title": "B",
                            "thumb_image": ""
                        }
                    ],
                    "city_name": "唐山市",
                    "distance": "--km",
                    "avatar_image": "http://www.shop777.com/static/upload/newimage/676b4a331c2e659c1822462d6012ff06.gif",
                    "number_thumb_image": "",
                    "id_card_front_thumb_image": "",
                    "id_card_back_thumb_image": "",
                    "status_name": "正常",
                    "lawyer_firm": {
                        "id": 1,
                        "name": "adad",
                        "logo_image": "",
                        "thumb_image": ""
                    }
                }
            ],
            "first_page_url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
            "links": [
                {
                    "url": null,
                    "label": "« 上一页",
                    "active": false
                },
                {
                    "url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "下一页 »",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "http://www.shop777.com/addons/yun_shop/api.php",
            "per_page": 15,
            "prev_page_url": null,
            "to": 1,
            "total": 1
        },
        "time_range": [
            {
                "value": 1,
                "title": "1-3年"
            },
            {
                "value": 2,
                "title": "4-6年"
            },
            {
                "value": 3,
                "title": "7-10年"
            },
            {
                "value": 4,
                "title": "11-20年"
            },
            {
                "value": 5,
                "title": "20年以上"
            }
        ],
        "age_range": [
            {
                "value": 1,
                "title": "30岁以下"
            },
            {
                "value": 2,
                "title": " 30-45岁"
            },
            {
                "value": 3,
                "title": "45-60岁"
            },
            {
                "value": 4,
                "title": "60岁以上"
            }
        ]
    }
}

返回参数说明:

新增参数说明:

参数名 类型 说明
time_range array 时间选择数组
time_range[n].value int 选中时的值
time_range[n].title str 选项框显示的名称
age_range array 时间选择数组
age_range[n].value int 选中时的值
age_range[n].title str 选项框显示的名称