简要描述:
- 首页
请求域名:
- http://xx.com
请求URL:
POST/plugin.wechat-chat-sidebar.frontend.controller.customer.opportunity.index
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
client | 是 | string | 值是:work 代表是企业微信端 |
type | 是 | int | 值是:17 代表是企业微信端 |
search.status_id | 否 | int | 商机状态 |
search.type_id | 否 | int | 商机类型 |
search.staff | 否 | string | 创建人 |
search.name | 否 | int | 商机名称 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "获取成功",
"data": {
"current_page": 1,
"data": [
{
"id": 11,
"name": "自测123",
"business_id": 11,
"staff_id": 46,
"customer_id": 8766,
"status_id": 5,
"type_id": 1,
"file_id": "28",
"created_at": "2022-12-05 09:20:05",
"has_one_annex": {
"id": 28,
"file": "files/25/2022/12/ba157075a993f75dc54dd369ca6f96e1.docx",
"file_size": "7129318",
"file_name": "芸众前端开发.docx",
"file_type": "file",
"file_url": "https://ysm-1251768088.cos.ap-guangzhou.myqcloud.com/files/25/2022/12/ba157075a993f75dc54dd369ca6f96e1.docx"
},
"has_one_status": {
"id": 5,
"name": "ssss"
},
"has_one_type": {
"id": 1,
"name": "ww"
},
"has_one_customer": {
"id": 8766,
"name": "测试-1.4",
"mobile": "13922415554"
},
"has_one_staff": {
"id": 46,
"name": "测试员工",
"uid": 164138,
"avatar": "https://wework.qpic.cn/wwpic/1994_0JK-2ix_RzOxFjM_1658209118/0",
"userid": null,
"avatar_mediaid": "https://wework.qpic.cn/wwpic/1994_0JK-2ix_RzOxFjM_1658209118/0"
}
},
{
"id": 10,
"name": "",
"business_id": 11,
"staff_id": 46,
"customer_id": 8766,
"status_id": 5,
"type_id": 1,
"file_id": "0",
"created_at": "2022-12-01 17:21:37",
"has_one_annex": null,
"has_one_status": {
"id": 5,
"name": "ssss"
},
"has_one_type": {
"id": 1,
"name": "ww"
},
"has_one_customer": {
"id": 8766,
"name": "测试-1.4",
"mobile": "13922415554"
},
"has_one_staff": {
"id": 46,
"name": "测试员工",
"uid": 164138,
"avatar": "https://wework.qpic.cn/wwpic/1994_0JK-2ix_RzOxFjM_1658209118/0",
"userid": null,
"avatar_mediaid": "https://wework.qpic.cn/wwpic/1994_0JK-2ix_RzOxFjM_1658209118/0"
}
}
],
"first_page_url": "https://dev15.yunzmall.com/business/25/plugin/opportunityManagement/myOpportunityList?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://dev15.yunzmall.com/business/25/plugin/opportunityManagement/myOpportunityList?page=1",
"next_page_url": null,
"path": "https://dev15.yunzmall.com/business/25/plugin/opportunityManagement/myOpportunityList",
"per_page": 15,
"prev_page_url": null,
"to": 11,
"total": 11
}
}
错误时返回:
{
"errcode": 500,
"errmsg": "invalid appid"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 商机id |
namg | string | 商机名称 |
has_one_status.name | string | 商机状态名称 |
has_one_type.namg | string | 商机类型名称 |
has_one_staff.name | string | 创建人名称 |
created_at | string | 创建时间 |
备注:
- 更多返回错误代码请看首页的错误代码描述