|
@@ -7,6 +7,7 @@ import com.yonge.cooleshow.biz.dal.dto.search.HotSearchSearch;
|
|
|
import com.yonge.cooleshow.biz.dal.dto.search.MusicAlbumSearch;
|
|
|
import com.yonge.cooleshow.biz.dal.dto.search.StudentMusicSheetSearch;
|
|
|
import com.yonge.cooleshow.biz.dal.enums.AuthStatusEnum;
|
|
|
+import com.yonge.cooleshow.biz.dal.enums.HotSearchEnum;
|
|
|
import com.yonge.cooleshow.biz.dal.enums.YesOrNoEnum;
|
|
|
import com.yonge.cooleshow.biz.dal.service.HotSearchService;
|
|
|
import com.yonge.cooleshow.biz.dal.service.MusicAlbumService;
|
|
@@ -110,12 +111,13 @@ public class OpenMusicSheetController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "热门搜索")
|
|
|
- @GetMapping(value="/hotTag")
|
|
|
- public HttpResponseResult<List<HotSearchVo>> hotTag() {
|
|
|
+ @GetMapping(value="/hotTag/{type}")
|
|
|
+ public HttpResponseResult<List<HotSearchVo>> hotTag(@PathVariable String type) {
|
|
|
HotSearchSearch query = new HotSearchSearch();
|
|
|
query.setPage(1);
|
|
|
query.setRows(10);
|
|
|
query.setStatus(YesOrNoEnum.YES);
|
|
|
+ query.setType(HotSearchEnum.valueOf(type));
|
|
|
IPage<HotSearchVo> pages = hotSearchService.selectPage(PageUtil.getPage(query), query);
|
|
|
|
|
|
return succeed(pages.getRecords());
|