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
479d1978
Commit
479d1978
authored
Aug 16, 2019
by
王召彬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of
http://git.dev.2b3.cn/tencent/services
into test
parents
358fc580
00c25404
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
src/Goods/Lib/GoodsInterface.php
+11
-2
src/Order/Lib/OrderInterface.php
+11
-0
No files found.
src/Goods/Lib/GoodsInterface.php
View file @
479d1978
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
namespace
Hdll\Services\Goods\Lib
;
namespace
Hdll\Services\Goods\Lib
;
use
App\Exception\ServiceException
;
use
Swoft\Core\ResultInterface
;
use
Swoft\Core\ResultInterface
;
/**
/**
...
@@ -25,7 +26,8 @@ use Swoft\Core\ResultInterface;
...
@@ -25,7 +26,8 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferAdminCountActivity($storeId)
* @method ResultInterface deferAdminCountActivity($storeId)
* @method ResultInterface deferGetTopThreeSales($storeId)
* @method ResultInterface deferGetTopThreeSales($storeId)
* @method ResultInterface deferGetReturnVisitByGoodsIds($storeId, $goodsIds)
* @method ResultInterface deferGetReturnVisitByGoodsIds($storeId, $goodsIds)
* @method ResultInterface deferCountEvaluate($storeId,$time)
* @method ResultInterface deferCountEvaluate($storeId, $time)
* @method ResultInterface deferFind($storeId, $id)
* Interface GoodsInterface
* Interface GoodsInterface
* @package Hdll\Services\Goods\Lib
* @package Hdll\Services\Goods\Lib
*/
*/
...
@@ -35,6 +37,7 @@ interface GoodsInterface
...
@@ -35,6 +37,7 @@ interface GoodsInterface
/**
/**
* 获取商品
* 获取商品
* @param $storeId
* @param $storeId
* @param $id
* @return [
* @return [
* 'gcId' 商品类ID
* 'gcId' 商品类ID
* 'asId' 服务ID
* 'asId' 服务ID
...
@@ -47,7 +50,6 @@ interface GoodsInterface
...
@@ -47,7 +50,6 @@ interface GoodsInterface
* 'originalPrice' 原价
* 'originalPrice' 原价
* 'sales' 销量
* 'sales' 销量
* ]
* ]
* @param $id
* @return mixed
* @return mixed
* @author Administrator
* @author Administrator
*/
*/
...
@@ -177,4 +179,11 @@ interface GoodsInterface
...
@@ -177,4 +179,11 @@ interface GoodsInterface
*/
*/
public
function
getReturnVisitByGoodsIds
(
$storeId
,
$goodsIds
);
public
function
getReturnVisitByGoodsIds
(
$storeId
,
$goodsIds
);
/**
* 获取商品(包括已删除)
* @param $storeId
* @param $id
* @return array|mixed
*/
public
function
find
(
$storeId
,
$id
);
}
}
src/Order/Lib/OrderInterface.php
View file @
479d1978
...
@@ -31,6 +31,7 @@ use Swoft\Core\ResultInterface;
...
@@ -31,6 +31,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferGetShopDailyStatistic(int $storeId,int $startDate,int $endDate)
* @method ResultInterface deferGetShopDailyStatistic(int $storeId,int $startDate,int $endDate)
* @method ResultInterface deferGetShopNewOrderNum(int $storeId)
* @method ResultInterface deferGetShopNewOrderNum(int $storeId)
* @method ResultInterface deferOrderCountByCondition(int $storeId,array $condition)
* @method ResultInterface deferOrderCountByCondition(int $storeId,array $condition)
* @method ResultInterface deferBuyerSpendAmount(int $storeId,int $buyerId)
*/
*/
interface
OrderInterface
interface
OrderInterface
{
{
...
@@ -215,4 +216,13 @@ interface OrderInterface
...
@@ -215,4 +216,13 @@ interface OrderInterface
* @return int
* @return int
*/
*/
public
function
orderCountByCondition
(
int
$storeId
,
array
$condition
);
public
function
orderCountByCondition
(
int
$storeId
,
array
$condition
);
/**
* 获取用户微信总消费金额
*
* @param integer $storeId
* @param integer $buyerId
* @return int
*/
public
function
buyerSpendAmount
(
int
$storeId
,
int
$buyerId
);
}
}
\ No newline at end of file
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