diff --git a/ms-biz/src/main/java/com/ms/api/common/SPIBaseService.java b/ms-biz/src/main/java/com/ms/api/common/SPIBaseService.java index 3001f969..ced7d635 100644 --- a/ms-biz/src/main/java/com/ms/api/common/SPIBaseService.java +++ b/ms-biz/src/main/java/com/ms/api/common/SPIBaseService.java @@ -6,6 +6,7 @@ import com.jinritemai.cloud.base.api.BaseResponse; import com.jinritemai.cloud.base.api.ExtensionServiceHandler; import com.ms.api.bo.ShopBO; import com.ms.dal.entity.Shop; +import org.modelmapper.ModelMapper; /** * SPI基础类 @@ -23,6 +24,9 @@ public class SPIBaseService implements ExtensionServiceHandler { // TODO 数据库查下shopId 有就注入到shopInfo中,没有要新增, // TODO 并且调用抖店的查询店铺详情接口补充详情,可以是accesToken那个接口 +// ModelMapper modelMapper = new ModelMapper(); +// UserDTO userDTO = modelMapper.map(user, UserDTO.class); + return null; } } diff --git a/ms-dal/pom.xml b/ms-dal/pom.xml index a4751f19..d8cd14d5 100644 --- a/ms-dal/pom.xml +++ b/ms-dal/pom.xml @@ -13,6 +13,11 @@ ms-dal + + org.modelmapper + modelmapper + 2.4.4 +