dream

dream


4.1 添加套餐

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>平台用户信息添加</li> </ul> <h5>请求URL</h5> <ul> <li><code>/admin-product</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <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;">product_name</td> <td style="text-align: left;">string</td> <td>套餐名称</td> </tr> <tr> <td style="text-align: left;">product_description</td> <td style="text-align: left;">string</td> <td>套餐描述</td> </tr> <tr> <td style="text-align: left;">price</td> <td style="text-align: left;">float</td> <td>价格</td> </tr> <tr> <td style="text-align: left;">product_day</td> <td style="text-align: left;">int</td> <td>产品天</td> </tr> <tr> <td style="text-align: left;">product_order</td> <td style="text-align: left;">int</td> <td>排序</td> </tr> <tr> <td style="text-align: left;">product_code</td> <td style="text-align: left;">string</td> <td>套餐编号</td> </tr> </tbody> </table> <h5>请求示例</h5> <pre><code>{ &amp;quot;product_name&amp;quot;:&amp;quot;7天试用版&amp;quot;, &amp;quot;product_description&amp;quot;:&amp;quot;7天试用版,免费用7天&amp;quot;, &amp;quot;price&amp;quot;:888.88, &amp;quot;product_day&amp;quot;:7, &amp;quot;status&amp;quot;:1, &amp;quot;product_order&amp;quot;:1, &amp;quot;product_code&amp;quot;:&amp;quot;P001&amp;quot; }</code></pre> <h5>返回示例</h5> <pre><code>{     &amp;quot;code&amp;quot;: &amp;quot;0&amp;quot;,     &amp;quot;msg&amp;quot;: &amp;quot;Success&amp;quot;,     &amp;quot;data&amp;quot;: &amp;quot;1&amp;quot; }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML