Search in sources :

Example 1 with TagDTO

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;
}
Also used : TagDTO(com.yh.weatherpush.dto.tag.TagDTO) ArrayList(java.util.ArrayList) TaskRelTag(com.yh.weatherpush.entity.TaskRelTag) Tag(com.yh.weatherpush.entity.Tag)

Aggregations

TagDTO (com.yh.weatherpush.dto.tag.TagDTO)1 Tag (com.yh.weatherpush.entity.Tag)1 TaskRelTag (com.yh.weatherpush.entity.TaskRelTag)1 ArrayList (java.util.ArrayList)1