订阅频道:热门频道
<h5>简要描述</h5>
<ul>
<li>订阅频道:热门频道</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:8500/hotMaterialTypeInfo</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>get</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">header</th>
<th style="text-align: left;">必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">userId</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>用户ID</td>
</tr>
<tr>
<td style="text-align: left;">userSessionId</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>用户会话ID</td>
</tr>
<tr>
<td style="text-align: left;">miniCode</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>小程序标识</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"data": {
"materialTypeInfo": [
{
"id": 1,
"materialTypeName": "经典音乐"
},
{
"id": 3,
"materialTypeName": "房产"
},
{
"id": 4,
"materialTypeName": "干货"
},
{
"id": 11,
"materialTypeName": "保险"
},
{
"id": 12,
"materialTypeName": "洗发护发"
},
{
"id": 13,
"materialTypeName": "健康养生"
},
{
"id": 15,
"materialTypeName": "头像"
},
{
"id": 26,
"materialTypeName": "搞笑"
},
{
"id": 27,
"materialTypeName": "纹绣"
},
{
"id": 28,
"materialTypeName": "美甲美睫"
},
{
"id": 30,
"materialTypeName": "文案"
},
{
"id": 50,
"materialTypeName": "营销"
}
]
},
"head": {
"code": 200,
"msg": "成功"
}
}
</code></pre>
<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;">data</td>
<td style="text-align: left;">object</td>
<td>数据</td>
</tr>
<tr>
<td style="text-align: left;">materialTypeInfo</td>
<td style="text-align: left;">array</td>
<td>我的频道</td>
</tr>
<tr>
<td style="text-align: left;">materialTypeInfo.id</td>
<td style="text-align: left;">string</td>
<td>频道ID</td>
</tr>
<tr>
<td style="text-align: left;">materialTypeInfo.materialTypeName</td>
<td style="text-align: left;">string</td>
<td>频道名称</td>
</tr>
<tr>
<td style="text-align: left;">head</td>
<td style="text-align: left;">object</td>
<td>消息头</td>
</tr>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">string</td>
<td>返回码</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td>消息文本</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<p>返回码 code 说明:
110:用户未登录
200:正常
400:客户端异常
500:服务端异常</p>