求购 / 求租
<h2>求购 / 求租</h2>
<ul>
<li><a href="https://www.showdoc.com.cn/1998312633263128/9047487273777690#%E7%AE%80%E8%A6%81%E6%8F%8F%E8%BF%B0">简要描述</a></li>
<li><a href="https://www.showdoc.com.cn/1998312633263128/9047487273777690#%E8%AF%B7%E6%B1%82URL">请求URL</a></li>
<li><a href="https://www.showdoc.com.cn/1998312633263128/9047487273777690#%E8%AF%B7%E6%B1%82%E6%96%B9%E5%BC%8F">请求方式</a></li>
<li><a href="https://www.showdoc.com.cn/1998312633263128/9047487273777690#Header">Header</a></li>
<li><a href="https://www.showdoc.com.cn/1998312633263128/9047487273777690#%E8%AF%B7%E6%B1%82Query%E5%8F%82%E6%95%B0">请求Query参数</a></li>
<li><a href="https://www.showdoc.com.cn/1998312633263128/9047487273777690#%E6%88%90%E5%8A%9F%E8%BF%94%E5%9B%9E%E7%A4%BA%E4%BE%8B">成功返回示例</a></li>
<li><a href="https://www.showdoc.com.cn/1998312633263128/9047487273777690#%E5%A4%87%E6%B3%A8">备注</a></li>
</ul>
<h5>简要描述</h5>
<ul>
<li>经纪人小程序 求购 / 求租</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://findroom.yscool.work/index.php/api/beg/rent</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>get</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th>header</th>
<th>示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>jwt</td>
<td>eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjp7ImlkIjoxLCJ1c2VybmFtZSI6IjE2NjUwNTUzOTMxIiwicGFzc3dvcmQiOiIkMnkkMTAkd05yLnRBLkJTUHA4dlRpY2QzbXBULmpFMTg0aHdlbUYwWWFpZUlOLmF4TGI0QjUvVHg4VjYiLCJoZWFkc2hvdCI6Imh0dHA6Ly9yZG55aDFhMDguYmt0LmNsb3VkZG4uY29tL3ExLmpwZyIsIm5pY2tuYW1lIjoiS2luZyIsImRlcGFydG1lbnRfaWQiOjEsImNvdW50IjozLCJlbWFpbCI6IjkyNzA3NTI0MkBxcS5jb20iLCJvcGVuaWQiOm51bGwsImNyZWF0ZWRfYXQiOiIyMDIyLTA2LTI0VDExOjUxOjQzLjAwMDAwMFoiLCJ1cGRhdGVkX2F0IjoiMjAyMi0wNi0yNFQxMTo1MTo0NS4wMDAwMDBaIiwiZGVsZXRlZF9hdCI6IjIwMjItMDYtMjQgMTk6NTE6NDcifSwibG9naW5UaW1lIjoiMjAyMi0wNi0zMCAyMDo0NDo0MyJ9.BcySQcjmjZKoMy-exWme7HBkeIA9tAfm9o3pTB_nNR8</td>
<td>是</td>
<td>string</td>
<td>无</td>
</tr>
</tbody>
</table>
<h5>请求Query参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>status</td>
<td>1</td>
<td>是</td>
<td>string</td>
<td>无</td>
</tr>
<tr>
<td>cityId</td>
<td>1</td>
<td>是</td>
<td>string</td>
<td>无</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"msg": "发送成功",
"data": {
"rentData": {
"current_page": 1,
"data": [
{
"id": 7,
"fang_xiaoqu": 1,
"fang_type": 5,
"fang_region": 520,
"fang_build_area": "120",
"fang_budget": "100",
"fang_title": "要好房子",
"fang_desn": "要好房子要好房子要好房子",
"user_id": 1,
"rent_buy": 1,
"created_at": "2022-06-30T13:47:00.000000Z",
"updated_at": "2022-06-30T13:47:00.000000Z",
"deleted_at": null,
"get_region": {
"id": 520,
"nid": 2825,
"name": "闵行区",
"pid": 2,
"deleted_at": null
}
},
{
"id": 6,
"fang_xiaoqu": 1,
"fang_type": 5,
"fang_region": 520,
"fang_build_area": "120",
"fang_budget": "100",
"fang_title": "要好房子",
"fang_desn": "要好房子要好房子要好房子",
"user_id": 1,
"rent_buy": 1,
"created_at": "2022-06-30T13:44:27.000000Z",
"updated_at": "2022-06-30T13:44:27.000000Z",
"deleted_at": null,
"get_region": {
"id": 520,
"nid": 2825,
"name": "闵行区",
"pid": 2,
"deleted_at": null
}
},
{
"id": 5,
"fang_xiaoqu": 1,
"fang_type": 5,
"fang_region": 520,
"fang_build_area": "120",
"fang_budget": "100",
"fang_title": "要好房子",
"fang_desn": "要好房子要好房子要好房子",
"user_id": 1,
"rent_buy": 1,
"created_at": "2022-06-30T13:44:04.000000Z",
"updated_at": "2022-06-30T13:44:04.000000Z",
"deleted_at": null,
"get_region": {
"id": 520,
"nid": 2825,
"name": "闵行区",
"pid": 2,
"deleted_at": null
}
},
{
"id": 4,
"fang_xiaoqu": 1,
"fang_type": 5,
"fang_region": 520,
"fang_build_area": "120",
"fang_budget": "100",
"fang_title": "要好房子",
"fang_desn": "要好房子要好房子要好房子",
"user_id": 1,
"rent_buy": 1,
"created_at": "2022-06-30T13:43:57.000000Z",
"updated_at": "2022-06-30T13:43:57.000000Z",
"deleted_at": null,
"get_region": {
"id": 520,
"nid": 2825,
"name": "闵行区",
"pid": 2,
"deleted_at": null
}
},
{
"id": 3,
"fang_xiaoqu": 1,
"fang_type": 5,
"fang_region": 520,
"fang_build_area": "120",
"fang_budget": "100",
"fang_title": "要好房子",
"fang_desn": "要好房子要好房子要好房子",
"user_id": 1,
"rent_buy": 1,
"created_at": "2022-06-30T13:43:12.000000Z",
"updated_at": "2022-06-30T13:43:12.000000Z",
"deleted_at": null,
"get_region": {
"id": 520,
"nid": 2825,
"name": "闵行区",
"pid": 2,
"deleted_at": null
}
}
],
"first_page_url": "http://www.room.com/index.php/api/beg/rent?page=1",
"from": 1,
"last_page": 2,
"last_page_url": "http://www.room.com/index.php/api/beg/rent?page=2",
"links": [
{
"url": null,
"label": "&laquo; Previous",
"active": false
},
{
"url": "http://www.room.com/index.php/api/beg/rent?page=1",
"label": "1",
"active": true
},
{
"url": "http://www.room.com/index.php/api/beg/rent?page=2",
"label": "2",
"active": false
},
{
"url": "http://www.room.com/index.php/api/beg/rent?page=2",
"label": "Next &raquo;",
"active": false
}
],
"next_page_url": "http://www.room.com/index.php/api/beg/rent?page=2",
"path": "http://www.room.com/index.php/api/beg/rent",
"per_page": 5,
"prev_page_url": null,
"to": 5,
"total": 7
},
"houseType": [
{
"id": 1,
"type": "多层住宅",
"created_at": "2022-06-25T14:57:43.000000Z",
"updated_at": "2022-06-25T14:57:43.000000Z"
},
{
"id": 2,
"type": "高层住宅",
"created_at": "2022-06-25T14:58:12.000000Z",
"updated_at": "2022-06-25T14:58:12.000000Z"
},
{
"id": 3,
"type": "小高层住宅",
"created_at": null,
"updated_at": null
},
{
"id": 4,
"type": "商铺/门面房",
"created_at": null,
"updated_at": null
},
{
"id": 5,
"type": "厂房",
"created_at": null,
"updated_at": null
},
{
"id": 6,
"type": "写字楼",
"created_at": null,
"updated_at": null
},
{
"id": 7,
"type": "独院/别墅",
"created_at": null,
"updated_at": null
},
{
"id": 8,
"type": "车库",
"created_at": null,
"updated_at": null
}
],
"area": [
{
"id": 36,
"nid": 72,
"name": "朝阳区",
"pid": 1,
"deleted_at": null
},
{
"id": 37,
"nid": 2800,
"name": "海淀区",
"pid": 1,
"deleted_at": null
},
{
"id": 38,
"nid": 2801,
"name": "西城区",
"pid": 1,
"deleted_at": null
},
{
"id": 39,
"nid": 2802,
"name": "东城区",
"pid": 1,
"deleted_at": null
},
{
"id": 40,
"nid": 2803,
"name": "崇文区",
"pid": 1,
"deleted_at": null
},
{
"id": 41,
"nid": 2804,
"name": "宣武区",
"pid": 1,
"deleted_at": null
},
{
"id": 42,
"nid": 2805,
"name": "丰台区",
"pid": 1,
"deleted_at": null
},
{
"id": 43,
"nid": 2806,
"name": "石景山区",
"pid": 1,
"deleted_at": null
},
{
"id": 44,
"nid": 2807,
"name": "门头沟",
"pid": 1,
"deleted_at": null
},
{
"id": 45,
"nid": 2808,
"name": "房山区",
"pid": 1,
"deleted_at": null
},
{
"id": 46,
"nid": 2809,
"name": "通州区",
"pid": 1,
"deleted_at": null
},
{
"id": 47,
"nid": 2810,
"name": "大兴区",
"pid": 1,
"deleted_at": null
},
{
"id": 48,
"nid": 2812,
"name": "顺义区",
"pid": 1,
"deleted_at": null
},
{
"id": 49,
"nid": 2814,
"name": "怀柔区",
"pid": 1,
"deleted_at": null
},
{
"id": 50,
"nid": 2816,
"name": "密云区",
"pid": 1,
"deleted_at": null
},
{
"id": 51,
"nid": 2901,
"name": "昌平区",
"pid": 1,
"deleted_at": null
},
{
"id": 52,
"nid": 2953,
"name": "平谷区",
"pid": 1,
"deleted_at": null
},
{
"id": 53,
"nid": 3065,
"name": "延庆县",
"pid": 1,
"deleted_at": null
},
{
"id": 493,
"nid": 72,
"name": "朝阳区",
"pid": 1,
"deleted_at": null
},
{
"id": 494,
"nid": 2800,
"name": "海淀区",
"pid": 1,
"deleted_at": null
},
{
"id": 495,
"nid": 2801,
"name": "西城区",
"pid": 1,
"deleted_at": null
},
{
"id": 496,
"nid": 2802,
"name": "东城区",
"pid": 1,
"deleted_at": null
},
{
"id": 497,
"nid": 2803,
"name": "崇文区",
"pid": 1,
"deleted_at": null
},
{
"id": 498,
"nid": 2804,
"name": "宣武区",
"pid": 1,
"deleted_at": null
},
{
"id": 499,
"nid": 2805,
"name": "丰台区",
"pid": 1,
"deleted_at": null
},
{
"id": 500,
"nid": 2806,
"name": "石景山区",
"pid": 1,
"deleted_at": null
},
{
"id": 501,
"nid": 2807,
"name": "门头沟",
"pid": 1,
"deleted_at": null
},
{
"id": 502,
"nid": 2808,
"name": "房山区",
"pid": 1,
"deleted_at": null
},
{
"id": 503,
"nid": 2809,
"name": "通州区",
"pid": 1,
"deleted_at": null
},
{
"id": 504,
"nid": 2810,
"name": "大兴区",
"pid": 1,
"deleted_at": null
},
{
"id": 505,
"nid": 2812,
"name": "顺义区",
"pid": 1,
"deleted_at": null
},
{
"id": 506,
"nid": 2814,
"name": "怀柔区",
"pid": 1,
"deleted_at": null
},
{
"id": 507,
"nid": 2816,
"name": "密云区",
"pid": 1,
"deleted_at": null
},
{
"id": 508,
"nid": 2901,
"name": "昌平区",
"pid": 1,
"deleted_at": null
},
{
"id": 509,
"nid": 2953,
"name": "平谷区",
"pid": 1,
"deleted_at": null
},
{
"id": 510,
"nid": 3065,
"name": "延庆县",
"pid": 1,
"deleted_at": null
}
]
},
"code": 200
}</code></pre>
<h5>备注</h5>