/**
* Copyright © 2021-2025 JeePlus All rights reserved.
*/
package com.yami.trading.bean.item.mapstruct;
import com.yami.trading.bean.item.dto.ItemConfig;
import com.yami.trading.common.mapstruct.EntityWrapper;
import com.yami.trading.bean.item.dto.ItemDTO;
import com.yami.trading.bean.item.domain.Item;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;
/**
* ItemWrapper
* @author lucas
* @version 2023-03-10
*/
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE, uses = {} )
public interface ItemWrapper extends EntityWrapper {
ItemWrapper INSTANCE = Mappers.getMapper(ItemWrapper.class);
Item toEntity(ItemDTO dto);
ItemDTO toDTO(Item entity);
Item toEntity(ItemConfig itemConfig);
}