进存销系统

进存销系统接口文档


仓库添加

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>仓库添加接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://www.changbaiqi.com/stocks/addStocks</code></li> </ul> <h5>请求方式</h5> <ul> <li> <p>POST</p> </li> <li>备注:无</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>Body</h6> <table> <thead> <tr> <th style="text-align: center;">参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: center;">id</td> <td>是</td> <td>string</td> <td>仓库id</td> </tr> <tr> <td style="text-align: center;">name</td> <td>是</td> <td>string</td> <td>仓库名</td> </tr> <tr> <td style="text-align: center;">group</td> <td>是</td> <td>string</td> <td>仓库组别</td> </tr> <tr> <td style="text-align: center;">remark</td> <td>否</td> <td>string</td> <td>仓库描述</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> { "code": 200, "msg":"创建成功", "data": { "id": "1", "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;">id</td> <td>string</td> <td>仓库id</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;">remark</td> <td>string</td> <td>仓库描述</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML