获取徽章、颜色列表
<h5>简要描述</h5>
<ul>
<li>获取徽章、颜色列表</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/supreme/user/get/bc/list</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET</li>
</ul>
<h5>参数</h5>
<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>
<tr>
<td style="text-align: left;">userID</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>用户ID</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;color&quot;: [
{
&quot;colorID&quot;: 1,
&quot;color&quot;: &quot;#000000&quot;,
&quot;colorName&quot;: &quot;黑色&quot;,
&quot;level&quot;: 1,
&quot;lockStatus&quot;: 0,
&quot;selectStatus&quot;: 0
},
{
&quot;colorID&quot;: 2,
&quot;color&quot;: &quot;#BA55D3&quot;,
&quot;colorName&quot;: &quot;兰花紫&quot;,
&quot;level&quot;: 2,
&quot;lockStatus&quot;: 0,
&quot;selectStatus&quot;: 0
},
{
&quot;colorID&quot;: 3,
&quot;color&quot;: &quot;#FFB6C1&quot;,
&quot;colorName&quot;: &quot;浅粉色&quot;,
&quot;level&quot;: 3,
&quot;lockStatus&quot;: 0,
&quot;selectStatus&quot;: 0
}
],
&quot;badge&quot;: [
{
&quot;badgeID&quot;: 1,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;话痨&quot;,
&quot;level&quot;: 1,
&quot;selectStatus&quot;: 0,
&quot;lockStatus&quot;: 0
},
{
&quot;badgeID&quot;: 2,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;神评&quot;,
&quot;level&quot;: 2,
&quot;selectStatus&quot;: 0,
&quot;lockStatus&quot;: 0
},
{
&quot;badgeID&quot;: 3,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;智者&quot;,
&quot;level&quot;: 3,
&quot;selectStatus&quot;: 0,
&quot;lockStatus&quot;: 0
},
{
&quot;badgeID&quot;: 4,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;大师&quot;,
&quot;level&quot;: 4,
&quot;selectStatus&quot;: 0,
&quot;lockStatus&quot;: 0
}
],
&quot;level&quot;: [
{
&quot;levelID&quot;: 1,
&quot;levelName&quot;: &quot;level 1&quot;,
&quot;badge&quot;: [
{
&quot;badgeID&quot;: 1,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;话痨&quot;
}
],
&quot;levelUrl&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/topicImg/topic_0_87Be.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;background&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/topicImg/topic_0_87Be.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;levelPoint&quot;: 100,
&quot;experience&quot;: 22,
&quot;nowLevel&quot;: 0
},
{
&quot;levelID&quot;: 2,
&quot;levelName&quot;: &quot;level 2&quot;,
&quot;badge&quot;: [
{
&quot;badgeID&quot;: 1,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;话痨&quot;
},
{
&quot;badgeID&quot;: 2,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;神评&quot;
}
],
&quot;levelUrl&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/topicImg/topic_0_87Be.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;background&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/topicImg/topic_0_87Be.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;levelPoint&quot;: 300,
&quot;experience&quot;: 22,
&quot;nowLevel&quot;: 0
},
{
&quot;levelID&quot;: 3,
&quot;levelName&quot;: &quot;level 3&quot;,
&quot;badge&quot;: [
{
&quot;badgeID&quot;: 1,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;话痨&quot;
},
{
&quot;badgeID&quot;: 2,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;神评&quot;
},
{
&quot;badgeID&quot;: 3,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;智者&quot;
}
],
&quot;levelUrl&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/topicImg/topic_0_87Be.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;background&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/topicImg/topic_0_87Be.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;levelPoint&quot;: 500,
&quot;experience&quot;: 22,
&quot;nowLevel&quot;: 0
},
{
&quot;levelID&quot;: 4,
&quot;levelName&quot;: &quot;level 4&quot;,
&quot;badge&quot;: [
{
&quot;badgeID&quot;: 1,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;话痨&quot;
},
{
&quot;badgeID&quot;: 2,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;神评&quot;
},
{
&quot;badgeID&quot;: 3,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;智者&quot;
},
{
&quot;badgeID&quot;: 4,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;大师&quot;
}
],
&quot;levelUrl&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/topicImg/topic_0_87Be.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;background&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/topicImg/topic_0_87Be.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;levelPoint&quot;: 1000,
&quot;experience&quot;: 22,
&quot;nowLevel&quot;: 0
},
{
&quot;levelID&quot;: 5,
&quot;levelName&quot;: &quot;level 5&quot;,
&quot;badge&quot;: [
{
&quot;badgeID&quot;: 1,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;话痨&quot;
},
{
&quot;badgeID&quot;: 2,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;神评&quot;
},
{
&quot;badgeID&quot;: 3,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;智者&quot;
},
{
&quot;badgeID&quot;: 4,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;大师&quot;
}
],
&quot;levelUrl&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/topicImg/topic_0_87Be.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;background&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/topicImg/topic_0_87Be.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;levelPoint&quot;: 1500,
&quot;experience&quot;: 22,
&quot;nowLevel&quot;: 0
},
{
&quot;levelID&quot;: 6,
&quot;levelName&quot;: &quot;level 6&quot;,
&quot;badge&quot;: [
{
&quot;badgeID&quot;: 1,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;话痨&quot;
},
{
&quot;badgeID&quot;: 2,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;神评&quot;
},
{
&quot;badgeID&quot;: 3,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;智者&quot;
},
{
&quot;badgeID&quot;: 4,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_ZLRS.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;iconName&quot;: &quot;大师&quot;
}
],
&quot;levelUrl&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/topicImg/topic_0_87Be.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;background&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/topicImg/topic_0_87Be.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;levelPoint&quot;: 2000,
&quot;experience&quot;: 22,
&quot;nowLevel&quot;: 0
}
],
&quot;line&quot;: [
{
&quot;lineID&quot;: 1,
&quot;color&quot;: &quot;#BA55D3&quot;,
&quot;colorName&quot;: &quot;兰花紫&quot;,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_DGyc.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;level&quot;: 1,
&quot;lockStatus&quot;: 0,
&quot;selectStatus&quot;: 0
},
{
&quot;lineID&quot;: 2,
&quot;color&quot;: &quot;#BA55D3&quot;,
&quot;colorName&quot;: &quot;兰花紫&quot;,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_DGyc.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;level&quot;: 2,
&quot;lockStatus&quot;: 0,
&quot;selectStatus&quot;: 0
},
{
&quot;lineID&quot;: 3,
&quot;color&quot;: &quot;#BA55D3&quot;,
&quot;colorName&quot;: &quot;兰花紫&quot;,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_DGyc.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;level&quot;: 3,
&quot;lockStatus&quot;: 0,
&quot;selectStatus&quot;: 0
},
{
&quot;lineID&quot;: 4,
&quot;color&quot;: &quot;#BA55D3&quot;,
&quot;colorName&quot;: &quot;兰花紫&quot;,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_DGyc.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;level&quot;: 4,
&quot;lockStatus&quot;: 0,
&quot;selectStatus&quot;: 0
},
{
&quot;lineID&quot;: 5,
&quot;color&quot;: &quot;#BA55D3&quot;,
&quot;colorName&quot;: &quot;兰花紫&quot;,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_DGyc.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;level&quot;: 5,
&quot;lockStatus&quot;: 0,
&quot;selectStatus&quot;: 0
},
{
&quot;lineID&quot;: 6,
&quot;color&quot;: &quot;#BA55D3&quot;,
&quot;colorName&quot;: &quot;兰花紫&quot;,
&quot;icon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_DGyc.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;level&quot;: 6,
&quot;lockStatus&quot;: 0,
&quot;selectStatus&quot;: 0
}
],
&quot;userTask&quot;: [
{
&quot;taskID&quot;: 1,
&quot;taskIcon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_0iAP.png?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;finishTimes&quot;: 0,
&quot;type&quot;: 1,
&quot;status&quot;: 0,
&quot;name&quot;: &quot;每日收藏一篇文章&quot;,
&quot;point&quot;: 1,
&quot;times&quot;: 1
},
{
&quot;taskID&quot;: 2,
&quot;taskIcon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_JCpu.jpg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;finishTimes&quot;: 0,
&quot;type&quot;: 2,
&quot;status&quot;: 0,
&quot;name&quot;: &quot;每日参与三次话题&quot;,
&quot;point&quot;: 1,
&quot;times&quot;: 3
},
{
&quot;taskID&quot;: 3,
&quot;taskIcon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_rTWK.jpeg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;finishTimes&quot;: 0,
&quot;type&quot;: 3,
&quot;status&quot;: 0,
&quot;name&quot;: &quot;每日分享3篇潮流导购文章&quot;,
&quot;point&quot;: 1,
&quot;times&quot;: 3
},
{
&quot;taskID&quot;: 4,
&quot;taskIcon&quot;: &quot;https://devhonggezi.oss-cn-shenzhen.aliyuncs.com/badgeImgbadge_0_GNWT.jpeg?x-oss-process=image/resize,w_300,h_300,m_lfit&quot;,
&quot;finishTimes&quot;: 0,
&quot;type&quot;: 4,
&quot;status&quot;: 0,
&quot;name&quot;: &quot;每日参与匿名爆料一次&quot;,
&quot;point&quot;: 1,
&quot;times&quot;: 1
}
]
}</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;">color</td>
<td style="text-align: left;">array</td>
<td>颜色数组</td>
</tr>
<tr>
<td style="text-align: left;">colorID</td>
<td style="text-align: left;">int</td>
<td>颜色ID</td>
</tr>
<tr>
<td style="text-align: left;">color</td>
<td style="text-align: left;">string</td>
<td>颜色16进制码</td>
</tr>
<tr>
<td style="text-align: left;">colorName</td>
<td style="text-align: left;">string</td>
<td>颜色名字</td>
</tr>
<tr>
<td style="text-align: left;">level</td>
<td style="text-align: left;">string</td>
<td>颜色等级</td>
</tr>
<tr>
<td style="text-align: left;">lockStatus</td>
<td style="text-align: left;">int</td>
<td>0上锁,1解锁</td>
</tr>
<tr>
<td style="text-align: left;">selectStatus</td>
<td style="text-align: left;">int</td>
<td>当前选择颜色状态,0未选中,1选中</td>
</tr>
<tr>
<td style="text-align: left;">badge</td>
<td style="text-align: left;">array</td>
<td>徽章等级数组</td>
</tr>
<tr>
<td style="text-align: left;">badgeID</td>
<td style="text-align: left;">int</td>
<td>徽章ID</td>
</tr>
<tr>
<td style="text-align: left;">icon</td>
<td style="text-align: left;">string</td>
<td>徽章解锁后展示的图片</td>
</tr>
<tr>
<td style="text-align: left;">greyIcon</td>
<td style="text-align: left;">string</td>
<td>徽章未解锁的图片</td>
</tr>
<tr>
<td style="text-align: left;">iconName</td>
<td style="text-align: left;">string</td>
<td>徽章名称</td>
</tr>
<tr>
<td style="text-align: left;">level</td>
<td style="text-align: left;">int</td>
<td>徽章等级</td>
</tr>
<tr>
<td style="text-align: left;">lockStatus</td>
<td style="text-align: left;">int</td>
<td>徽章解锁状态0未解锁,1已解锁</td>
</tr>
<tr>
<td style="text-align: left;">level</td>
<td style="text-align: left;">array</td>
<td>等级数组</td>
</tr>
<tr>
<td style="text-align: left;">levelID</td>
<td style="text-align: left;">int</td>
<td>等级ID</td>
</tr>
<tr>
<td style="text-align: left;">levelName</td>
<td style="text-align: left;">string</td>
<td>等级名称</td>
</tr>
<tr>
<td style="text-align: left;">badge</td>
<td style="text-align: left;">array</td>
<td>等级所对应的徽章数组</td>
</tr>
<tr>
<td style="text-align: left;">nowLevel</td>
<td style="text-align: left;">int</td>
<td>当前等级所在的状态,0没有在当前等级,1在当前等级</td>
</tr>
<tr>
<td style="text-align: left;">taskID</td>
<td style="text-align: left;">int</td>
<td>任务ID</td>
</tr>
<tr>
<td style="text-align: left;">taskIcon</td>
<td style="text-align: left;">string</td>
<td>任务图标</td>
</tr>
<tr>
<td style="text-align: left;">finishTimes</td>
<td style="text-align: left;">int</td>
<td>完成次数</td>
</tr>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">int</td>
<td>任务跳转方向 1收藏文章,2参与话题,3潮流导购,4匿名爆料</td>
</tr>
<tr>
<td style="text-align: left;">status</td>
<td style="text-align: left;">int</td>
<td>0去完成,1领取,2已领取</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">string</td>
<td>任务名称</td>
</tr>
<tr>
<td style="text-align: left;">point</td>
<td style="text-align: left;">int</td>
<td>任务完成1次获得积分</td>
</tr>
<tr>
<td style="text-align: left;">times</td>
<td style="text-align: left;">int</td>
<td>总的完成次数</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>