区块链

区块链接口详情


租房,房管局核验

<h2>房屋租赁接口文档</h2> <p><strong>1. /租房联盟链/房产局 批量上链</strong> <strong>接口状态:</strong>开发中 <strong>接口URL:</strong><a href="http://127.0.0.1:8099/house">http://127.0.0.1:8099/house</a> <strong>请求方式</strong>POST <strong>Content-Type:</strong> form-data <strong>请求Body参数</strong></p> <table> <thead> <tr> <th style="text-align: left;"></th> <th>参数名</th> <th>示例值</th> <th>参数类型</th> <th>是否必填</th> <th>参数描述</th> <th></th> </tr> </thead> <tbody> <tr> <td style="text-align: left;"></td> <td>---</td> <td>---</td> <td>----</td> <td>----</td> <td>----</td> <td></td> </tr> <tr> <td style="text-align: left;"></td> <td>house</td> <td>[&quot;/Users/hyx/Desktop/区块链/house.csv&quot;]</td> <td>String</td> <td>是</td> <td>-</td> <td></td> </tr> </tbody> </table> <p><strong> 成功响应示例</strong></p> <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;data&amp;quot;: { &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot; } }</code></pre> <table> <thead> <tr> <th style="text-align: left;"></th> <th>参数名</th> <th>示例值</th> <th>参数类型</th> <th>参数描述</th> <th></th> </tr> </thead> <tbody> <tr> <td style="text-align: left;"></td> <td>---</td> <td>---</td> <td>----</td> <td>----</td> <td></td> </tr> <tr> <td style="text-align: left;"></td> <td>code</td> <td>200</td> <td>Integer</td> <td>身份证号</td> <td></td> </tr> <tr> <td style="text-align: left;"></td> <td>data</td> <td>-</td> <td>Object</td> <td></td> <td></td> </tr> <tr> <td style="text-align: left;"></td> <td>data.msg</td> <td>success</td> <td>String</td> <td>成功返回</td> <td></td> </tr> </tbody> </table> <p><strong>错误响应示例</strong></p> <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;data&amp;quot;: { &amp;quot;msg&amp;quot;: &amp;quot;批量导入异常&amp;quot; } }</code></pre> <hr /> <hr /> <p><strong>2./租房联盟链/房管局 校验是否可出租</strong></p> <p><strong> 接口状态:</strong>开发中 <strong>接口URL:</strong> <a href="http://127.0.0.1:8099/house">http://127.0.0.1:8099/house</a> <strong>请求方式:</strong>GET <strong>Content-Type:</strong>form-data</p> <p><strong>请求Body参数</strong></p> <table> <thead> <tr> <th style="text-align: left;"></th> <th>参数名</th> <th>示例值</th> <th>参数类型</th> <th>是否必填</th> <th>参数描述</th> <th></th> </tr> </thead> <tbody> <tr> <td style="text-align: left;"></td> <td>---</td> <td>---</td> <td>----</td> <td>----</td> <td>----</td> <td></td> </tr> <tr> <td style="text-align: left;"></td> <td>houseId</td> <td>11</td> <td>String</td> <td>是</td> <td>-</td> <td></td> </tr> <tr> <td style="text-align: left;"></td> <td>code</td> <td>350481919191919191</td> <td>String</td> <td>是</td> <td>身份证号</td> <td></td> </tr> </tbody> </table> <p><strong>成功响应示例</strong></p> <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;data&amp;quot;: { &amp;quot;isRent&amp;quot;: true } }</code></pre> <table> <thead> <tr> <th style="text-align: left;"></th> <th>参数名</th> <th>示例值</th> <th>参数类型</th> <th>参数描述</th> <th></th> </tr> </thead> <tbody> <tr> <td style="text-align: left;"></td> <td>---</td> <td>---</td> <td>----</td> <td>----</td> <td></td> </tr> <tr> <td style="text-align: left;"></td> <td>code</td> <td>200</td> <td>Integer</td> <td>身份证号</td> <td></td> </tr> <tr> <td style="text-align: left;"></td> <td>data</td> <td>-</td> <td>Object</td> <td></td> <td></td> </tr> <tr> <td style="text-align: left;"></td> <td>data.isRent</td> <td>true</td> <td>Boolean</td> <td>true:可租,false:不可租</td> <td></td> </tr> </tbody> </table> <p>错误响应示例</p> <pre><code> { &amp;quot;code&amp;quot;: 400, &amp;quot;data&amp;quot;: { &amp;quot;msg&amp;quot;: &amp;quot;houseId 必填字段;Code 长度必须是:18位;&amp;quot; } }</code></pre> <table> <thead> <tr> <th style="text-align: left;"></th> <th>参数名</th> <th>示例值</th> <th>参数类型</th> <th>参数描述</th> <th></th> </tr> </thead> <tbody> <tr> <td style="text-align: left;"></td> <td>---</td> <td>---</td> <td>----</td> <td>----</td> <td></td> </tr> <tr> <td style="text-align: left;"></td> <td>code</td> <td>400</td> <td>String</td> <td>身份证号</td> <td></td> </tr> <tr> <td style="text-align: left;"></td> <td>msg</td> <td>Name 必填字段;Code 长度必须是:18位;</td> <td>String</td> <td>错误消息</td> <td></td> </tr> </tbody> </table>

页面列表

ITEM_HTML