Commit 63338fad authored by 黎博's avatar 黎博

新增/api/order/getFreight接口

parent 652dcda3
package cn.qg.holmes.controller.mock.keystone;
import cn.qg.holmes.bean.KeystoneService;
import cn.qg.holmes.entity.mock.keystone.JdSellPriceRequest;
import cn.qg.holmes.entity.mock.keystone.JdSkuStateRequest;
import cn.qg.holmes.entity.mock.keystone.JdSkuStockRequest;
import cn.qg.holmes.entity.mock.keystone.ProductItem;
import cn.qg.holmes.entity.mock.keystone.*;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
......@@ -113,4 +110,24 @@ public class ProductController {
response.put("result", result);
return response;
}
/**
* 7.1 查询运费
*/
@PostMapping("/api/order/getFreight")
public JSONObject getOrderFreight(JdFreightRequest request) {
JSONObject response = new JSONObject();
response.put("success", true);
response.put("resultMessage", "");
response.put("resultCode", "0000");
JSONObject result = new JSONObject();
BigDecimal zero = new BigDecimal("0");
result.put("freight", zero);
result.put("baseFreight", zero);
result.put("remoteRegionFreight", zero);
result.put("remoteSku", "");
response.put("result", result);
return response;
}
}
package cn.qg.holmes.entity.mock.keystone;
import lombok.Data;
/**
* 查询运费请求
*/
@Data
public class JdFreightRequest {
private String token;
/**
* 商品的sku集合 以json形式传递(最多支持50种商品)
*/
private String sku;
/**
* 一级地址
*/
private Long province;
/**
* 二级地址
*/
private Long city;
/**
* 三级地址
*/
private Long county;
/**
* 四级地址
*/
private Long town = 0L;
/**
* 京东支付方式
*/
private Long paymentType = 5L;
@Data
public static class JdOrderSkuInfo {
private String skuId;
private Integer num;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment