|
|
@ -3,10 +3,12 @@ package com.ms.api.spi.move;
|
|
|
|
import com.doudian.open.api.shop_getShopCategory.ShopGetShopCategoryRequest;
|
|
|
|
import com.doudian.open.api.shop_getShopCategory.ShopGetShopCategoryRequest;
|
|
|
|
import com.doudian.open.api.shop_getShopCategory.ShopGetShopCategoryResponse;
|
|
|
|
import com.doudian.open.api.shop_getShopCategory.ShopGetShopCategoryResponse;
|
|
|
|
import com.doudian.open.api.shop_getShopCategory.param.ShopGetShopCategoryParam;
|
|
|
|
import com.doudian.open.api.shop_getShopCategory.param.ShopGetShopCategoryParam;
|
|
|
|
|
|
|
|
import com.doudian.open.core.AccessToken;
|
|
|
|
import com.jinritemai.cloud.base.api.BaseRequest;
|
|
|
|
import com.jinritemai.cloud.base.api.BaseRequest;
|
|
|
|
import com.jinritemai.cloud.base.api.BaseResponse;
|
|
|
|
import com.jinritemai.cloud.base.api.BaseResponse;
|
|
|
|
import com.jinritemai.cloud.base.api.ExtensionService;
|
|
|
|
import com.jinritemai.cloud.base.api.ExtensionService;
|
|
|
|
import com.jinritemai.cloud.base.api.ExtensionServiceHandler;
|
|
|
|
import com.jinritemai.cloud.base.api.ExtensionServiceHandler;
|
|
|
|
|
|
|
|
import com.ms.api.bo.ShopBO;
|
|
|
|
import com.ms.api.common.R;
|
|
|
|
import com.ms.api.common.R;
|
|
|
|
import com.ms.api.common.Ret;
|
|
|
|
import com.ms.api.common.Ret;
|
|
|
|
import com.ms.api.common.SPIBaseService;
|
|
|
|
import com.ms.api.common.SPIBaseService;
|
|
|
@ -14,7 +16,9 @@ import com.ms.api.dto.move.GetChoicenessSourceItemTagRequestDTO;
|
|
|
|
import com.ms.api.dto.move.GetDsShopCategoryRequestDTO;
|
|
|
|
import com.ms.api.dto.move.GetDsShopCategoryRequestDTO;
|
|
|
|
import com.ms.api.dto.move.SaveBatchMoveTaskRequestDTO;
|
|
|
|
import com.ms.api.dto.move.SaveBatchMoveTaskRequestDTO;
|
|
|
|
import com.ms.api.dto.move.SaveCurrentShopMoveSettingRequestDTO;
|
|
|
|
import com.ms.api.dto.move.SaveCurrentShopMoveSettingRequestDTO;
|
|
|
|
|
|
|
|
import com.ms.api.service.ShopService;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
@ -25,6 +29,10 @@ import java.util.Map;
|
|
|
|
@ExtensionService("getDsShopCategory")
|
|
|
|
@ExtensionService("getDsShopCategory")
|
|
|
|
@Slf4j
|
|
|
|
@Slf4j
|
|
|
|
public class GetDsShopCategoryService extends SPIBaseService implements ExtensionServiceHandler<GetDsShopCategoryRequestDTO, Ret> {
|
|
|
|
public class GetDsShopCategoryService extends SPIBaseService implements ExtensionServiceHandler<GetDsShopCategoryRequestDTO, Ret> {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
ShopService shopService;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public BaseResponse<Ret> handle(BaseRequest<GetDsShopCategoryRequestDTO> req) {
|
|
|
|
public BaseResponse<Ret> handle(BaseRequest<GetDsShopCategoryRequestDTO> req) {
|
|
|
|
initHandle(req);
|
|
|
|
initHandle(req);
|
|
|
@ -34,7 +42,7 @@ public class GetDsShopCategoryService extends SPIBaseService implements Extensio
|
|
|
|
ShopGetShopCategoryRequest request = new ShopGetShopCategoryRequest();
|
|
|
|
ShopGetShopCategoryRequest request = new ShopGetShopCategoryRequest();
|
|
|
|
ShopGetShopCategoryParam param = request.getParam();
|
|
|
|
ShopGetShopCategoryParam param = request.getParam();
|
|
|
|
param.setCid(fields.getCid());
|
|
|
|
param.setCid(fields.getCid());
|
|
|
|
ShopGetShopCategoryResponse response = request.execute();
|
|
|
|
ShopGetShopCategoryResponse response = request.execute(shopInfo.getShopAccessToken());
|
|
|
|
|
|
|
|
|
|
|
|
// ----结果返回----
|
|
|
|
// ----结果返回----
|
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
|