##经纪人添加楼盘
域名/index.php/App/Housing/new_premises_ag/token/用户token
+++
*name# 楼盘名称
*district# 区域id
*street# 街道id
mag_fee# 物管费
air_fee# 空调费
floor # 楼层
net_height# 净层高
traffic# 交通
mean_rent# 平均月租
<<<
success
{
"premisesId": "22",
"msg": "100",
"edit": "1", //因该数据未审核通过。用户上传房源的时候如果选择的是未审核通过的楼盘。需要该值
"name": "若风",
"info": '添加成功,等待客服认证。';
"data": {
"type": "broker",
"error": ""
}
}
<<<
error
{
"msg": "102",
"data": {
"type": "broker",
"error": "楼盘名称长度在4到30位之间!"
}
}
+++
##经纪人添加户型
域名/index.php/App/Housing/new_housety_ag/token/用户token
+++
*premises_id# 楼盘id
*name# 户型房号或标识
*area# 面积
*mean_rent# 平均租金
rent# 总租金
number# 可容纳人数
*decorate# 装修类型id
mag_fee # 管理费
air_fee# 空调费
*con_name# 联系人姓名
*con_tel# 联系人手机
status 状态
<<<
success
{
"HouseTypeId": "21",
"msg": "100",
"data": {
"type": "broker",
"error": ""
}
}
<<<
error
{
"msg": "102",
"data": {
"type": "broker",
"error": "户型房间号码或标识长度在3到30位之间!"
}
}
+++
##获取经纪人上传的户型下的楼盘
域名/index.php/App/Housing/getPeroperyList/token/用户TOKEN
+++
*page# 当前页数
*num # 每页数量
<<<
success
{
"msg": "100",
"data": [
{
"id": "51",
"mag_fee": "30",
"air_fee": "30",
"floor": "20",
"traffic": "地铁、公交",
"mean_rent": "1000",
"net_height": "4",
"house_type_id": "71",
"premises_name": "彩虹科技大厦",
"district_name": "南山区",
"street_name": "华侨城",
"img": "http://xiaomakuaizu.oss-cn-shenzhen.aliyuncs.com/image/201611091417534755.png"
}
]
}
<<<
error
{
"msg": "102",
"data":“”
}
+++
##获取经纪人楼盘下的户型
域名/index.php/App/Housing/getUserHousing/token/用户TOKEN 传输方式:GET
+++
*peroperyId# 楼盘ID
<<<
success
{
"id": "507",
"name": "科兴科学园",
"district": "南山区",
"street": "科技园",
"img": "http://xiaomakuaizu.oss-cn-shenzhen.aliyuncs.com/image/20161129145912.jpg",
"title": null,
"info": "查询成功。",
"state": 1,
"count": 1,
"house_type": [
{
"id": "42463",
"name": "A1406",
"area": "206",
"decorate": "未知",
"mean_rent": "128",
"img": "http://xiaomakuaizu.oss-cn-shenzhen.aliyuncs.com/image/201612211428116695.png",
"title": null,
"traffic": null
}
]
}
<<<
error
{
"info": "查询成功。", //失败原因
"state": 0,
"count": 0,
"house_type": “”
}
+++
##搜索接口
域名/index.php/App/Housing/search 传输方式POST
+++
*num# 每页显示条数 //默认为10
*page# 当前页数 //默认为0
searchKey# 搜索关键字
district# 区域(如:南山id)
street# 街道(如:后海id)
area# 面积
mean_rent# 平均价
decorate# 装修类型
<<<
success
{
"info": "查询成功。",
"state": 1,
"data": [
{
"id": "48225",
"decorate": "1",
"area": "12",
"mean_rent": "12",
"district": "1",
"name": "商服大厦",
"img": "http://xiaomakuaizu.oss-cn-shenzhen.aliyuncs.com/image/20161129145912.jpg",
"title": null
},
{
"id": "48215",
"decorate": "0",
"area": "190",
"mean_rent": "110",
"district": "1",
"name": "华润城大冲国际大厦",
"img": "http://xiaomakuaizu.oss-cn-shenzhen.aliyuncs.com/image/20161129145912.jpg",
"title": null
}
]
}
<<<
error
{
"info": "查询失败。",
"state": 0,
"data": “”
}
+++
##分页获取户型
域名/index.php/App/Housing/getPageHouse.html 传输方式GET
+++
page# 当前页数
num# 每页显示条数
<<<
success
{
"info": "获取房源成功。",
"state": 1,
"retData": [
{
"img": "http://xiaomakuaizu.oss-cn-shenzhen.aliyuncs.com/image/20161129145912.jpg",
"title": null,
"id": "61201",
"area": "2",
"name": "星河世纪大厦A座",
"mean_rent": "100",
"district": "福田区",
"street": "福田中心区"
},
{
"img": "http://xiaomakuaizu.oss-cn-shenzhen.aliyuncs.com/image/20161129145912.jpg",
"title": null,
"id": "61196",
"area": "240",
"name": "北科大厦",
"mean_rent": "0",
"district": "南山区",
"street": "后海"
}
]
}
<<<
error
{
"info": "没有房源或获取房源失败。",
"state": 0,
"retData":
}
+++
##户型详情
域名/index.php/App/Housing/getHousety 传输方式GET
+++
*id# 户型ID
<<<
success
{
"msg": "100",
"data": {
"id": "3",
"name": "顶层办公室",
"area": "100",
"rent": "20000",
"number": "30",
"decorate_id": "0",
"decorate_name": "未知",
"mag_fee": "0",
"air_fee": "0",
"con_name": "小马哥",
"con_tel": "18125493328",
"status": "1",
"userid": "42",
"decorate_name": "未知",
"premises_name": "西海明珠花园",
"premises_id": "542",
"img": [
{
"id": "26",
"img": "image/201610111151028193.png"
},
{
"id": "26",
"img": "image/201610111151028193.png"
}
]
}
}
<<<
error
{
"msg": "102",
"data":“”
}
+++
##获取当前用户的楼盘
域名/index.php/Admin/Premises/getUserPremises/token/当前用户token
+++
<<<
success
{
"info":"\u83b7\u53d6\u623f\u6e90\u6210\u529f\uff01",
"state":1,
"retData":[{
"id":"42",
"name":"1980\u5927\u53a6",
"district":"3",
"street":"2",
"mag_fee":"122",
"air_fee":"32",
"floor":"32",
"net_height":"0",
"traffic":"",
"mean_rent":"1200"
},
{
"id":"42",
"name":"1980\u5927\u53a6",
"district":"3",
"street":"2",
"mag_fee":"122",
"air_fee":"32",
"floor":"32",
"net_height":"0",
"traffic":"",
"mean_rent":"1200"
}
]
}
<<<
error
{
"info":"\u83b7\u53d6\u623f\u6e90\u6210\u529f\uff01",
"state":1,
"retData":''
}
+++
##匹配房源
域名/index.php/App/Housing/matchingHousing/token/当前用户token 传输方式:GET
+++
*customerId# 客户ID
*page# 当前页数 默认第一页
*num# 默认10条
<<<
success
[
{
"id": "94",
"premises_id": "59",
"name": "1319",
"area": "150",
"rent": "0",
"number": "20",
"decorate": "2",
"mag_fee": "0",
"air_fee": "0",
"con_name": "陈颖超8",
"con_tel": "18577341430",
"status": "1",
"userid": "",
"mean_rent": "79",
"sort": 3
},
{
"id": "150",
"premises_id": "100",
"name": "1319",
"area": "100",
"rent": "100",
"number": "5",
"decorate": "3",
"mag_fee": "10",
"air_fee": "10",
"con_name": ";。?!",
"con_tel": "18577341430",
"status": "2",
"userid": "157",
"mean_rent": "0",
"sort": 1
}
]
<<<
error
{
"info":"\u83b7\u53d6\u623f\u6e90\u6210\u529f\uff01",
"state":1,
"retData":''
}
+++
##添加楼盘(不用客服审核)
index.php/Propery/Api/new_premises_mg/token/用户token 传输方式:POST
+++
*name# 名称
*district# 区域id
*street# 街道id
mag_fee# 物管费
air_fee# 空调费
floor# 大厦楼层
net_height# 净层高
traffic# 交通
*mean_rent# 平均月租
<<<
success
{
"msg": "100",
"premisesId": "707",
"info": "添加成功。",
"name": "成本发的",
"data": {
"type": "admin",
"error": ""
}
}
<<<
error
{
"msg": "102",
"premisesId": 0,
"name": "",
"info": "楼盘名称长度在1到30位之间!",
"data": {
"type": "admin",
"error": "楼盘名称长度在1到30位之间!"
}
}
+++
##添加户型
index.php/Propery/Api/new_housety_ag 传输方式:POST
+++
*premises_id# 楼盘id
*name# 户型房号或标识
*area# 面积
*mean_rent# 平均租金
rent# 总租金
number#可容纳人数
*decorate# 装修类型id
mag_fee#管理费
air_fee#空调费
*con_name#联系人姓名
*con_tel#联系人手机
*status#状态 (“1为未出租,2为已出租,3为已出售”)
<<<
success
{
"msg": "100",
"premisesId": "707",
"info": "添加成功。",
"name": "成本发的",
"data": {
"type": "admin",
"error": ""
}
}
<<<
error
{
"msg": "102",
"premisesId": 0,
"name": "",
"info": "楼盘名称长度在1到30位之间!",
"data": {
"type": "admin",
"error": "楼盘名称长度在1到30位之间!"
}
}
+++
##修改户型
index.php/App/Housing/edit_housety_ag/token/用户token 传输方式:POST
+++
*id# 户型id
*premises_id# 楼盘id
*name# name 户型房号或标识(必填)
*area# 面积
*mean_rent# 平均租金
rent# 总租金
*decorate# 装修类型id
number# 可容纳人数
mag_fee# 管理费
air_fee# 空调费
*con_name# 联系人姓名
*con_tel# 联系人手机
*status# 户型状态,1为未出租,2为已出租,3为已出售
<<<
success
{
"HouseTypeId": "48",
"msg": "100",
"state": 1,
"info": "添加成功。等待客服审核。",
"data": {
"type": "broker",
"error": ""
}
}
<<<
error
{
"HouseTypeId": "",
"msg": "102",
"state": 0,
"info": "错误原因 如:ID不可为空",
"data": {
"type": "broker",
"error": "错误原因 如:ID不可为空",
}
}
+++
##删除户型
index.php/App/Housing/del_own_housety/token/用户token 传输方式:POST
+++
*id# 户型id
<<<
success
{
"msg": "100",
"state": 1,
"info": "删除成功。",
}
<<<
error
{
"msg": "102",
"state": 0,
"info": "删除失败。"
}
+++
##添加图片
index.php/App/Housing/upload_img/token/用户token 传输方式:POST
+++
*id# 户型id
*file# 图片
<<<
success
{
"state": 1,
"info": "上传成功。"
}
<<<
error
{
"state": 0,
"info": "无权限操作"
}
+++
##删除图片
index.php/App/Housing/del_img/token/用户token 传输方式:POST
+++
*id# 图片id
<<<
success
{
"state": 1,
"info": "删除成功。"
}
<<<
error
{
"state": 0,
"info": "删除失败。" // 删除失败原因
}
+++
##查询户型下的图片
index.php/App/Housing/get_housety_img/token/用户token 传输方式:POST
+++
*housety_id# 户型id
<<<
success
{
"info": "查询成功",
"state": 1,
"data": [
{
"id": "195",
"img": "image/201612061641209598.png"
},
{
"id": "196",
"img": "image/201612061641252979.png"
}
]
}
<<<
error
{
"info": "缺少参数",
"state": 0,
"data": ""
}
+++
##获取户型详情
index.php/App/Housing/get_housety_img/token/用户token 传输方式:POST
+++
*housety_id# 户型id
<<<
success
{
"traffic": "",
"area": "325",
"mean_rent": "95",
"number": "0",
"decorate": "未知",
"air_fee": "0",
"mag_fee": "0",
"img": [
{
"img": "http://xiaomakuaizu.oss-cn-shenzhen.aliyuncs.com/image/20161129145912.jpg",
"title": ""
}
]
}
<<<
error
+++