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 8fbbeee5
authored
Apr 21, 2023
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
写死feign接口类型
1 parent
4c23efdc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
43 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 @
8fbbeee
...
@@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RequestBody;
...
@@ -15,7 +15,7 @@ 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/"
,
contextId
=
"feignAfterSalesOrderApi"
,
decode404
=
true
)
@FeignClient
(
name
=
"${feign.shopmall.name}"
,
path
=
"
${feign.shopmall.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_RETURN_TYPE
=
"aftersalesorder/queryOrderAvailabeReturnType"
;
...
@@ -32,7 +32,7 @@ public interface ShopmallAfterSalesOrderApiService {
...
@@ -32,7 +32,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param orderCode 云中鹤(子)订单编号
* @param orderCode 云中鹤(子)订单编号
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_ORDER_AVAILABE_RETURN_TYPE
)
@GetMapping
(
value
=
QUERY_ORDER_AVAILABE_RETURN_TYPE
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
QueryOrderAvailabeReturnTypeResponse
queryOrderAvailabeReturnType
(
@RequestParam
(
value
=
"orderCode"
)
String
orderCode
);
public
QueryOrderAvailabeReturnTypeResponse
queryOrderAvailabeReturnType
(
@RequestParam
(
value
=
"orderCode"
)
String
orderCode
);
/**
/**
...
@@ -42,7 +42,7 @@ public interface ShopmallAfterSalesOrderApiService {
...
@@ -42,7 +42,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param goodsSkuCode
* @param goodsSkuCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_ORDER_AVAILABE_GOODS_QTY
)
@GetMapping
(
value
=
QUERY_ORDER_AVAILABE_GOODS_QTY
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
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
);
...
@@ -52,7 +52,7 @@ public interface ShopmallAfterSalesOrderApiService {
...
@@ -52,7 +52,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
CREATE_AFTER_SALES_ORDER
,
consum
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
@PostMapping
(
value
=
CREATE_AFTER_SALES_ORDER
,
produc
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
CreateAfterSalesOrderResponse
createAfterSalesOrder
(
@RequestBody
CreateAfterSalesOrderRequest
req
);
public
CreateAfterSalesOrderResponse
createAfterSalesOrder
(
@RequestBody
CreateAfterSalesOrderRequest
req
);
/**
/**
...
@@ -61,7 +61,7 @@ public interface ShopmallAfterSalesOrderApiService {
...
@@ -61,7 +61,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
CANCEL_AFTER_SALES_ORDER
,
consum
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
@PostMapping
(
value
=
CANCEL_AFTER_SALES_ORDER
,
produc
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
CancelAfterSalesOrderResponse
cancelAfterSalesOrder
(
@RequestBody
CancelAfterSalesOrderRequest
req
);
public
CancelAfterSalesOrderResponse
cancelAfterSalesOrder
(
@RequestBody
CancelAfterSalesOrderRequest
req
);
/**
/**
...
@@ -70,7 +70,7 @@ public interface ShopmallAfterSalesOrderApiService {
...
@@ -70,7 +70,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
SEND_BACK_GOODS
,
consum
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
@PostMapping
(
value
=
SEND_BACK_GOODS
,
produc
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
SendBackGoodsResponse
sendBackGoods
(
@RequestBody
SendBackGoodsRequest
req
);
public
SendBackGoodsResponse
sendBackGoods
(
@RequestBody
SendBackGoodsRequest
req
);
/**
/**
...
@@ -79,7 +79,7 @@ public interface ShopmallAfterSalesOrderApiService {
...
@@ -79,7 +79,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
QUERY_AFTER_SALES_ORDER_LIST
,
consum
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
@PostMapping
(
value
=
QUERY_AFTER_SALES_ORDER_LIST
,
produc
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
PageInfo
<
AfterSalesOrderListSearchItem
>
queryAfterSalesOrderList
(
@RequestBody
QueryAfterSalesOrderListRequestDTO
req
);
public
PageInfo
<
AfterSalesOrderListSearchItem
>
queryAfterSalesOrderList
(
@RequestBody
QueryAfterSalesOrderListRequestDTO
req
);
/**
/**
...
@@ -89,7 +89,7 @@ public interface ShopmallAfterSalesOrderApiService {
...
@@ -89,7 +89,7 @@ public interface ShopmallAfterSalesOrderApiService {
* @param tparReturnOrderCode
* @param tparReturnOrderCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_AFTER_SALES_ORDER_DETAIL
)
@GetMapping
(
value
=
QUERY_AFTER_SALES_ORDER_DETAIL
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
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 @
8fbbeee
...
@@ -3,13 +3,14 @@ package cn.com.glsx.admin.api;
...
@@ -3,13 +3,14 @@ package cn.com.glsx.admin.api;
import
cn.com.glsx.admin.modules.model.cloudcrane.response.*
;
import
cn.com.glsx.admin.modules.model.cloudcrane.response.*
;
import
com.glsx.plat.core.annotation.ResponseResultBody
;
import
com.glsx.plat.core.annotation.ResponseResultBody
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.List
;
import
java.util.List
;
@ResponseResultBody
@ResponseResultBody
@FeignClient
(
name
=
"${feign.shopmall.name}"
,
path
=
"/api/"
,
contextId
=
"feignBaseDataApi"
,
decode404
=
true
)
@FeignClient
(
name
=
"${feign.shopmall.name}"
,
path
=
"
${feign.shopmall.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_PROVINCE
=
"address/queryAddressProvince"
;
...
@@ -29,7 +30,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -29,7 +30,7 @@ public interface ShopmallBaseDataApiService {
*
*
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_ADDRESS_PROVINCE
)
@GetMapping
(
value
=
QUERY_ADDRESS_PROVINCE
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryAddressProvinceResponse
>
queryAddressProvince
();
public
List
<
QueryAddressProvinceResponse
>
queryAddressProvince
();
/**
/**
...
@@ -38,7 +39,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -38,7 +39,7 @@ public interface ShopmallBaseDataApiService {
* @param parentAddressCode
* @param parentAddressCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_ADDRESS_CITY
)
@GetMapping
(
value
=
QUERY_ADDRESS_CITY
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryAddressCityResponse
>
queryAddressCity
(
@RequestParam
(
value
=
"parentAddressCode"
)
String
parentAddressCode
);
public
List
<
QueryAddressCityResponse
>
queryAddressCity
(
@RequestParam
(
value
=
"parentAddressCode"
)
String
parentAddressCode
);
/**
/**
...
@@ -47,7 +48,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -47,7 +48,7 @@ public interface ShopmallBaseDataApiService {
* @param parentAddressCode
* @param parentAddressCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_ADDRESS_AREA
)
@GetMapping
(
value
=
QUERY_ADDRESS_AREA
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryAddressAreaResponse
>
queryAddressArea
(
@RequestParam
(
value
=
"parentAddressCode"
)
String
parentAddressCode
);
public
List
<
QueryAddressAreaResponse
>
queryAddressArea
(
@RequestParam
(
value
=
"parentAddressCode"
)
String
parentAddressCode
);
/**
/**
...
@@ -56,7 +57,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -56,7 +57,7 @@ public interface ShopmallBaseDataApiService {
* @param parentAddressCode
* @param parentAddressCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_ADDRESS_STREET
)
@GetMapping
(
value
=
QUERY_ADDRESS_STREET
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryAddressStreetResponse
>
queryAddressStreet
(
@RequestParam
(
value
=
"parentAddressCode"
)
String
parentAddressCode
);
public
List
<
QueryAddressStreetResponse
>
queryAddressStreet
(
@RequestParam
(
value
=
"parentAddressCode"
)
String
parentAddressCode
);
/**
/**
...
@@ -64,7 +65,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -64,7 +65,7 @@ public interface ShopmallBaseDataApiService {
*
*
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_ADDRESS_LIST
)
@GetMapping
(
value
=
QUERY_ADDRESS_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryAddressListResponse
>
queryAddressList
();
public
List
<
QueryAddressListResponse
>
queryAddressList
();
/**
/**
...
@@ -72,7 +73,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -72,7 +73,7 @@ public interface ShopmallBaseDataApiService {
*
*
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_ONE_CATEGORY_LIST
)
@GetMapping
(
value
=
QUERY_ONE_CATEGORY_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryOneCategoryListResponse
>
queryOneCategoryList
();
public
List
<
QueryOneCategoryListResponse
>
queryOneCategoryList
();
/**
/**
...
@@ -81,7 +82,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -81,7 +82,7 @@ public interface ShopmallBaseDataApiService {
* @param parentCategoryCode
* @param parentCategoryCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_SECOND_CATEGORY_LIST
)
@GetMapping
(
value
=
QUERY_SECOND_CATEGORY_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QuerySecondCategoryListResponse
>
querySecondCategoryList
(
@RequestParam
(
value
=
"parentCategoryCode"
)
String
parentCategoryCode
);
public
List
<
QuerySecondCategoryListResponse
>
querySecondCategoryList
(
@RequestParam
(
value
=
"parentCategoryCode"
)
String
parentCategoryCode
);
/**
/**
...
@@ -90,7 +91,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -90,7 +91,7 @@ public interface ShopmallBaseDataApiService {
* @param parentCategoryCode
* @param parentCategoryCode
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_THREE_CATEGORY_LIST
)
@GetMapping
(
value
=
QUERY_THREE_CATEGORY_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryThreeCategoryListResponse
>
queryThreeCategoryList
(
@RequestParam
(
value
=
"parentCategoryCode"
)
String
parentCategoryCode
);
public
List
<
QueryThreeCategoryListResponse
>
queryThreeCategoryList
(
@RequestParam
(
value
=
"parentCategoryCode"
)
String
parentCategoryCode
);
/**
/**
...
@@ -98,7 +99,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -98,7 +99,7 @@ public interface ShopmallBaseDataApiService {
*
*
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_CATEGORY_LIST
)
@GetMapping
(
value
=
QUERY_CATEGORY_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryCategoryListResponse
>
queryCategoryList
();
public
List
<
QueryCategoryListResponse
>
queryCategoryList
();
/**
/**
...
@@ -106,7 +107,7 @@ public interface ShopmallBaseDataApiService {
...
@@ -106,7 +107,7 @@ public interface ShopmallBaseDataApiService {
*
*
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_BRAND_LIST
)
@GetMapping
(
value
=
QUERY_BRAND_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryBrandListResponse
>
queryBrandList
();
public
List
<
QueryBrandListResponse
>
queryBrandList
();
/**
/**
...
@@ -114,19 +115,19 @@ public interface ShopmallBaseDataApiService {
...
@@ -114,19 +115,19 @@ public interface ShopmallBaseDataApiService {
*
*
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_EXPRESS_LIST
)
@GetMapping
(
value
=
QUERY_EXPRESS_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryExpressListResponse
>
queryExpressList
();
public
List
<
QueryExpressListResponse
>
queryExpressList
();
@GetMapping
(
value
=
"/syncAddressData"
)
@GetMapping
(
value
=
"/syncAddressData"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
Integer
syncAddressData
();
public
Integer
syncAddressData
();
@GetMapping
(
value
=
"/syncCategoryData"
)
@GetMapping
(
value
=
"/syncCategoryData"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
Integer
syncCategoryData
();
public
Integer
syncCategoryData
();
@GetMapping
(
value
=
"/syncBrandData"
)
@GetMapping
(
value
=
"/syncBrandData"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
Integer
syncBrandData
();
public
Integer
syncBrandData
();
@GetMapping
(
value
=
"/syncExpressData"
)
@GetMapping
(
value
=
"/syncExpressData"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
Integer
syncExpressData
();
public
Integer
syncExpressData
();
}
}
platform-shopmall-api/src/main/java/cn/com/glsx/admin/api/ShopmallGoodsApiService.java
View file @
8fbbeee
...
@@ -6,6 +6,7 @@ import cn.com.glsx.admin.modules.model.cloudcrane.response.*;
...
@@ -6,6 +6,7 @@ import cn.com.glsx.admin.modules.model.cloudcrane.response.*;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.plat.core.annotation.ResponseResultBody
;
import
com.glsx.plat.core.annotation.ResponseResultBody
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
@@ -14,7 +15,7 @@ import org.springframework.web.bind.annotation.RequestParam;
...
@@ -14,7 +15,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import
java.util.List
;
import
java.util.List
;
@ResponseResultBody
@ResponseResultBody
@FeignClient
(
name
=
"${feign.shopmall.name}"
,
path
=
"/api/"
,
contextId
=
"feignGoodsApiApi"
,
decode404
=
true
)
@FeignClient
(
name
=
"${feign.shopmall.name}"
,
path
=
"
${feign.shopmall.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
=
"goods/queryGoodsList"
;
...
@@ -32,7 +33,7 @@ public interface ShopmallGoodsApiService {
...
@@ -32,7 +33,7 @@ public interface ShopmallGoodsApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
QUERY_GOODS_LIST
)
@PostMapping
(
value
=
QUERY_GOODS_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
PageInfo
<
GoodsSkuListItem
>
queryGoodsList
(
@RequestBody
QueryGoodsListRequestDTO
req
);
public
PageInfo
<
GoodsSkuListItem
>
queryGoodsList
(
@RequestBody
QueryGoodsListRequestDTO
req
);
/**
/**
...
@@ -41,7 +42,7 @@ public interface ShopmallGoodsApiService {
...
@@ -41,7 +42,7 @@ public interface ShopmallGoodsApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
QUERY_GOODS_LIST_BY_CONDITION
)
@PostMapping
(
value
=
QUERY_GOODS_LIST_BY_CONDITION
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
PageInfo
<
GoodsSkuListSearchItem
>
queryGoodsListByCondition
(
@RequestBody
QueryGoodsListByConditionRequestDTO
req
);
public
PageInfo
<
GoodsSkuListSearchItem
>
queryGoodsListByCondition
(
@RequestBody
QueryGoodsListByConditionRequestDTO
req
);
/**
/**
...
@@ -50,7 +51,7 @@ public interface ShopmallGoodsApiService {
...
@@ -50,7 +51,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @param goodsSkuCodes
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_GOODS_DETAIL
)
@GetMapping
(
value
=
QUERY_GOODS_DETAIL
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryGoodsDetailResponse
>
queryGoodsDetail
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
public
List
<
QueryGoodsDetailResponse
>
queryGoodsDetail
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
/**
/**
...
@@ -59,7 +60,7 @@ public interface ShopmallGoodsApiService {
...
@@ -59,7 +60,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @param goodsSkuCodes
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_GOODS_IMAGE_LIST
)
@GetMapping
(
value
=
QUERY_GOODS_IMAGE_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryGoodsImageListResponse
>
queryGoodsImageList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
public
List
<
QueryGoodsImageListResponse
>
queryGoodsImageList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
/**
/**
...
@@ -68,7 +69,7 @@ public interface ShopmallGoodsApiService {
...
@@ -68,7 +69,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @param goodsSkuCodes
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_GOODS_SHELVES_LIST
)
@GetMapping
(
value
=
QUERY_GOODS_SHELVES_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryGoodsShelvesListResponse
>
queryGoodsShelvesList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
public
List
<
QueryGoodsShelvesListResponse
>
queryGoodsShelvesList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
/**
/**
...
@@ -77,7 +78,7 @@ public interface ShopmallGoodsApiService {
...
@@ -77,7 +78,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @param goodsSkuCodes
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_GOODS_PRICE_LIST
)
@GetMapping
(
value
=
QUERY_GOODS_PRICE_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryGoodsPriceListResponse
>
queryGoodsPriceList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
public
List
<
QueryGoodsPriceListResponse
>
queryGoodsPriceList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
/**
/**
...
@@ -86,7 +87,7 @@ public interface ShopmallGoodsApiService {
...
@@ -86,7 +87,7 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @param goodsSkuCodes
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_GOODS_STOCK_LIST
)
@GetMapping
(
value
=
QUERY_GOODS_STOCK_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryGoodsStockListResponse
>
queryGoodsStockList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
public
List
<
QueryGoodsStockListResponse
>
queryGoodsStockList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
/**
/**
...
@@ -95,13 +96,13 @@ public interface ShopmallGoodsApiService {
...
@@ -95,13 +96,13 @@ public interface ShopmallGoodsApiService {
* @param goodsSkuCodes
* @param goodsSkuCodes
* @return
* @return
*/
*/
@GetMapping
(
value
=
QUERY_GOODS_SALE_LIMIT_LIST
)
@GetMapping
(
value
=
QUERY_GOODS_SALE_LIMIT_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
List
<
QueryGoodsSaleLimitListResponse
>
queryGoodsSaleLimitList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
public
List
<
QueryGoodsSaleLimitListResponse
>
queryGoodsSaleLimitList
(
@RequestParam
(
"goodsSkuCodes"
)
List
<
String
>
goodsSkuCodes
);
@GetMapping
(
value
=
"/syncGoodsListData"
)
@GetMapping
(
value
=
"/syncGoodsListData"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
Integer
syncGoodsListData
();
public
Integer
syncGoodsListData
();
@PostMapping
(
value
=
"/syncGoodsInfoData"
)
@PostMapping
(
value
=
"/syncGoodsInfoData"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
Integer
syncGoodsInfoData
(
@RequestBody
List
<
String
>
goodsSkuCodes
);
public
Integer
syncGoodsInfoData
(
@RequestBody
List
<
String
>
goodsSkuCodes
);
}
}
platform-shopmall-api/src/main/java/cn/com/glsx/admin/api/ShopmallOrderApiService.java
View file @
8fbbeee
...
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.PostMapping;
...
@@ -10,7 +10,7 @@ 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/"
,
contextId
=
"feignOrderApiApi"
,
decode404
=
true
)
@FeignClient
(
name
=
"${feign.shopmall.name}"
,
path
=
"
${feign.shopmall.path}
/api/"
,
contextId
=
"feignOrderApiApi"
,
decode404
=
true
)
public
interface
ShopmallOrderApiService
{
public
interface
ShopmallOrderApiService
{
public
final
String
CREATE_ORDER
=
"order/createOrder"
;
public
final
String
CREATE_ORDER
=
"order/createOrder"
;
...
@@ -27,7 +27,7 @@ public interface ShopmallOrderApiService {
...
@@ -27,7 +27,7 @@ public interface ShopmallOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
CREATE_ORDER
,
consum
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
@PostMapping
(
value
=
CREATE_ORDER
,
produc
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
CreateOrderResponse
createOrder
(
@RequestBody
CreateOrderRequest
req
);
public
CreateOrderResponse
createOrder
(
@RequestBody
CreateOrderRequest
req
);
/**
/**
...
@@ -36,7 +36,7 @@ public interface ShopmallOrderApiService {
...
@@ -36,7 +36,7 @@ public interface ShopmallOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
CONFIRM_ORDER
,
consum
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
@PostMapping
(
value
=
CONFIRM_ORDER
,
produc
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
ConfirmOrderResponse
confirmOrder
(
@RequestBody
ConfirmOrderRequest
req
);
public
ConfirmOrderResponse
confirmOrder
(
@RequestBody
ConfirmOrderRequest
req
);
/**
/**
...
@@ -45,7 +45,7 @@ public interface ShopmallOrderApiService {
...
@@ -45,7 +45,7 @@ public interface ShopmallOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
CANCEL_ORDER
,
consum
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
@PostMapping
(
value
=
CANCEL_ORDER
,
produc
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
CancelOrderResponse
cancelOrder
(
@RequestBody
CancelOrderRequest
req
);
public
CancelOrderResponse
cancelOrder
(
@RequestBody
CancelOrderRequest
req
);
/**
/**
...
@@ -54,7 +54,7 @@ public interface ShopmallOrderApiService {
...
@@ -54,7 +54,7 @@ public interface ShopmallOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
QUERY_ORDER_LIST
)
@PostMapping
(
value
=
QUERY_ORDER_LIST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
PageInfo
<
OrderListSearchItem
>
queryOrderList
(
@RequestBody
QueryOrderListRequest
req
);
public
PageInfo
<
OrderListSearchItem
>
queryOrderList
(
@RequestBody
QueryOrderListRequest
req
);
/**
/**
...
@@ -63,7 +63,7 @@ public interface ShopmallOrderApiService {
...
@@ -63,7 +63,7 @@ public interface ShopmallOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
QUERY_ORDER_DETAIL
,
consum
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
@PostMapping
(
value
=
QUERY_ORDER_DETAIL
,
produc
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
QueryOrderDetailResponse
queryOrderDetail
(
@RequestBody
QueryOrderDetailRequest
req
);
public
QueryOrderDetailResponse
queryOrderDetail
(
@RequestBody
QueryOrderDetailRequest
req
);
/**
/**
...
@@ -72,7 +72,7 @@ public interface ShopmallOrderApiService {
...
@@ -72,7 +72,7 @@ public interface ShopmallOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
QUERY_ORDER_LOGISTICS
,
consum
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
@PostMapping
(
value
=
QUERY_ORDER_LOGISTICS
,
produc
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
QueryOrderLogisticsResponse
queryOrderLogistics
(
@RequestBody
QueryOrderLogisticsRequest
req
);
public
QueryOrderLogisticsResponse
queryOrderLogistics
(
@RequestBody
QueryOrderLogisticsRequest
req
);
/**
/**
...
@@ -81,7 +81,7 @@ public interface ShopmallOrderApiService {
...
@@ -81,7 +81,7 @@ public interface ShopmallOrderApiService {
* @param req
* @param req
* @return
* @return
*/
*/
@PostMapping
(
value
=
QUERY_ORDER_INVOICE
,
consum
es
=
MediaType
.
APPLICATION_JSON_VALUE
)
@PostMapping
(
value
=
QUERY_ORDER_INVOICE
,
produc
es
=
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