Commit 37512f47 by 刘宇峰

修改接口

1 parent 0334039b
......@@ -15,16 +15,24 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
@ResponseResultBody
@FeignClient(name = "${feign.shopmall.name}", path = "/api/aftersalesorder", contextId = "feignAfterSalesOrderApi", decode404 = true)
@FeignClient(name = "${feign.shopmall.name}", path = "/api/", contextId = "feignAfterSalesOrderApi", decode404 = true)
public interface ShopmallAfterSalesOrderApiService {
public final String QUERY_ORDER_AVAILABE_RETURN_TYPE = "aftersalesorder/queryOrderAvailabeReturnType";
public final String QUERY_ORDER_AVAILABE_GOODS_QTY = "aftersalesorder/queryOrderAvailabeGoodsQty";
public final String CREATE_AFTER_SALES_ORDER = "aftersalesorder/createAfterSalesOrder";
public final String CANCEL_AFTER_SALES_ORDER = "aftersalesorder/cancelAfterSalesOrder";
public final String SEND_BACK_GOODS = "aftersalesorder/sendBackGoods";
public final String QUERY_AFTER_SALES_ORDER_LIST = "aftersalesorder/queryAfterSalesOrderList";
public final String QUERY_AFTER_SALES_ORDER_DETAIL = "aftersalesorder/queryAfterSalesOrderDetail";
/**
* 查询订单可以申请的售后服务类型接口
*
* @param parentOrderCode 云中鹤父订单号
* @return
*/
@GetMapping(value = "/queryOrderAvailabeReturnType")
@GetMapping(value = QUERY_ORDER_AVAILABE_RETURN_TYPE)
public QueryOrderAvailabeReturnTypeResponse queryOrderAvailabeReturnType(@RequestParam(value = "parentOrderCode") String parentOrderCode);
/**
......@@ -34,7 +42,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param goodsSkuCode
* @return
*/
@GetMapping(value = "/queryOrderAvailabeGoodsQty")
@GetMapping(value = QUERY_ORDER_AVAILABE_GOODS_QTY)
public QueryOrderAvailabeGoodsQtyResponse queryOrderAvailabeGoodsQty(@RequestParam(value = "orderCode") String orderCode,
@RequestParam(value = "goodsSkuCode") String goodsSkuCode);
......@@ -44,7 +52,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param req
* @return
*/
@PostMapping(value = "/createAfterSalesOrder", consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = CREATE_AFTER_SALES_ORDER, consumes = MediaType.APPLICATION_JSON_VALUE)
public CreateAfterSalesOrderResponse createAfterSalesOrder(@RequestBody CreateAfterSalesOrderRequest req);
/**
......@@ -53,7 +61,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param req
* @return
*/
@PostMapping(value = "/cancelAfterSalesOrder", consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = CANCEL_AFTER_SALES_ORDER, consumes = MediaType.APPLICATION_JSON_VALUE)
public CancelAfterSalesOrderResponse cancelAfterSalesOrder(@RequestBody CancelAfterSalesOrderRequest req);
/**
......@@ -62,7 +70,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param req
* @return
*/
@PostMapping(value = "/sendBackGoods", consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = SEND_BACK_GOODS, consumes = MediaType.APPLICATION_JSON_VALUE)
public SendBackGoodsResponse sendBackGoods(@RequestBody SendBackGoodsRequest req);
/**
......@@ -71,7 +79,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param req
* @return
*/
@GetMapping(value = "/queryAfterSalesOrderList")
@GetMapping(value = QUERY_AFTER_SALES_ORDER_LIST)
public QueryAfterSalesOrderListResponse queryAfterSalesOrderList(@SpringQueryMap QueryAfterSalesOrderListRequest req);
/**
......@@ -81,7 +89,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param tparReturnOrderCode
* @return
*/
@GetMapping(value = "/queryAfterSalesOrderDetail")
@GetMapping(value = QUERY_AFTER_SALES_ORDER_DETAIL)
public QueryAfterSalesOrderDetailResponse queryAfterSalesOrderDetail(@RequestParam(value = "returnOrderCode") String returnOrderCode,
@RequestParam(value = "tparReturnOrderCode") String tparReturnOrderCode);
......
......@@ -9,15 +9,27 @@ import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
@ResponseResultBody
@FeignClient(name = "${feign.shopmall.name}", path = "/api/basedata", contextId = "feignBaseDataApi", decode404 = true)
@FeignClient(name = "${feign.shopmall.name}", path = "/api/", contextId = "feignBaseDataApi", decode404 = true)
public interface ShopmallBaseDataApiService {
public final String QUERY_ADDRESS_PROVINCE = "address/queryAddressProvince";
public final String QUERY_ADDRESS_CITY = "address/queryAddressCity";
public final String QUERY_ADDRESS_AREA = "address/queryAddressArea";
public final String QUERY_ADDRESS_STREET = "address/queryAddressStreet";
public final String QUERY_ADDRESS_ALL = "address/queryAddressList";
public final String QUERY_ONE_CATEGORY_LIST = "category/queryOneCategoryList";
public final String QUERY_SECOND_CATEGORY_LIST = "category/querySecondCategoryList";
public final String QUERY_THREE_CATEGORY_LIST = "category/queryThreeCategoryList";
public final String QUERY_CATEGORY_LIST = "category/queryCategoryList";
public final String QUERY_BRAND_LIST = "brand/queryBrandList";
public final String QUERY_EXPRESS_LIST = "express/queryExpressList";
/**
* 获取一级地址列表接口
*
* @return
*/
@GetMapping(value = "/queryAddressProvince")
@GetMapping(value = QUERY_ADDRESS_PROVINCE)
public List<QueryAddressProvinceResponse> queryAddressProvince();
/**
......@@ -26,7 +38,7 @@ public interface ShopmallBaseDataApiService {
* @param parentAddressCode
* @return
*/
@GetMapping(value = "/queryAddressCity")
@GetMapping(value = QUERY_ADDRESS_CITY)
public List<QueryAddressCityResponse> queryAddressCity(@RequestParam(value = "parentAddressCode") String parentAddressCode);
/**
......@@ -35,7 +47,7 @@ public interface ShopmallBaseDataApiService {
* @param parentAddressCode
* @return
*/
@GetMapping(value = "/queryAddressArea")
@GetMapping(value = QUERY_ADDRESS_AREA)
public List<QueryAddressAreaResponse> queryAddressArea(@RequestParam(value = "parentAddressCode") String parentAddressCode);
/**
......@@ -44,7 +56,7 @@ public interface ShopmallBaseDataApiService {
* @param parentAddressCode
* @return
*/
@GetMapping(value = "/queryAddressStreet")
@GetMapping(value = QUERY_ADDRESS_STREET)
public List<QueryAddressStreetResponse> queryAddressStreet(@RequestParam(value = "parentAddressCode") String parentAddressCode);
/**
......@@ -52,7 +64,7 @@ public interface ShopmallBaseDataApiService {
*
* @return
*/
@GetMapping(value = "/queryAddressList")
@GetMapping(value = QUERY_ADDRESS_ALL)
public List<QueryAddressListResponse> queryAddressList();
/**
......@@ -60,7 +72,7 @@ public interface ShopmallBaseDataApiService {
*
* @return
*/
@GetMapping(value = "/queryOneCategoryList")
@GetMapping(value = QUERY_ONE_CATEGORY_LIST)
public List<QueryOneCategoryListResponse> queryOneCategoryList();
/**
......@@ -69,7 +81,7 @@ public interface ShopmallBaseDataApiService {
* @param parentCategoryCode
* @return
*/
@GetMapping(value = "/querySecondCategoryList")
@GetMapping(value = QUERY_SECOND_CATEGORY_LIST)
public List<QuerySecondCategoryListResponse> querySecondCategoryList(@RequestParam(value = "parentCategoryCode") String parentCategoryCode);
/**
......@@ -78,7 +90,7 @@ public interface ShopmallBaseDataApiService {
* @param parentCategoryCode
* @return
*/
@GetMapping(value = "/queryThreeCategoryList")
@GetMapping(value = QUERY_THREE_CATEGORY_LIST)
public List<QueryThreeCategoryListResponse> queryThreeCategoryList(@RequestParam(value = "parentCategoryCode") String parentCategoryCode);
/**
......@@ -86,7 +98,7 @@ public interface ShopmallBaseDataApiService {
*
* @return
*/
@GetMapping(value = "/queryCategoryList")
@GetMapping(value = QUERY_CATEGORY_LIST)
public List<QueryCategoryListResponse> queryCategoryList();
/**
......@@ -94,7 +106,7 @@ public interface ShopmallBaseDataApiService {
*
* @return
*/
@GetMapping(value = "/queryBrandList")
@GetMapping(value = QUERY_BRAND_LIST)
public List<QueryBrandListResponse> queryBrandList();
/**
......@@ -102,7 +114,7 @@ public interface ShopmallBaseDataApiService {
*
* @return
*/
@GetMapping(value = "/queryExpressList")
@GetMapping(value = QUERY_EXPRESS_LIST)
public List<QueryExpressListResponse> queryExpressList();
@GetMapping(value = "/syncAddressData")
......
......@@ -14,16 +14,25 @@ import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
@ResponseResultBody
@FeignClient(name = "${feign.shopmall.name}", path = "/api/goods", contextId = "feignGoodsApiApi", decode404 = true)
@FeignClient(name = "${feign.shopmall.name}", path = "/api/", contextId = "feignGoodsApiApi", decode404 = true)
public interface ShopmallGoodsApiService {
public final String QUERY_GOODS_LIST = "goods/queryGoodsList";
public final String QUERY_GOODS_LIST_BY_CONDITION = "goods/queryGoodsListByCondition";
public final String QUERY_GOODS_DETAIL = "goods/queryGoodsDetail";
public final String QUERY_GOODS_IMAGE_LIST = "goods/queryGoodsImageList";
public final String QUERY_GOODS_SHELVES_LIST = "goods/queryGoodsShelvesList";
public final String QUERY_GOODS_PRICE_LIST = "goods/queryGoodsPriceList";
public final String QUERY_GOODS_STOCK_LIST = "goods/queryGoodsStockList";
public final String QUERY_GOODS_SALE_LIMIT_LIST = "goods/queryGoodsSaleLimitList";
/**
* 获取商品信息列表接口
*
* @param req
* @return
*/
@PostMapping(value = "/queryGoodsList")
@PostMapping(value = QUERY_GOODS_LIST)
public PageInfo<GoodsSkuListItem> queryGoodsList(@RequestBody QueryGoodsListRequest req);
/**
......@@ -32,7 +41,7 @@ public interface ShopmallGoodsApiService {
* @param req
* @return
*/
@PostMapping(value = "/queryGoodsListByCondition")
@PostMapping(value = QUERY_GOODS_LIST_BY_CONDITION)
public PageInfo<GoodsSkuListSearchItem> queryGoodsListByCondition(@RequestBody QueryGoodsListByConditionRequest req);
/**
......@@ -41,7 +50,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @return
*/
@GetMapping(value = "/queryGoodsDetail")
@GetMapping(value = QUERY_GOODS_DETAIL)
public List<QueryGoodsDetailResponse> queryGoodsDetail(@RequestParam("goodsSkuCodes") List<String> goodsSkuCodes);
/**
......@@ -50,7 +59,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @return
*/
@GetMapping(value = "/queryGoodsImageList")
@GetMapping(value = QUERY_GOODS_IMAGE_LIST)
public List<QueryGoodsImageListResponse> queryGoodsImageList(@RequestParam("goodsSkuCodes") List<String> goodsSkuCodes);
/**
......@@ -59,7 +68,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @return
*/
@GetMapping(value = "/queryGoodsShelvesList")
@GetMapping(value = QUERY_GOODS_SHELVES_LIST)
public List<QueryGoodsShelvesListResponse> queryGoodsShelvesList(@RequestParam("goodsSkuCodes") List<String> goodsSkuCodes);
/**
......@@ -68,7 +77,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @return
*/
@GetMapping(value = "/queryGoodsPriceList")
@GetMapping(value = QUERY_GOODS_PRICE_LIST)
public List<QueryGoodsPriceListResponse> queryGoodsPriceList(@RequestParam("goodsSkuCodes") List<String> goodsSkuCodes);
/**
......@@ -77,7 +86,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @return
*/
@GetMapping(value = "/queryGoodsStockList")
@GetMapping(value = QUERY_GOODS_STOCK_LIST)
public List<QueryGoodsStockListResponse> queryGoodsStockList(@RequestParam("goodsSkuCodes") List<String> goodsSkuCodes);
/**
......@@ -86,7 +95,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @return
*/
@GetMapping(value = "/queryGoodsSaleLimitList")
@GetMapping(value = QUERY_GOODS_SALE_LIMIT_LIST)
public List<QueryGoodsSaleLimitListResponse> queryGoodsSaleLimitList(@RequestParam("goodsSkuCodes") List<String> goodsSkuCodes);
@GetMapping(value = "/syncGoodsListData")
......
......@@ -9,16 +9,24 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@ResponseResultBody
@FeignClient(name = "${feign.shopmall.name}", path = "/api/order", contextId = "feignOrderApiApi", decode404 = true)
@FeignClient(name = "${feign.shopmall.name}", path = "/api/", contextId = "feignOrderApiApi", decode404 = true)
public interface ShopmallOrderApiService {
public final String CREATE_ORDER = "order/createOrder";
public final String CONFIRM_ORDER = "order/confirmOrder";
public final String CANCEL_ORDER = "order/cancelOrder";
public final String QUERY_ORDER_LIST = "order/queryOrderList";
public final String QUERY_ORDER_DETAIL = "order/queryOrderDetail";
public final String QUERY_ORDER_LOGISTICS = "order/queryOrderLogistics";
public final String QUERY_ORDER_INVOICE = "order/queryOrderInvoice";
/**
* 提交订单接口
*
* @param req
* @return
*/
@PostMapping(value = "/createOrder", consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = CREATE_ORDER, consumes = MediaType.APPLICATION_JSON_VALUE)
public CreateOrderResponse createOrder(@RequestBody CreateOrderRequest req);
/**
......@@ -27,7 +35,7 @@ public interface ShopmallOrderApiService {
* @param req
* @return
*/
@PostMapping(value = "/confirmOrder", consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = CONFIRM_ORDER, consumes = MediaType.APPLICATION_JSON_VALUE)
public ConfirmOrderResponse confirmOrder(@RequestBody ConfirmOrderRequest req);
/**
......@@ -36,7 +44,7 @@ public interface ShopmallOrderApiService {
* @param req
* @return
*/
@PostMapping(value = "/cancelOrder", consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = CANCEL_ORDER, consumes = MediaType.APPLICATION_JSON_VALUE)
public CancelOrderResponse cancelOrder(@RequestBody CancelOrderRequest req);
/**
......@@ -45,7 +53,7 @@ public interface ShopmallOrderApiService {
* @param req
* @return
*/
@PostMapping(value = "/queryOrderList")
@PostMapping(value = QUERY_ORDER_LIST)
public QueryOrderListResponse queryOrderList(@RequestBody QueryOrderListRequest req);
/**
......@@ -54,7 +62,7 @@ public interface ShopmallOrderApiService {
* @param req
* @return
*/
@PostMapping(value = "/queryOrderDetail", consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = QUERY_ORDER_DETAIL, consumes = MediaType.APPLICATION_JSON_VALUE)
public QueryOrderDetailResponse queryOrderDetail(@RequestBody QueryOrderDetailRequest req);
/**
......@@ -63,7 +71,7 @@ public interface ShopmallOrderApiService {
* @param req
* @return
*/
@PostMapping(value = "/queryOrderLogistics", consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = QUERY_ORDER_LOGISTICS, consumes = MediaType.APPLICATION_JSON_VALUE)
public QueryOrderLogisticsResponse queryOrderLogistics(@RequestBody QueryOrderLogisticsRequest req);
/**
......@@ -72,7 +80,7 @@ public interface ShopmallOrderApiService {
* @param req
* @return
*/
@PostMapping(value = "/queryOrderInvoice", consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = QUERY_ORDER_INVOICE, consumes = MediaType.APPLICATION_JSON_VALUE)
public QueryOrderInvoiceResponse queryOrderInvoice(@RequestBody QueryOrderInvoiceRequest req);
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!