王陆军-广告位获取-2018-7-7
<p><strong>简要描述:</strong> </p>
<ul>
<li>广告位获取
<strong>变更履历</strong></li>
</ul>
<table>
<thead>
<tr>
<th style="text-align: left;">版本号</th>
<th style="text-align: left;">说明</th>
<th style="text-align: left;">变更者</th>
<th style="text-align: left;">日期</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">0.1</td>
<td style="text-align: left;">新</td>
<td style="text-align: left;">王陆军</td>
<td style="text-align: left;">20180707</td>
</tr>
</tbody>
</table>
<p><strong>请求URL:</strong> </p>
<ul>
<li>` <a href="http://123.206.94.205:8080/web-api/advertising/templist">http://123.206.94.205:8080/web-api/advertising/templist</a></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;code&quot;: 200,
&quot;message&quot;: &quot;Ok&quot;,
&quot;data&quot;: [
{
&quot;ads_price&quot;: &quot;&quot;,
&quot;width&quot;: 0,
&quot;id&quot;: &quot;1&quot;,
&quot;temp_name&quot;: &quot;首页顶部活动banner图&quot;,
&quot;height&quot;: 0
},
{},
{
&quot;width&quot;: 0,
&quot;id&quot;: &quot;11&quot;,
&quot;temp_name&quot;: &quot;语言达人页顶部左侧banner图&quot;,
&quot;height&quot;: 0
},
{
&quot;ads_price&quot;: &quot;&quot;,
&quot;width&quot;: 0,
&quot;id&quot;: &quot;9&quot;,
&quot;temp_name&quot;: &quot;公开课页顶部右侧banner图&quot;,
&quot;height&quot;: 0
}
]
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<p>|参数名|类型|说明|</p>
<pre><code>|参数|类型|描述|
|:-------|:-------|:-------|
| code | number| 无 |
| message | string| 无 |
| - data |object | 无 |
| ads_price | string| 价格 |
| width | number| 宽度 |
| id | string| 广告位ID|
| temp_name | string| 广告位名称 |
| height | number| 高度|
</code></pre>
<p><strong>错误码表</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">状态码</th>
<th style="text-align: left;">说明</th>
<th style="text-align: left;">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">200</td>
<td style="text-align: left;">请求成功</td>
<td style="text-align: left;">无</td>
</tr>
<tr>
<td style="text-align: left;">500</td>
<td style="text-align: left;">服务器错误成功</td>
<td style="text-align: left;">无</td>
</tr>
</tbody>
</table>
<p>欢迎使用ShowDoc!</p>