新版仿ok交易所-后端
1
zj
2025-09-30 0c389d73cc79a0027cf779721c6bf184b12f5d86
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
26
27
28
29
30
31
32
33
34
35
36
/**
 * Copyright © 2021-2025 <a href="http://www.jeeplus.org/">JeePlus</a> 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<ItemDTO, Item> {
 
    ItemWrapper INSTANCE = Mappers.getMapper(ItemWrapper.class);
    
    Item toEntity(ItemDTO dto);
 
 
 
    ItemDTO toDTO(Item entity);
 
    Item  toEntity(ItemConfig itemConfig);
 
 
}