Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-shopmall-parent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 37512f47
authored
Apr 14, 2023
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改接口
1 parent
0334039b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
37 deletions
platform-shopmall-api/src/main/java/cn/com/glsx/admin/api/ShopmallAfterSalesOrderApiService.java
platform-shopmall-api/src/main/java/cn/com/glsx/admin/api/ShopmallBaseDataApiService.java
platform-shopmall-api/src/main/java/cn/com/glsx/admin/api/ShopmallGoodsApiService.java
platform-shopmall-api/src/main/java/cn/com/glsx/admin/api/ShopmallOrderApiService.java
platform-shopmall-api/src/main/java/cn/com/glsx/admin/api/ShopmallAfterSalesOrderApiService.java
View file @
37512f4
...
@@ -15,16 +15,24 @@ import org.springframework.web.bind.annotation.RequestBody;
...
@@ -15,16 +15,24 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
@ResponseResultBody
@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
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 云中鹤父订单号
* @param parentOrderCode 云中鹤父订单号
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryOrderAvailabeReturnType"
)
@GetMapping
(
value
=
QUERY_ORDER_AVAILABE_RETURN_TYPE
)
public
QueryOrderAvailabeReturnTypeResponse
queryOrderAvailabeReturnType
(
@RequestParam
(
value
=
"parentOrderCode"
)
String
parentOrderCode
);
public
QueryOrderAvailabeReturnTypeResponse
queryOrderAvailabeReturnType
(
@RequestParam
(
value
=
"parentOrderCode"
)
String
parentOrderCode
);
/**
/**
...
@@ -34,7 +42,7 @@ public interface ShopmallAfterSalesOrderApiService {
...
@@ -34,7 +42,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param goodsSkuCode
* @param goodsSkuCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryOrderAvailabeGoodsQty"
)
@GetMapping
(
value
=
QUERY_ORDER_AVAILABE_GOODS_QTY
)
public
QueryOrderAvailabeGoodsQtyResponse
queryOrderAvailabeGoodsQty
(
@RequestParam
(
value
=
"orderCode"
)
String
orderCode
,
public
QueryOrderAvailabeGoodsQtyResponse
queryOrderAvailabeGoodsQty
(
@RequestParam
(
value
=
"orderCode"
)
String
orderCode
,
@RequestParam
(
value
=
"goodsSkuCode"
)
String
goodsSkuCode
);
@RequestParam
(
value
=
"goodsSkuCode"
)
String
goodsSkuCode
);
...
@@ -44,7 +52,7 @@ public interface ShopmallAfterSalesOrderApiService {
...
@@ -44,7 +52,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param req
* @param req
* @return
* @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
);
public
CreateAfterSalesOrderResponse
createAfterSalesOrder
(
@RequestBody
CreateAfterSalesOrderRequest
req
);
/**
/**
...
@@ -53,7 +61,7 @@ public interface ShopmallAfterSalesOrderApiService {
...
@@ -53,7 +61,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param req
* @param req
* @return
* @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
);
public
CancelAfterSalesOrderResponse
cancelAfterSalesOrder
(
@RequestBody
CancelAfterSalesOrderRequest
req
);
/**
/**
...
@@ -62,7 +70,7 @@ public interface ShopmallAfterSalesOrderApiService {
...
@@ -62,7 +70,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param req
* @param req
* @return
* @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
);
public
SendBackGoodsResponse
sendBackGoods
(
@RequestBody
SendBackGoodsRequest
req
);
/**
/**
...
@@ -71,7 +79,7 @@ public interface ShopmallAfterSalesOrderApiService {
...
@@ -71,7 +79,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryAfterSalesOrderList"
)
@GetMapping
(
value
=
QUERY_AFTER_SALES_ORDER_LIST
)
public
QueryAfterSalesOrderListResponse
queryAfterSalesOrderList
(
@SpringQueryMap
QueryAfterSalesOrderListRequest
req
);
public
QueryAfterSalesOrderListResponse
queryAfterSalesOrderList
(
@SpringQueryMap
QueryAfterSalesOrderListRequest
req
);
/**
/**
...
@@ -81,7 +89,7 @@ public interface ShopmallAfterSalesOrderApiService {
...
@@ -81,7 +89,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param tparReturnOrderCode
* @param tparReturnOrderCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryAfterSalesOrderDetail"
)
@GetMapping
(
value
=
QUERY_AFTER_SALES_ORDER_DETAIL
)
public
QueryAfterSalesOrderDetailResponse
queryAfterSalesOrderDetail
(
@RequestParam
(
value
=
"returnOrderCode"
)
String
returnOrderCode
,
public
QueryAfterSalesOrderDetailResponse
queryAfterSalesOrderDetail
(
@RequestParam
(
value
=
"returnOrderCode"
)
String
returnOrderCode
,
@RequestParam
(
value
=
"tparReturnOrderCode"
)
String
tparReturnOrderCode
);
@RequestParam
(
value
=
"tparReturnOrderCode"
)
String
tparReturnOrderCode
);
...
...
platform-shopmall-api/src/main/java/cn/com/glsx/admin/api/ShopmallBaseDataApiService.java
View file @
37512f4
...
@@ -9,15 +9,27 @@ import org.springframework.web.bind.annotation.RequestParam;
...
@@ -9,15 +9,27 @@ import org.springframework.web.bind.annotation.RequestParam;
import
java.util.List
;
import
java.util.List
;
@ResponseResultBody
@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
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
* @return
*/
*/
@GetMapping
(
value
=
"/queryAddressProvince"
)
@GetMapping
(
value
=
QUERY_ADDRESS_PROVINCE
)
public
List
<
QueryAddressProvinceResponse
>
queryAddressProvince
();
public
List
<
QueryAddressProvinceResponse
>
queryAddressProvince
();
/**
/**
...
@@ -26,7 +38,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -26,7 +38,7 @@ public interface ShopmallBaseDataApiService {
* @param parentAddressCode
* @param parentAddressCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryAddressCity"
)
@GetMapping
(
value
=
QUERY_ADDRESS_CITY
)
public
List
<
QueryAddressCityResponse
>
queryAddressCity
(
@RequestParam
(
value
=
"parentAddressCode"
)
String
parentAddressCode
);
public
List
<
QueryAddressCityResponse
>
queryAddressCity
(
@RequestParam
(
value
=
"parentAddressCode"
)
String
parentAddressCode
);
/**
/**
...
@@ -35,7 +47,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -35,7 +47,7 @@ public interface ShopmallBaseDataApiService {
* @param parentAddressCode
* @param parentAddressCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryAddressArea"
)
@GetMapping
(
value
=
QUERY_ADDRESS_AREA
)
public
List
<
QueryAddressAreaResponse
>
queryAddressArea
(
@RequestParam
(
value
=
"parentAddressCode"
)
String
parentAddressCode
);
public
List
<
QueryAddressAreaResponse
>
queryAddressArea
(
@RequestParam
(
value
=
"parentAddressCode"
)
String
parentAddressCode
);
/**
/**
...
@@ -44,7 +56,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -44,7 +56,7 @@ public interface ShopmallBaseDataApiService {
* @param parentAddressCode
* @param parentAddressCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryAddressStreet"
)
@GetMapping
(
value
=
QUERY_ADDRESS_STREET
)
public
List
<
QueryAddressStreetResponse
>
queryAddressStreet
(
@RequestParam
(
value
=
"parentAddressCode"
)
String
parentAddressCode
);
public
List
<
QueryAddressStreetResponse
>
queryAddressStreet
(
@RequestParam
(
value
=
"parentAddressCode"
)
String
parentAddressCode
);
/**
/**
...
@@ -52,7 +64,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -52,7 +64,7 @@ public interface ShopmallBaseDataApiService {
*
*
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryAddressList"
)
@GetMapping
(
value
=
QUERY_ADDRESS_ALL
)
public
List
<
QueryAddressListResponse
>
queryAddressList
();
public
List
<
QueryAddressListResponse
>
queryAddressList
();
/**
/**
...
@@ -60,7 +72,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -60,7 +72,7 @@ public interface ShopmallBaseDataApiService {
*
*
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryOneCategoryList"
)
@GetMapping
(
value
=
QUERY_ONE_CATEGORY_LIST
)
public
List
<
QueryOneCategoryListResponse
>
queryOneCategoryList
();
public
List
<
QueryOneCategoryListResponse
>
queryOneCategoryList
();
/**
/**
...
@@ -69,7 +81,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -69,7 +81,7 @@ public interface ShopmallBaseDataApiService {
* @param parentCategoryCode
* @param parentCategoryCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/querySecondCategoryList"
)
@GetMapping
(
value
=
QUERY_SECOND_CATEGORY_LIST
)
public
List
<
QuerySecondCategoryListResponse
>
querySecondCategoryList
(
@RequestParam
(
value
=
"parentCategoryCode"
)
String
parentCategoryCode
);
public
List
<
QuerySecondCategoryListResponse
>
querySecondCategoryList
(
@RequestParam
(
value
=
"parentCategoryCode"
)
String
parentCategoryCode
);
/**
/**
...
@@ -78,7 +90,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -78,7 +90,7 @@ public interface ShopmallBaseDataApiService {
* @param parentCategoryCode
* @param parentCategoryCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryThreeCategoryList"
)
@GetMapping
(
value
=
QUERY_THREE_CATEGORY_LIST
)
public
List
<
QueryThreeCategoryListResponse
>
queryThreeCategoryList
(
@RequestParam
(
value
=
"parentCategoryCode"
)
String
parentCategoryCode
);
public
List
<
QueryThreeCategoryListResponse
>
queryThreeCategoryList
(
@RequestParam
(
value
=
"parentCategoryCode"
)
String
parentCategoryCode
);
/**
/**
...
@@ -86,7 +98,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -86,7 +98,7 @@ public interface ShopmallBaseDataApiService {
*
*
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryCategoryList"
)
@GetMapping
(
value
=
QUERY_CATEGORY_LIST
)
public
List
<
QueryCategoryListResponse
>
queryCategoryList
();
public
List
<
QueryCategoryListResponse
>
queryCategoryList
();
/**
/**
...
@@ -94,7 +106,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -94,7 +106,7 @@ public interface ShopmallBaseDataApiService {
*
*
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryBrandList"
)
@GetMapping
(
value
=
QUERY_BRAND_LIST
)
public
List
<
QueryBrandListResponse
>
queryBrandList
();
public
List
<
QueryBrandListResponse
>
queryBrandList
();
/**
/**
...
@@ -102,7 +114,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -102,7 +114,7 @@ public interface ShopmallBaseDataApiService {
*
*
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryExpressList"
)
@GetMapping
(
value
=
QUERY_EXPRESS_LIST
)
public
List
<
QueryExpressListResponse
>
queryExpressList
();
public
List
<
QueryExpressListResponse
>
queryExpressList
();
@GetMapping
(
value
=
"/syncAddressData"
)
@GetMapping
(
value
=
"/syncAddressData"
)
...
...
platform-shopmall-api/src/main/java/cn/com/glsx/admin/api/ShopmallGoodsApiService.java
View file @
37512f4
...
@@ -14,16 +14,25 @@ import org.springframework.web.bind.annotation.RequestParam;
...
@@ -14,16 +14,25 @@ import org.springframework.web.bind.annotation.RequestParam;
import
java.util.List
;
import
java.util.List
;
@ResponseResultBody
@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
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
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/queryGoodsList"
)
@PostMapping
(
value
=
QUERY_GOODS_LIST
)
public
PageInfo
<
GoodsSkuListItem
>
queryGoodsList
(
@RequestBody
QueryGoodsListRequest
req
);
public
PageInfo
<
GoodsSkuListItem
>
queryGoodsList
(
@RequestBody
QueryGoodsListRequest
req
);
/**
/**
...
@@ -32,7 +41,7 @@ public interface ShopmallGoodsApiService {
...
@@ -32,7 +41,7 @@ public interface ShopmallGoodsApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/queryGoodsListByCondition"
)
@PostMapping
(
value
=
QUERY_GOODS_LIST_BY_CONDITION
)
public
PageInfo
<
GoodsSkuListSearchItem
>
queryGoodsListByCondition
(
@RequestBody
QueryGoodsListByConditionRequest
req
);
public
PageInfo
<
GoodsSkuListSearchItem
>
queryGoodsListByCondition
(
@RequestBody
QueryGoodsListByConditionRequest
req
);
/**
/**
...
@@ -41,7 +50,7 @@ public interface ShopmallGoodsApiService {
...
@@ -41,7 +50,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @param goodsSkuCodes
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryGoodsDetail"
)
@GetMapping
(
value
=
QUERY_GOODS_DETAIL
)
public
List
<
QueryGoodsDetailResponse
>
queryGoodsDetail
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
public
List
<
QueryGoodsDetailResponse
>
queryGoodsDetail
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
/**
/**
...
@@ -50,7 +59,7 @@ public interface ShopmallGoodsApiService {
...
@@ -50,7 +59,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @param goodsSkuCodes
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryGoodsImageList"
)
@GetMapping
(
value
=
QUERY_GOODS_IMAGE_LIST
)
public
List
<
QueryGoodsImageListResponse
>
queryGoodsImageList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
public
List
<
QueryGoodsImageListResponse
>
queryGoodsImageList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
/**
/**
...
@@ -59,7 +68,7 @@ public interface ShopmallGoodsApiService {
...
@@ -59,7 +68,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @param goodsSkuCodes
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryGoodsShelvesList"
)
@GetMapping
(
value
=
QUERY_GOODS_SHELVES_LIST
)
public
List
<
QueryGoodsShelvesListResponse
>
queryGoodsShelvesList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
public
List
<
QueryGoodsShelvesListResponse
>
queryGoodsShelvesList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
/**
/**
...
@@ -68,7 +77,7 @@ public interface ShopmallGoodsApiService {
...
@@ -68,7 +77,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @param goodsSkuCodes
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryGoodsPriceList"
)
@GetMapping
(
value
=
QUERY_GOODS_PRICE_LIST
)
public
List
<
QueryGoodsPriceListResponse
>
queryGoodsPriceList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
public
List
<
QueryGoodsPriceListResponse
>
queryGoodsPriceList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
/**
/**
...
@@ -77,7 +86,7 @@ public interface ShopmallGoodsApiService {
...
@@ -77,7 +86,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @param goodsSkuCodes
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryGoodsStockList"
)
@GetMapping
(
value
=
QUERY_GOODS_STOCK_LIST
)
public
List
<
QueryGoodsStockListResponse
>
queryGoodsStockList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
public
List
<
QueryGoodsStockListResponse
>
queryGoodsStockList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
/**
/**
...
@@ -86,7 +95,7 @@ public interface ShopmallGoodsApiService {
...
@@ -86,7 +95,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @param goodsSkuCodes
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/queryGoodsSaleLimitList"
)
@GetMapping
(
value
=
QUERY_GOODS_SALE_LIMIT_LIST
)
public
List
<
QueryGoodsSaleLimitListResponse
>
queryGoodsSaleLimitList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
public
List
<
QueryGoodsSaleLimitListResponse
>
queryGoodsSaleLimitList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
@GetMapping
(
value
=
"/syncGoodsListData"
)
@GetMapping
(
value
=
"/syncGoodsListData"
)
...
...
platform-shopmall-api/src/main/java/cn/com/glsx/admin/api/ShopmallOrderApiService.java
View file @
37512f4
...
@@ -9,16 +9,24 @@ import org.springframework.web.bind.annotation.PostMapping;
...
@@ -9,16 +9,24 @@ import org.springframework.web.bind.annotation.PostMapping;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
@ResponseResultBody
@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
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
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/createOrder"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
@PostMapping
(
value
=
CREATE_ORDER
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
CreateOrderResponse
createOrder
(
@RequestBody
CreateOrderRequest
req
);
public
CreateOrderResponse
createOrder
(
@RequestBody
CreateOrderRequest
req
);
/**
/**
...
@@ -27,7 +35,7 @@ public interface ShopmallOrderApiService {
...
@@ -27,7 +35,7 @@ public interface ShopmallOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/confirmOrder"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
@PostMapping
(
value
=
CONFIRM_ORDER
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
ConfirmOrderResponse
confirmOrder
(
@RequestBody
ConfirmOrderRequest
req
);
public
ConfirmOrderResponse
confirmOrder
(
@RequestBody
ConfirmOrderRequest
req
);
/**
/**
...
@@ -36,7 +44,7 @@ public interface ShopmallOrderApiService {
...
@@ -36,7 +44,7 @@ public interface ShopmallOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/cancelOrder"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
@PostMapping
(
value
=
CANCEL_ORDER
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
CancelOrderResponse
cancelOrder
(
@RequestBody
CancelOrderRequest
req
);
public
CancelOrderResponse
cancelOrder
(
@RequestBody
CancelOrderRequest
req
);
/**
/**
...
@@ -45,7 +53,7 @@ public interface ShopmallOrderApiService {
...
@@ -45,7 +53,7 @@ public interface ShopmallOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/queryOrderList"
)
@PostMapping
(
value
=
QUERY_ORDER_LIST
)
public
QueryOrderListResponse
queryOrderList
(
@RequestBody
QueryOrderListRequest
req
);
public
QueryOrderListResponse
queryOrderList
(
@RequestBody
QueryOrderListRequest
req
);
/**
/**
...
@@ -54,7 +62,7 @@ public interface ShopmallOrderApiService {
...
@@ -54,7 +62,7 @@ public interface ShopmallOrderApiService {
* @param req
* @param req
* @return
* @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
);
public
QueryOrderDetailResponse
queryOrderDetail
(
@RequestBody
QueryOrderDetailRequest
req
);
/**
/**
...
@@ -63,7 +71,7 @@ public interface ShopmallOrderApiService {
...
@@ -63,7 +71,7 @@ public interface ShopmallOrderApiService {
* @param req
* @param req
* @return
* @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
);
public
QueryOrderLogisticsResponse
queryOrderLogistics
(
@RequestBody
QueryOrderLogisticsRequest
req
);
/**
/**
...
@@ -72,7 +80,7 @@ public interface ShopmallOrderApiService {
...
@@ -72,7 +80,7 @@ public interface ShopmallOrderApiService {
* @param req
* @param req
* @return
* @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
);
public
QueryOrderInvoiceResponse
queryOrderInvoice
(
@RequestBody
QueryOrderInvoiceRequest
req
);
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment