文档
测试

搜索客户

GET
http://test.52miaosuan.com:8090/miaosuan/customer/search

接口描述

按照手机号或者客户名搜索用户

请求头

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

请求参数

参数名
类型
描述
必填
page_index
int
分页页码
必填
page_size
int
每页显示的条数
必填
search_key
string
搜索关键字
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:成功
必填
data
object
数据字典
必填
item_list
array
数据列表
必填
id
int
客户ID
必填
status
string
客户状态,示例:意向,定金,量房等
必填
customer_name
string
客户名称,示例:张先生
必填
status_id
int
客户状态ID,1 - 意向,2 - 定金,3 - 量房,4 - 设计,5 - 预算,6 - 合同,7 - 施工,8 - 交付,9 - 丢单
必填
customer_source
string
客户来源名称,示例:线上流量
必填
customer_source_id
int
客户来源ID,示例:1
必填
customer_budget
int
客户预算,示例:20
必填
update_time
string
更新时间,示例:03-09 14:06
必填
follower_name
string
跟进人名称,示例:金苹果
必填
follower_id
int
跟进人ID,示例:38
必填
total_num
int
示例:1
必填

说明 / 示例

返回响应: ```json { "code": 0, "msg": "成功", "data": { "item_list": [ { "id": 1, "status": "意向", "global_status": 0, # 0: 意向,1: 成单,2: 丢单,3: 完工 "customer_name": "张先生", "community_name": "小区名称", "room_number": "门牌号", "status_id": 1, "customer_source": "线上流量", "customer_source_id": 1, "customer_budget": 20.00, "update_time": "03-09 14:06", "follower_name": "金苹果", "follower_id": 38 } ], "total_num": 1 } } ```