|
@@ -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);
|
|
|
|
|
|
|
|
|
}
|