Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
7a24a74a
Commit
7a24a74a
authored
Mar 26, 2019
by
xmy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/xmy' into xmy
parents
96c05114
643d07c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
src/Coupon/Lib/CouponInterface.php
+3
-3
src/Order/Lib/OrderInterface.php
+17
-13
No files found.
src/Coupon/Lib/CouponInterface.php
View file @
7a24a74a
...
@@ -16,7 +16,7 @@ use Swoft\Core\ResultInterface;
...
@@ -16,7 +16,7 @@ use Swoft\Core\ResultInterface;
/**
/**
* The interface of coupon service
* The interface of coupon service
*
*
* @method ResultInterface deferCheckCoupon(int $buyerId, int $storeId, int $couponId,
int $itemId
)
* @method ResultInterface deferCheckCoupon(int $buyerId, int $storeId, int $couponId,
array $itemIds
)
* @method ResultInterface deferGetCouponRecvdList(int $buyerId, int $storeId, int $subStoreId = 0, int $itemId = 0)
* @method ResultInterface deferGetCouponRecvdList(int $buyerId, int $storeId, int $subStoreId = 0, int $itemId = 0)
* @method ResultInterface deferGetDataByCouponId(int $buyerId, int $storeId, int $couponId)
* @method ResultInterface deferGetDataByCouponId(int $buyerId, int $storeId, int $couponId)
*/
*/
...
@@ -40,10 +40,10 @@ interface CouponInterface
...
@@ -40,10 +40,10 @@ interface CouponInterface
* @param integer $buyerId
* @param integer $buyerId
* @param integer $storeId
* @param integer $storeId
* @param integer $couponId
* @param integer $couponId
* @param
integer $itemId
* @param
array $itemIds
* @return int|boolen 如果可用返回优惠券的面值,不可用返回false
* @return int|boolen 如果可用返回优惠券的面值,不可用返回false
*/
*/
public
function
checkCoupon
(
int
$buyerId
,
int
$storeId
,
int
$couponId
,
int
$itemId
);
public
function
checkCoupon
(
int
$buyerId
,
int
$storeId
,
int
$couponId
,
array
$itemIds
);
/**
/**
* 更新优惠券状态
* 更新优惠券状态
...
...
src/Order/Lib/OrderInterface.php
View file @
7a24a74a
...
@@ -15,7 +15,7 @@ use Swoft\Core\ResultInterface;
...
@@ -15,7 +15,7 @@ use Swoft\Core\ResultInterface;
/**
/**
* The interface of demo service
* The interface of demo service
*
*
* @method ResultInterface deferCreateOrder(int $buyerId,int $storeId,int $consigneeId,int $itemId,int $selectedNum,int $orderType,int $
total,int $activityPrice,string $goodsName,string $goodsImage,string $activityName,int $goodsId,int $goodsPrice,string $message = ''); * @method ResultInterface deferGetOrderInfoBySn(int $storeId, string $orderSn, array $consigneeFields = [], array $itemFields = [])
* @method ResultInterface deferCreateOrder(int $buyerId,int $storeId,int $consigneeId,int $itemId,int $selectedNum,int $orderType,int $
activityPrice,string $goodsName,string $goodsImage,string $activityName,int $goodsId,int $goodsPrice,string $message='',int $skuId=0,int $subStoreId=0,int $couponId=0);
* @method ResultInterface deferGetOrderInfo(int $storeId,int $orderId)
* @method ResultInterface deferGetOrderInfo(int $storeId,int $orderId)
* @method ResultInterface deferUpdateInfoById(int $storeId,int $orderId, array $updateInfo)
* @method ResultInterface deferUpdateInfoById(int $storeId,int $orderId, array $updateInfo)
* @method ResultInterface deferGetSimpleList($storeId, $condition, $fields = ['*'])
* @method ResultInterface deferGetSimpleList($storeId, $condition, $fields = ['*'])
...
@@ -31,20 +31,22 @@ interface OrderInterface
...
@@ -31,20 +31,22 @@ interface OrderInterface
/**
/**
* 创建订单
* 创建订单
*
*
* @param int $buyerId
* @param integer $buyerId
* @param int $storeId
* @param integer $storeId
* @param int $consigneeId
* @param integer $consigneeId
* @param int $itemId
* @param integer $itemId
* @param int $selectedNum
* @param integer $selectedNum
* @param int $orderType
* @param integer $orderType
* @param int $total
* @param integer $activityPrice
* @param int $activityPrice
* @param string $goodsName
* @param string $goodsName
* @param string $goodsImage
* @param string $goodsImage
* @param string $activityName
* @param string $activityName
* @param int $goodsId
* @param int
eger
$goodsId
* @param int $goodsPrice
* @param int
eger
$goodsPrice
* @param string $message
* @param string $message
* @param integer $skuId
* @param integer $subStoreId
* @param integer $couponId
* @return mixed
* @return mixed
*/
*/
public
function
createOrder
(
public
function
createOrder
(
...
@@ -54,14 +56,16 @@ interface OrderInterface
...
@@ -54,14 +56,16 @@ interface OrderInterface
int
$itemId
,
int
$itemId
,
int
$selectedNum
,
int
$selectedNum
,
int
$orderType
,
int
$orderType
,
int
$total
,
int
$activityPrice
,
int
$activityPrice
,
string
$goodsName
,
string
$goodsName
,
string
$goodsImage
,
string
$goodsImage
,
string
$activityName
,
string
$activityName
,
int
$goodsId
,
int
$goodsId
,
int
$goodsPrice
,
int
$goodsPrice
,
string
$message
=
''
string
$message
=
''
,
int
$skuId
=
0
,
int
$subStoreId
=
0
,
int
$couponId
=
0
);
);
public
function
getOrderInfo
(
int
$storeId
,
int
$orderId
);
public
function
getOrderInfo
(
int
$storeId
,
int
$orderId
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment