景点排序
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>请求推荐景点接口
在游览前,系统会向学生推荐游学景点和学校,可以按照游学热度、评价和个人兴趣进行推荐</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><a href="http://localhost:8080/attractions/sort?by=assessment或者hotpoint">http://localhost:8080/attractions/sort?by=assessment或者hotpoint</a></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;">by</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>按热度排序就是hotpoint,按评价排序就是assessment</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
\[{&quot;name&quot;:&quot;迪士尼乐园&quot;,&quot;hotpoint&quot;:99,&quot;assessment&quot;:4.9,&quot;definition&quot;:&quot;主题公园&quot;},{&quot;name&quot;:&quot;故宫&quot;,&quot;hotpoint&quot;:98,&quot;assessment&quot;:4.9,&quot;definition&quot;:&quot;历史遗迹&quot;},{&quot;name&quot;:&quot;埃及金字塔&quot;,&quot;hotpoint&quot;:97,&quot;assessment&quot;:4.9,&quot;definition&quot;:&quot;历史遗迹&quot;},{&quot;name&quot;:&quot;卢浮宫&quot;,&quot;hotpoint&quot;:96,&quot;assessment&quot;:4.9,&quot;definition&quot;:&quot;博物馆&quot;},{&quot;name&quot;:&quot;巴黎埃菲尔铁塔&quot;,&quot;hotpoint&quot;:95,&quot;assessment&quot;:4.8,&quot;definition&quot;:&quot;观光地标&quot;},{&quot;name&quot;:&quot;泰姬陵&quot;,&quot;hotpoint&quot;:95,&quot;assessment&quot;:4.8,&quot;definition&quot;:&quot;历史遗迹&quot;},{&quot;name&quot;:&quot;颐和园&quot;,&quot;hotpoint&quot;:94,&quot;assessment&quot;:4.8,&quot;definition&quot;:&quot;公园&quot;},{&quot;name&quot;:&quot;自由女神像&quot;,&quot;hotpoint&quot;:93,&quot;assessment&quot;:4.8,&quot;definition&quot;:&quot;观光地标&quot;},{&quot;name&quot;:&quot;长城&quot;,&quot;hotpoint&quot;:92,&quot;assessment&quot;:4.7,&quot;definition&quot;:&quot;历史遗迹&quot;},{&quot;name&quot;:&quot;台北101大楼&quot;,&quot;hotpoint&quot;:92,&quot;assessment&quot;:4.7,&quot;definition&quot;:&quot;城市景观&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>
<tr>
<td style="text-align: left;"></td>
<td style="text-align: left;"></td>
<td>返回排序后前十的景点的数据信息</td>
</tr>
</tbody>
</table>