调整feign接口请类型

This commit is contained in:
xu
2023-05-10 10:18:32 +08:00
parent 1046a86a03
commit 46b554f4c0
@@ -4,11 +4,12 @@ import com.wabestway.commons.http.ResObj;
import com.wabestway.recall.api.dto.TraceUpDTO; import com.wabestway.recall.api.dto.TraceUpDTO;
import com.wabestway.recall.api.fallback.TraceFeignClientFallback; import com.wabestway.recall.api.fallback.TraceFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@FeignClient(value = "afis-recall", fallback = TraceFeignClientFallback.class) @FeignClient(value = "afis-recall", fallback = TraceFeignClientFallback.class)
public interface TraceFeignClient { public interface TraceFeignClient {
@PostMapping("/api/traceUp") @RequestMapping(method = RequestMethod.POST, value ="/api/traceUp")
ResObj batchTraceUp(@RequestBody TraceUpDTO traceUpDTO); ResObj batchTraceUp(@RequestBody TraceUpDTO traceUpDTO);
} }