public Result getAllNews(int offset, int limit, String secondFileType) {
Sort sort = Sort.by(Sort.Direction.DESC, "uploadeDate");
Pageable pageable = PageRequest.of(offset, limit, sort);
List<News> newsList = newsRepository.findBySecondFileType(secondFileType, pageable);
List<NewsVo> newsVoList = CommonUtils.MainList2OtherMainList(newsList, NewsVo.class);
return success(newsVoList);
}
List<News> findBySecondFileType(String secondFileType, Pageable pageable);