## 添加私客
> 代号:1000_u2
>可能返回的错误码:999,1006
+++
Xmkz_v3/PrivateGuest/addUserGuest
*customer_name=私客姓名 #
*customer_phone=私客电话 #
certificates=身份证 #
address=地址 #
*house_type_id=需求的房源类型 #
*entrust_type=委托类型 #
*price_units_id=价格单位ID #
*price=价格上限 #
*region=委托区域 #
*company_name=委托公司名称 #
*industry_id=公司名称ID #
*describe=描述 #
*settled=是否立即入驻 #
*user_id=用户ID #
<<<
success
{
"data": "2", //私客ID
"info": "添加成功",
"code": 1000,
"state": 1
}
<<<
error
{
"data": "",
"info": "请输入2到4位字的姓名。",
"code": 1006,
"state": 2
}
+++
## 搜索私客
> 代号:1000_s4
>可能返回的错误码:999,998,1020,1006
+++
get:Xmkz_v3/PrivateGuest/searchUserGuest?token=用户token
*page=当前页数 #
*searchKey=搜索关键字 #
<<<
success
{
"data": [
{
"id": "1",
"customer_name": "方法", //私客姓名
"customer_phone": "15507898841", //私客电话
"lead_num": "0" //带看次数
}
],
"info": "查询成功。",
"code": 1000,
"state": 1
}
<<<
error
+++
## 获取私客列表
> 代号:1000_u2
>可能返回的错误码:999,1006
+++
get:Xmkz_v3/PrivateGuest/addUserGuest?token=用户token
*page=需要获取的页数,默认为第一页 #
<<<
success
{
"data": {
"total": "2", //私客总数
"list": [
{
"id": "2",
"customer_name": "222",
"customer_phone": "15507898841",
"lead_num": "0"
},
{
"id": "1",
"customer_name": "方法",
"customer_phone": "15507898841",
"lead_num": "0"
}
]
},
"info": "查询成功",
"code": 1000,
"state": 1
}
<<<
error
{
"data": “”,
"info": "暂无私客信息",
"code": 1017,
"state": 2
}
+++
## 获取私客列表
> 代号:1000_u2
>可能返回的错误码:999,1006
+++
get:Xmkz_v3/PrivateGuest/getStateUserGuest?token=用户token
*page=需要获取的页数,默认为第一页 #
*state=状态 # //0为全部私客,1为已带看私客。2为未带看私客
<<<
success
{
"data": {
"total": "2", //私客总数
"list": [
{
"id": "2",
"customer_name": "222",
"customer_phone": "15507898841",
"lead_num": "0"
},
{
"id": "1",
"customer_name": "方法",
"customer_phone": "15507898841",
"lead_num": "0"
}
]
},
"info": "查询成功",
"code": 1000,
"state": 1
}
<<<
error
{
"data": “”,
"info": "暂无私客信息",
"code": 1017,
"state": 2
}
+++
## 获取私客详情
> 代号:1000_u2
>可能返回的错误码:999,1006
+++
get:Xmkz_v3/PrivateGuest/getUserGuestDetails?token=用户token
*GuestId=私客ID #
<<<
success
{
"data": {
"id": "1",
"customer_name": "方法",
"customer_phone": "15507898841",
"certificates": "450521199508125555",
"address": "0",
"house_type_id": "2",
"entrust_type": "1",
"demand_area": "a:2:{s:16:\"demand_ar",
"price_units_id": "1",
"price": "11",
"region": "22",
"company_name": "11",
"industry_id": "1",
"describe": "2222",
"settled": "0",
"user_id": "0",
"lead_num": "0"
},
"info": "查询成功",
"code": 1000,
"state": 1
}
<<<
error
{
"data": "",
"info": "私客ID不可为空",
"code": 1018,
"state": 2
}
+++
## 添加普通带看
> 代号:1000_s4
>可能返回的错误码:999,998,1020,1006
+++
post:Xmkz_v3/PrivateGuest/lead_see?token=用户token
*user_guest_id=私客ID #
*house_type_id=用户自己的户型 #
*content=私客ID #
*image_data_id=图片表ID。json格式【上传图片后,会返回图片IMG,将多张图片的ID转为json格式】 // 如:[1,2,3,4,5] #
<<<
success
{
"data": "",
"info": "添加成功。",
"code": 1000,
"state": 1
}
<<<
error
{
"data": "",
"info": "上传的图片格式不正确",
"code": 1020,
"state": 2
}
+++