|
|
@ -11,6 +11,7 @@ import com.luoo.music.dto.request.FuzzySearchReq;
|
|
|
|
import com.luoo.music.dto.response.JournalRespDTO;
|
|
|
|
import com.luoo.music.dto.response.JournalRespDTO;
|
|
|
|
import com.luoo.music.dto.response.SearchCategoryDTO;
|
|
|
|
import com.luoo.music.dto.response.SearchCategoryDTO;
|
|
|
|
import com.luoo.music.dto.response.SongRespDTO;
|
|
|
|
import com.luoo.music.dto.response.SongRespDTO;
|
|
|
|
|
|
|
|
import com.luoo.music.dto.response.TagDTO;
|
|
|
|
|
|
|
|
|
|
|
|
import io.swagger.annotations.*;
|
|
|
|
import io.swagger.annotations.*;
|
|
|
|
import util.JwtUtil;
|
|
|
|
import util.JwtUtil;
|
|
|
@ -133,4 +134,11 @@ public class SearchController {
|
|
|
|
private int getLimit(Integer limit) {
|
|
|
|
private int getLimit(Integer limit) {
|
|
|
|
return null == limit || 0 == limit ? DEFAULT_AUTO_COMPLETE_LIMIT : limit;
|
|
|
|
return null == limit || 0 == limit ? DEFAULT_AUTO_COMPLETE_LIMIT : limit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "4.获取所有标签")
|
|
|
|
|
|
|
|
@GetMapping("/tag")
|
|
|
|
|
|
|
|
@GlobalInterceptor
|
|
|
|
|
|
|
|
public Result<List<TagDTO>> tag() {
|
|
|
|
|
|
|
|
return Result.success(tagService.findAllTags());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|