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>{
&quot;product_name&quot;:&quot;7天试用版&quot;,
&quot;product_description&quot;:&quot;7天试用版,免费用7天&quot;,
&quot;price&quot;:888.88,
&quot;product_day&quot;:7,
&quot;status&quot;:1,
&quot;product_order&quot;:1,
&quot;product_code&quot;:&quot;P001&quot;
}</code></pre>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: &quot;0&quot;,
&quot;msg&quot;: &quot;Success&quot;,
&quot;data&quot;: &quot;1&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>