Commit 3e007900 by 黄超华

商品订单创建直接返回订单详情信息

1 parent ebdec5e6
...@@ -22,10 +22,10 @@ public class ShopmallOrderService { ...@@ -22,10 +22,10 @@ public class ShopmallOrderService {
* @param req * @param req
* @return * @return
*/ */
public CreateOrderResponse createOrder(CreateOrderRequest req) { public QueryOrderDetailResponse createOrder(CreateOrderRequest req) {
Result<CreateOrderResponse> result = RestTemplateUtils.fetchPostJson(serverUrl + ShopmallOrderApiService.CREATE_ORDER, Result<QueryOrderDetailResponse> result = RestTemplateUtils.fetchPostJson(serverUrl + ShopmallOrderApiService.CREATE_ORDER,
req, req,
new ParameterizedTypeReference<Result<CreateOrderResponse>>() { new ParameterizedTypeReference<Result<QueryOrderDetailResponse>>() {
}); });
return result.getData(); return result.getData();
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!