旅游app后台

后台api接口


添加规格

<h5>简要描述</h5> <ul> <li>添加规格</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://api.9lele.com/public/index.php/api/goods/addsku</code></li> </ul> <h5>请求方式</h5> <ul> <li>post</li> </ul> <h5>Header</h5> <table> <thead> <tr> <th>header</th> <th>示例值</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>Token</td> <td>9f005d19-987c-412f-859a-bccd850155b2</td> <td>是</td> <td>string</td> <td>登录成功后获取的token</td> </tr> </tbody> </table> <h5>请求Body参数</h5> <table> <thead> <tr> <th>参数名</th> <th>示例值</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>gid</td> <td>85</td> <td>是</td> <td>string</td> <td>添加商品获取的gid</td> </tr> <tr> <td>name</td> <td>成人票</td> <td>是</td> <td>string</td> <td>规格名称</td> </tr> <tr> <td>price</td> <td>50</td> <td>是</td> <td>string</td> <td>价格</td> </tr> <tr> <td>salesnum</td> <td>1000</td> <td>是</td> <td>string</td> <td>库存</td> </tr> <tr> <td>namebak</td> <td>成人票</td> <td>是</td> <td>string</td> <td>属性名称</td> </tr> <tr> <td>remark</td> <td>概不退换</td> <td>是</td> <td>string</td> <td>备注</td> </tr> </tbody> </table> <h5>成功返回示例</h5> <pre><code>{ &amp;quot;code&amp;quot;: 1, &amp;quot;msg&amp;quot;: &amp;quot;返回成功&amp;quot;, &amp;quot;time&amp;quot;: &amp;quot;1714182087&amp;quot;, &amp;quot;data&amp;quot;: null }</code></pre>

页面列表

ITEM_HTML