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
f05e7591
Commit
f05e7591
authored
Dec 24, 2019
by
王洁
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.dev.2b3.cn/tencent/services
parents
374130d0
7f6ce689
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
src/Goods/Lib/GoodsInterface.php
+8
-0
src/Order/Lib/OrderInterface.php
+7
-5
No files found.
src/Goods/Lib/GoodsInterface.php
View file @
f05e7591
...
@@ -209,4 +209,12 @@ interface GoodsInterface
...
@@ -209,4 +209,12 @@ interface GoodsInterface
* ]
* ]
*/
*/
public
function
addStock
(
$storeId
,
$goods
);
public
function
addStock
(
$storeId
,
$goods
);
/**
* 计算商品价格
* @param $storeId
* @param $goods ['goodsId'=>num]
* @return mixed
*/
public
function
sumGoodsPrice
(
$storeId
,
$goods
);
}
}
src/Order/Lib/OrderInterface.php
View file @
f05e7591
...
@@ -15,7 +15,7 @@ use Swoft\Core\ResultInterface;
...
@@ -15,7 +15,7 @@ use Swoft\Core\ResultInterface;
/**
/**
* order servcie
* order servcie
*
*
* @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 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
,int $points=0
);
* @method ResultInterface deferGetOrderDetailBySubId(int $storeId,int $subOrderId,$ifSelf=true,bool $ifExtend=false)
* @method ResultInterface deferGetOrderDetailBySubId(int $storeId,int $subOrderId,$ifSelf=true,bool $ifExtend=false)
* @method ResultInterface deferGetOrderDetailByPid(int $storeId,int $pId, $ifSelf=false, $ifExtend=false)
* @method ResultInterface deferGetOrderDetailByPid(int $storeId,int $pId, $ifSelf=false, $ifExtend=false)
* @method ResultInterface deferGetOrderDetailByMainSn(int $storeId,string $orderSn, $ifSelf=false, $ifExtend=false)
* @method ResultInterface deferGetOrderDetailByMainSn(int $storeId,string $orderSn, $ifSelf=false, $ifExtend=false)
...
@@ -52,8 +52,9 @@ interface OrderInterface
...
@@ -52,8 +52,9 @@ interface OrderInterface
* @param integer $goodsPrice
* @param integer $goodsPrice
* @param string $message
* @param string $message
* @param integer $skuId
* @param integer $skuId
* @param integer $subStoreId
* @param integer $subStoreId
* @param integer $couponId
* @param integer $couponId 优惠券iD
* @param integer $points 积分
* @return mixed
* @return mixed
*/
*/
public
function
createOrder
(
public
function
createOrder
(
...
@@ -71,8 +72,9 @@ interface OrderInterface
...
@@ -71,8 +72,9 @@ interface OrderInterface
int
$goodsPrice
,
int
$goodsPrice
,
string
$message
=
''
,
string
$message
=
''
,
int
$skuId
=
0
,
int
$skuId
=
0
,
int
$subStoreId
=
0
,
int
$subStoreId
=
0
,
int
$couponId
=
0
int
$couponId
=
0
,
int
$points
=
0
);
);
/**
/**
* 根据子订单ID查询订单详情
* 根据子订单ID查询订单详情
...
...
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