自动化设备到派-http接口文档


用户列表

<p><strong>简要描述:</strong></p> <ul> <li>用户列表</li> </ul> <p><strong>请求URL:</strong></p> <ul> <li>/openapi/user/list</li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td></td> <td></td> <td></td> <td>无参数</td> </tr> </tbody> </table> <p>&gt; 注意,当参数是空的时候,签名时候 bodystr值是 {}, 例子: apppid{}1610531941802secret</p> <p><strong>返回参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>否</td> <td>Integer</td> <td>异常见全局错误码</td> </tr> <tr> <td>message</td> <td>是</td> <td>String</td> <td>正常返回success,异常返回信息描述</td> </tr> <tr> <td>data</td> <td>是</td> <td>UserItem[]</td> <td>返回用户对象数组</td> </tr> </tbody> </table> <p><strong>UserItem:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>是</td> <td>String</td> <td>用户ID</td> </tr> <tr> <td>name</td> <td>是</td> <td>String</td> <td>用户名</td> </tr> <tr> <td>loginName</td> <td>是</td> <td>String</td> <td>登录名</td> </tr> </tbody> </table> <p><strong>请求示例</strong></p> <p><strong>正常返回示例</strong></p> <pre><code> { &amp;quot;success&amp;quot;: true, &amp;quot;msg&amp;quot;:&amp;quot;success&amp;quot;, &amp;quot;data&amp;quot;: [ { &amp;quot;id&amp;quot;:&amp;quot;1&amp;quot;, &amp;quot;name&amp;quot;:&amp;quot;测试1&amp;quot;, &amp;quot;loginName&amp;quot;:&amp;quot;test1&amp;quot; }, { &amp;quot;id&amp;quot;:&amp;quot;2&amp;quot;, &amp;quot;name&amp;quot;:&amp;quot;测试2&amp;quot;, &amp;quot;loginName&amp;quot;:&amp;quot;test2&amp;quot; } ] }</code></pre> <p><strong>错误返回示例</strong></p> <pre><code> { &amp;quot;code&amp;quot;: 401, &amp;quot;message&amp;quot;: &amp;quot;密码错误&amp;quot; }</code></pre> <p>正式环境测试:<br /> <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/5d78ee306d9654b8f3dbccb4f7025bb7" alt="" /><br /> <strong>备注</strong></p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML