明道企业授权开放接口文档

明道企业授权开放接口文档


获取组织下分组列表

<p><strong>简要描述:</strong> </p> <ul> <li>获取组织下分组列表(注意:只返回组织级别分组)</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>{Host}/v1/open/App/ProjectGroups</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET </li> </ul> <p><strong>参数:</strong> 无</p> <p><strong>提交数据示例</strong></p> <pre><code>${Host}/v1/open/App/ProjectGroups?timestamp=1618837301125&amp;amp;projectId=449abe0c-e014-4836-8b60-d868c217599c&amp;amp;appKey=ak&amp;amp;sign=x </code></pre> <p><strong>返回数据说明</strong></p> <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;">success</td> <td style="text-align: left;">bool</td> <td>操作是否成功</td> </tr> <tr> <td style="text-align: left;">error_code</td> <td style="text-align: left;">int</td> <td>错误代码,1代表成功</td> </tr> <tr> <td style="text-align: left;">error_msg</td> <td style="text-align: left;">string</td> <td>错误消息</td> </tr> <tr> <td style="text-align: left;">projectGroups</td> <td style="text-align: left;">array</td> <td>组织分组列表</td> </tr> </tbody> </table> <p>projectGroups 实体:</p> <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;">appIds</td> <td style="text-align: left;">appIds[]</td> <td>分组下应用Id集合</td> </tr> <tr> <td style="text-align: left;">count</td> <td style="text-align: left;">int</td> <td>数量</td> </tr> <tr> <td style="text-align: left;">groupId</td> <td style="text-align: left;">string</td> <td>分组id</td> </tr> <tr> <td style="text-align: left;">name</td> <td style="text-align: left;">string</td> <td>分组名称</td> </tr> <tr> <td style="text-align: left;">enName</td> <td style="text-align: left;">string</td> <td>别名</td> </tr> <tr> <td style="text-align: left;">icon</td> <td style="text-align: left;">string</td> <td>icon名称</td> </tr> <tr> <td style="text-align: left;">iconUrl</td> <td style="text-align: left;">string</td> <td>icon</td> </tr> </tbody> </table> <p><strong>成功</strong></p> <pre><code>{ &amp;quot;data&amp;quot;: [ { &amp;quot;appIds&amp;quot;: [], &amp;quot;count&amp;quot;: 0, &amp;quot;groupId&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;name&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;enName&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;iconUrl&amp;quot;: &amp;quot;string&amp;quot;, &amp;quot;icon&amp;quot;: &amp;quot;string&amp;quot; } ], &amp;quot;success&amp;quot;: true, &amp;quot;error_code&amp;quot;: 1 }</code></pre> <p><strong>失败</strong></p> <pre><code>{ &amp;quot;error_msg&amp;quot;: &amp;quot;错误描述&amp;quot;, &amp;quot;error_code&amp;quot;: 10101, //状态码 非1为失败, &amp;quot;success&amp;quot;: false }</code></pre>

页面列表

ITEM_HTML