yangys
2024-10-30 c27b939fa5fa6ce4d712f7e9ced2ad811d69d5ec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.qianwen.smartman.modules.system.convert;
 
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
import com.qianwen.smartman.modules.smis.enums.AppEnum;
import com.qianwen.smartman.modules.system.dto.LicenseDetailDTO;
import com.qianwen.smartman.modules.system.vo.LicenseDetailVO;
 
@Mapper(builder = @Builder(disableBuilder = true), imports = {Collectors.class, AppEnum.class})
 
public interface LicenseConverter {
    public static final LicenseConverter INSTANCE = (LicenseConverter) Mappers.getMapper(LicenseConverter.class);
 
    @Mappings({@Mapping(target = "moduleNames", expression = "java(collect)")})
    LicenseDetailVO convert(LicenseDetailDTO detailDTO, Map<String, List<String>> collect);
}