gongfuzhu 1 năm trước cách đây
mục cha
commit
041c61695a

+ 2 - 1
SpringBatchServiceClient/src/main/java/com/zswl/cloud/springBatch/client/service/OrderService.java

@@ -6,6 +6,7 @@ import com.zswl.cloud.springBatch.client.model.CreateOrderModel;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.http.MediaType;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 
@@ -13,7 +14,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
 public interface OrderService {
     @ApiOperation("创建订单")
     @RequestMapping(value = "creat", method = RequestMethod.POST, consumes = {MediaType.ALL_VALUE})
-    ResultContent creat(CreateOrderModel createOrderModel);
+    ResultContent creat(@RequestBody CreateOrderModel createOrderModel);
 
 
 }