简要描述:

  • 商机详情

请求域名:

  • http://xx.com

请求URL:

POST/plugin.wechat-chat-sidebar.frontend.controller.customer.opportunity.details

参数:

参数名 是否必须 类型 说明
client string 值是:work 代表是企业微信端
type int 值是:17 代表是企业微信端
opportunity_id int 商机ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "获取成功",
    "data": {
        "id": 11,
        "name": "自测123",
        "business_id": 11,
        "staff_id": 46,
        "customer_id": 8766,
        "status_id": 5,
        "type_id": 1,
        "details": "<p>我去饿我去</p>",
        "file_id": "28",
        "created_at": "2022-12-05 09:20:05",
        "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"
        },
        "has_one_annex": [
            {
                "id": 28,
                "uniacid": 25,
                "business_id": 11,
                "file_type": "file",
                "file_name": "芸众前端开发.docx",
                "file_size": "7129318",
                "file": "files/25/2022/12/ba157075a993f75dc54dd369ca6f96e1.docx",
                "created_at": "2022-12-05 09:20:02",
                "updated_at": "2022-12-05 09:20:02",
                "deleted_at": null,
                "file_url": "https://ysm-1251768088.cos.ap-guangzhou.myqcloud.com/files/25/2022/12/ba157075a993f75dc54dd369ca6f96e1.docx"
            }
        ]
    }
}

错误时返回:

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

返回参数说明:

参数名 类型 说明
id int 商机id
namg string 商机名称
details string 商机详情
has_one_status.name string 商机状态名称
has_one_type.namg string 商机类型名称
has_one_status.id int 商机状态id
has_one_type.id int 商机类型id
has_one_staff.name string 创建人名称
has_one_annex[].file_name array 商机附件名
has_one_annex[].url array 商机附件地址
created_at string 创建时间

备注:

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