|
@@ -3,8 +3,10 @@ package com.chelvc.cloud.maintain.copier;
|
|
import java.util.Collection;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
-import com.chelvc.cloud.maintain.vo.MerchantVO;
|
|
|
|
|
|
+import com.chelvc.cloud.maintain.vo.MerchantDetailVO;
|
|
|
|
+import com.chelvc.cloud.maintain.vo.SimpleMerchantVO;
|
|
import com.chelvc.cloud.vehicle.api.dto.MerchantDTO;
|
|
import com.chelvc.cloud.vehicle.api.dto.MerchantDTO;
|
|
|
|
+import com.chelvc.cloud.vehicle.api.dto.MerchantDetailDTO;
|
|
import org.mapstruct.Builder;
|
|
import org.mapstruct.Builder;
|
|
import org.mapstruct.Mapper;
|
|
import org.mapstruct.Mapper;
|
|
import org.mapstruct.factory.Mappers;
|
|
import org.mapstruct.factory.Mappers;
|
|
@@ -22,11 +24,19 @@ public interface MerchantCopier {
|
|
*/
|
|
*/
|
|
MerchantCopier INSTANCE = Mappers.getMapper(MerchantCopier.class);
|
|
MerchantCopier INSTANCE = Mappers.getMapper(MerchantCopier.class);
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 商家信息拷贝
|
|
|
|
+ *
|
|
|
|
+ * @param detail 商家详情
|
|
|
|
+ * @return 商家详情
|
|
|
|
+ */
|
|
|
|
+ MerchantDetailVO copying(MerchantDetailDTO detail);
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 商家信息拷贝
|
|
* 商家信息拷贝
|
|
*
|
|
*
|
|
* @param merchants 商家信息集合
|
|
* @param merchants 商家信息集合
|
|
* @return 商家信息列表
|
|
* @return 商家信息列表
|
|
*/
|
|
*/
|
|
- List<MerchantVO> copying(Collection<MerchantDTO> merchants);
|
|
|
|
|
|
+ List<SimpleMerchantVO> copying(Collection<MerchantDTO> merchants);
|
|
}
|
|
}
|