use of com.yh.weatherpush.dto.tag.TagDTO in project weather-push by yangh124.
the class TagServiceImpl method covertTagDTO.
private List<TagDTO> covertTagDTO(List<Tag> list) {
List<TagDTO> res = new ArrayList<>(list.size());
for (Tag tag : list) {
TagDTO tagDTO = new TagDTO();
BeanUtil.copyProperties(tag, tagDTO);
res.add(tagDTO);
}
return res;
}
Aggregations