阅达馆藏API

阅达馆藏API


新增权限组API

<h1>开发者</h1> <ul> <li>罗恒山</li> </ul> <h1>说明</h1> <ul> <li>新增子账号权限组</li> </ul> <h1>请求</h1> <ul> <li>Endpoint: <code>/api/library/role/add</code></li> <li>Method:POST</li> </ul> <h1>请求参数</h1> <h2>POST 参数</h2> <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;">alias</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>名称</td> </tr> <tr> <td style="text-align: left;">permissions</td> <td style="text-align: left;">是</td> <td style="text-align: left;">array</td> <td>权限标签(至少传一个)</td> </tr> </tbody> </table> <pre><code>{ &amp;quot;alias&amp;quot;: &amp;quot;默认权限组&amp;quot;, &amp;quot;permissions&amp;quot;: [&amp;quot;goods.marc_upload&amp;quot;, &amp;quot;goods.marc_upload_log&amp;quot;, &amp;quot;order.list&amp;quot;, &amp;quot;order.marc_download&amp;quot;] }</code></pre> <h1>返回示例</h1> <pre><code>{ &amp;quot;status_code&amp;quot;: 200, &amp;quot;message&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;id&amp;quot;: 8, &amp;quot;alias&amp;quot;: &amp;quot;默认权限组&amp;quot; } }</code></pre> <h1>返回参数说明</h1> <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;">id</td> <td style="text-align: left;">int</td> <td>ID</td> </tr> <tr> <td style="text-align: left;">alias</td> <td style="text-align: left;">string</td> <td>名称</td> </tr> </tbody> </table> <h1>备注</h1> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML