新增调用DS请求相关工具类

20230922-ljl-fixBug
wangchaoxu 1 year ago
parent e74c1c079a
commit af20519694

@ -6,6 +6,7 @@ import com.jinritemai.cloud.base.api.ExtensionService;
import com.jinritemai.cloud.base.api.ExtensionServiceHandler;
import com.ms.api.spi.DsRequestTemplate;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.map.MultiValueMap;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.HashMap;
@ -20,7 +21,7 @@ public class DsRequestService implements ExtensionServiceHandler<ItemDTO, Intege
@Override
public BaseResponse<Integer> handle(BaseRequest<ItemDTO> req) {
Map params = new HashMap<>();
MultiValueMap params = new MultiValueMap();
params.put("platform", "ddMicroApp");
params.put("platformOrderId", "2332");

@ -2,7 +2,6 @@ package com.ms.api.spi;
import cn.hutool.crypto.SecureUtil;
import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
@ -10,10 +9,10 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;
import org.springframework.web.client.RestTemplate;
import java.lang.reflect.Field;
import java.util.*;
import java.util.Arrays;
import java.util.Map;
import java.util.Set;
/**
* DS

Loading…
Cancel
Save