简要描述:

  • 策略列表

请求域名:

  • http://xx.com

请求URL:

POST/xx.com/business/{公众号id}/plugin/CustomerManage/PloyManage/index

参数:

参数名 是否必须 类型 说明
search.name string 策略名称
search.staff_id int 员工id
search.tag_ids array 标签id
search.group_ids array 标签组id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "ploy_list": {
            "current_page": 1,
            "data": [
                {
                    "id": 5,
                    "staff_id": 3,
                    "owner_id": 1,
                    "name": "院属类思业议",
                    "created_at": "2023-07-05 10:18:24",
                    "staff": {
                        "id": 3,
                        "name": "创始人",
                        "userid": null,
                        "avatar_mediaid": null
                    },
                    "owner": {
                        "id": 1,
                        "name": "测试员工1",
                        "userid": null,
                        "avatar_mediaid": null
                    }
                },
                {
                    "id": 9,
                    "staff_id": 2,
                    "owner_id": 2,
                    "name": "论期题标证消持",
                    "created_at": "2023-07-05 11:08:47",
                    "staff": {
                        "id": 2,
                        "name": "测试员工2",
                        "userid": null,
                        "avatar_mediaid": null
                    },
                    "owner": {
                        "id": 2,
                        "name": "测试员工2",
                        "userid": null,
                        "avatar_mediaid": null
                    }
                }
            ],
            "first_page_url": "http://yzhonshop.com/business/1/plugin/CustomerManage/PloyManage/index?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http://yzhonshop.com/business/1/plugin/CustomerManage/PloyManage/index?page=1",
            "next_page_url": null,
            "path": "http://yzhonshop.com/business/1/plugin/CustomerManage/PloyManage/index",
            "per_page": 15,
            "prev_page_url": null,
            "to": 2,
            "total": 2
        }
    }
}

错误时返回:

  {
    "errcode": 500,
    "errmsg": "invalid appid"
  }

返回参数说明:

参数名 类型 说明
ploy_list.namg string 策略名称
ploy_list.created_at string 创建时间
ploy_list.staff array 目标成员
ploy_list.owner array 创建人

备注:

  • 更多返回错误代码请看首页的错误代码描述