1
zj
9 hours ago f658569891db433854221b80f0a9fa99608cff64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.yami.trading.common.mapstruct;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
 
import java.util.List;
 
public interface EntityWrapper<D, E> {
 
    E toEntity(D dto);
 
    D toDTO(E entity);
 
    List<E> toEntity(List <D> dtoList);
 
 
    List<D> toDTO(List <E> entityList);
 
 
    Page <E> toEntity(Page <D> page);
 
    Page <D> toDTO(Page <E> page);
 
}