接口规则说明
<p><strong>接口说明 </strong></p>
<pre><code>请求接口: /shop/xxx/xxx
请求方式: POST/GET/PUT/DELETE
接口说明: 请求接口名全部小写,尽量用单一名动词表达,尽量按服务---模块---业务进行分隔</code></pre>
<p><strong>请求参数 </strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>长度</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>username</td>
<td>是</td>
<td>255</td>
<td>string/int</td>
<td>账号</td>
</tr>
</tbody>
</table>
<p><strong>返回参数</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>string</td>
<td>状态值</td>
</tr>
<tr>
<td>msg</td>
<td>string</td>
<td>返回消息</td>
</tr>
<tr>
<td>data</td>
<td>object</td>
<td>返回结果</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code":"0000",
"msg":"success",
"data":{
"token":"token123123"
}
}</code></pre>
<p><strong>接口备注</strong></p>
<ul>
<li>备注说明1</li>
<li>备注说明2</li>
</ul>