##經紀人添加樓盤
域名/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
+++