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 { E toEntity(D dto); D toDTO(E entity); List toEntity(List dtoList); List toDTO(List entityList); Page toEntity(Page page); Page toDTO(Page page); }