安全规则
<p><strong>简要描述:</strong></p>
<ul>
<li>
<h1>安全规则 -查询</h1>
</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://xx.com/super_admin/firewall/grid</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>action</td>
<td>string</td>
<td>授权策略,ACCEPT:允许,DROP:拒绝,默认空</td>
</tr>
<tr>
<td>addr</td>
<td>string</td>
<td>地址</td>
</tr>
<tr>
<td>page</td>
<td>int</td>
<td>起始条,默认1</td>
</tr>
<tr>
<td>limit</td>
<td>int</td>
<td>数据条数,默认10</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: [{
&quot;addr&quot;: &quot;192.3.110.139&quot;,
&quot;stamp&quot;: &quot;2021-08-18 09:09:30&quot;,
&quot;id&quot;: 94,
&quot;action&quot;: &quot;DROP&quot;,
&quot;priority&quot;: 100
}],
&quot;count&quot;: 86
}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>action</td>
<td>String</td>
<td>授权策略,ACCEPT:允许,DROP:拒绝</td>
</tr>
<tr>
<td>stamp</td>
<td>string</td>
<td>时间</td>
</tr>
<tr>
<td>addr</td>
<td>string</td>
<td>地址</td>
</tr>
<tr>
<td>id</td>
<td>string</td>
<td>编号</td>
</tr>
<tr>
<td>priority</td>
<td>int</td>
<td>优先级</td>
</tr>
</tbody>
</table>
<p><strong>简要描述:</strong></p>
<ul>
<li>
<h1>添加</h1>
</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://xx.com/super_admin/firewall/add</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>action</td>
<td>string</td>
<td>授权策略,ACCEPT:允许,DROP:拒绝</td>
</tr>
<tr>
<td>addr</td>
<td>string</td>
<td>地址</td>
</tr>
<tr>
<td>priority</td>
<td>int</td>
<td>优先级</td>
</tr>
<tr>
<td>remark</td>
<td>string</td>
<td>备注</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: 1
}</code></pre>
<p><strong>简要描述:</strong></p>
<ul>
<li>
<h1>删除</h1>
</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://xx.com/super_admin/firewall/delete</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>ids</td>
<td>string</td>
<td>编号,多个以逗号分割</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: 1
}</code></pre>
<p><strong>备注</strong></p>
<p><strong>简要描述:</strong></p>
<ul>
<li>
<h1>获取ip地址所在地</h1>
</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://xx.com/common/ipAddr</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>ip</td>
<td>string</td>
<td>ip地址</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;:&quot;\n\n 南非\n&quot;
}</code></pre>
<p><strong>备注</strong></p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>