ERP后台

ERP后台API


用户菜单数据

<h5>简要描述</h5> <ul> <li>用户菜单数据</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://xx.com/Admin/ExternalNode/user_menu_index</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET</li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">ex_user_id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>对外用户名</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> { ["menus"] =&gt; array(71) { //菜单数据 [1] =&gt; array(14) { ["id"] =&gt; string(1) "1" ["pid"] =&gt; string(1) "0" ["title"] =&gt; string(12) "默认首页" ["status"] =&gt; string(1) "1" ["module"] =&gt; string(5) "Index" ["action"] =&gt; string(5) "index" ["remark"] =&gt; string(0) "" ["sort"] =&gt; string(1) "0" ["is_del"] =&gt; string(1) "2" ["is_show"] =&gt; string(1) "2" ["created_at"] =&gt; string(19) "2021-07-26 17:47:20" ["updated_at"] =&gt; string(19) "2021-07-28 20:40:36" ["_child"] =&gt; bool(true) ["level"] =&gt; int(1) } [2] =&gt; array(14) { ["id"] =&gt; string(1) "2" ["pid"] =&gt; string(1) "1" ["title"] =&gt; string(6) "品牌" ["status"] =&gt; string(1) "1" ["module"] =&gt; string(13) "ShareFunction" ["action"] =&gt; string(9) "get_brand" ["remark"] =&gt; string(0) "" ["sort"] =&gt; string(1) "0" ["is_del"] =&gt; string(1) "2" ["is_show"] =&gt; string(1) "2" ["created_at"] =&gt; string(19) "2021-07-26 17:47:20" ["updated_at"] =&gt; string(19) "2021-07-27 17:32:15" ["_child"] =&gt; bool(false) ["level"] =&gt; int(2) } } ["external_node_user"] =&gt; array(1) { //个人权限数据 [0] =&gt; array(6) { ["id"] =&gt; string(1) "1" ["ex_user_id"] =&gt; string(2) "68" ["ex_node_id"] =&gt; string(1) "1" ["status"] =&gt; string(1) "1" ["created_at"] =&gt; string(19) "2021-09-17 13:45:47" ["updated_at"] =&gt; string(19) "2021-09-17 13:45:50" } } ["user_role"] =&gt; array(2) { ["role_id"] =&gt; string(1) "0" //0:其他账号,两个同步按钮都不显示; 1总账号; 非0非1:子账号 ["role_desc"] =&gt; string(6) "其他" } }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">groupid</td> <td style="text-align: left;">int</td> <td>用户组id,1:超级管理员;2:普通用户</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML