进存销系统

进存销系统接口文档


仓库信息获取

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>仓库信息获取接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://www.changbaiqi.com/stocks/findAllStocks/{pageIndex}/{pageSize}</code></li> </ul> <h5>请求方式</h5> <ul> <li> <p>GET </p> </li> <li>备注:RESTFUL风格</li> </ul> <h5>参数</h5> <h6>Headers</h6> <table> <thead> <tr> <th style="text-align: center;">参数名</th> <th>必填</th> <th>类型</th> <th>示例值</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: center;">Authorization</td> <td>是</td> <td>string</td> <td>eyJ0eXAiOiJKV1QiLCJhb</td> <td>token令牌</td> </tr> </tbody> </table> <h6>Params</h6> <table> <thead> <tr> <th style="text-align: center;">参数名</th> <th>必填</th> <th>类型</th> <th>示例</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: center;">pageSize</td> <td>是</td> <td>int</td> <td>12</td> <td>每页条数</td> </tr> <tr> <td style="text-align: center;">pageIndex</td> <td>是</td> <td>int</td> <td>1</td> <td>返回第几页信息</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> { "code": 200, "msg":"获取成功" "data": { "pageIndex":1, "totalPages":13, "list":[{ "id": "1", "encoded": "alsdfj12a3dfa5aaasecx", "group": "冷冻食品", "name": "冷冻食品仓库", "edit_time": "1436864169", "remark": "这里就是一些对仓库的描述" }, { "id": "2", "encoded": "alsdfj12a3dfa5aaasecx", "group": "冷冻食品", "name": "冷冻食品仓库", "edit_time": "1436864169", "remark": "这里就是一些对仓库的描述" }] } }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: center;">参数名</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: center;">pageIndex</td> <td>int</td> <td>当前页数</td> </tr> <tr> <td style="text-align: center;">amount</td> <td>int</td> <td>总页数</td> </tr> <tr> <td style="text-align: center;">id</td> <td>string</td> <td>仓库id</td> </tr> <tr> <td style="text-align: center;">encoded</td> <td>string</td> <td>仓库编码</td> </tr> <tr> <td style="text-align: center;">name</td> <td>string</td> <td>仓库名</td> </tr> <tr> <td style="text-align: center;">group</td> <td>string</td> <td>仓库组别</td> </tr> <tr> <td style="text-align: center;">edit_time</td> <td>string</td> <td>仓库最后编辑时间</td> </tr> <tr> <td style="text-align: center;">remark</td> <td>string</td> <td>仓库描述</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML