22 lines
607 B
Java
22 lines
607 B
Java
package com.rainbus.dlp.entity.converter;
|
|
|
|
import com.rainbus.dlp.entity.dto.system.ApiInfo;
|
|
import com.rainbus.dlp.entity.pojo.user.SysResource;
|
|
import org.mapstruct.Mapper;
|
|
import org.mapstruct.Mapping;
|
|
|
|
import java.util.List;
|
|
|
|
@Mapper(componentModel = "spring")
|
|
public interface SystemConv {
|
|
|
|
@Mapping(target = "id", ignore = true)
|
|
@Mapping(target = "updatedAt", ignore = true)
|
|
@Mapping(target = "resource", source = "uri")
|
|
@Mapping(target = "createdAt", ignore = true)
|
|
SysResource ApiInfoDto2Pojo(ApiInfo apiInfo);
|
|
|
|
List<SysResource> ApiInfosDto2Pojo(List<ApiInfo> apiInfos);
|
|
|
|
}
|