文档
测试

更新客户信息

POST
http://test.52miaosuan.com:8090/miaosuan/customer/update

接口描述

更新客户信息,请求参数为json格式

请求头

参数名
类型
描述
必填
user_id
int
用户编号
必填

请求参数

参数名
类型
描述
必填
customer_id
int
待更新客户ID
必填
customer_name
string
客户名称,示例:张先生
必填
customer_address
string
客户地址,示例:上海绿城10号1001
必填
customer_phone
string
客户手机号,示例:15612341234
必填
customer_status
int
客户状态枚举,1 - 意向,2 - 定金,3 - 量房,4 - 设计,5 - 预算,6 - 合同,7 - 施工,8 - 交付,9 - 丢单
必填
customer_source
int
客户来源ID,示例:1
必填
customer_budget
int
客户预算,示例:20
必填
customer_type
int
客户类型,1 - 意愿较强,2 - 意愿一般,3 - 暂无意愿
必填
description
string
客户备注,示例:3室2厅,大概180平米
必填
community_name
string
小区名称
必填
room_number
string
门牌号
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:成功
必填
data
int
null
必填

说明 / 示例

请求参数: ```json { "customer_id": 1, "customer_name": "张先生", "customer_address": "上海绿城10号1001", "customer_phone": "15612341234", "customer_status": 1, "customer_source": 1, "customer_budget": 20, "customer_type": 1, "description": "3室2厅,大概180平米", "follower_id": 38 } ``` 返回响应: ```json { "code": 0, "msg": "成功", "data": null } ```