package com.artfess.manage.base; import java.util.List; public interface BaseMapper { /** * DTO转Entity * @param dto / * @return / */ E toEntity(D dto); /** * Entity转DTO * @param entity / * @return / */ D toDto(E entity); /** * DTO集合转Entity集合 * @param dtoList / * @return / */ List toEntity(List dtoList); /** * Entity集合转DTO集合 * @param entityList / * @return / */ List toDto(List entityList); }