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
bd516b47
Commit
bd516b47
authored
Dec 12, 2019
by
xmy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:获取正在进行的活动
parent
92eea1a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
src/GroupBooking/Lib/GroupBookingInterface.php
+12
-0
src/Lottery/Lib/LotteryInterface.php
+10
-0
No files found.
src/GroupBooking/Lib/GroupBookingInterface.php
View file @
bd516b47
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
namespace
Hdll\Services\GroupBooking\Lib
;
namespace
Hdll\Services\GroupBooking\Lib
;
use
App\Exception\ServiceException
;
use
Swoft\Core\ResultInterface
;
use
Swoft\Core\ResultInterface
;
/**
/**
...
@@ -15,6 +16,7 @@ use Swoft\Core\ResultInterface;
...
@@ -15,6 +16,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferHasActivity($storeId, $goodsId)
* @method ResultInterface deferHasActivity($storeId, $goodsId)
* @method ResultInterface deferAdminCountActivity($storeId)
* @method ResultInterface deferAdminCountActivity($storeId)
* @method ResultInterface deferGetNewOrderNum($storeId, $time)
* @method ResultInterface deferGetNewOrderNum($storeId, $time)
* @method ResultInterface deferGetOnGoing($storeId, $fields = ['*'])
* Interface GoodsInterface
* Interface GoodsInterface
* @package Hdll\Services\Goods\Lib
* @package Hdll\Services\Goods\Lib
*/
*/
...
@@ -59,4 +61,13 @@ interface GroupBookingInterface
...
@@ -59,4 +61,13 @@ interface GroupBookingInterface
* @return number
* @return number
*/
*/
public
function
getNewOrderNum
(
$storeId
,
$time
);
public
function
getNewOrderNum
(
$storeId
,
$time
);
/**
* 获取进行中的活动
* @param $storeId
* @param array $fields
* @return mixed
*/
public
function
getOnGoing
(
$storeId
,
$fields
=
[
'*'
]);
}
}
\ No newline at end of file
src/Lottery/Lib/LotteryInterface.php
View file @
bd516b47
...
@@ -7,6 +7,7 @@ use Swoft\Core\ResultInterface;
...
@@ -7,6 +7,7 @@ use Swoft\Core\ResultInterface;
/**
/**
* @method ResultInterface deferAdminCountActivity($storeId)
* @method ResultInterface deferAdminCountActivity($storeId)
* @method ResultInterface deferGetNewOrderNum($storeId, $time)
* @method ResultInterface deferGetNewOrderNum($storeId, $time)
* @method ResultInterface deferGetOnGoing($storeId, $fields = ['*'])
* Class LotteryInterface
* Class LotteryInterface
* @package Hdll\Services\Lottery\Lib
* @package Hdll\Services\Lottery\Lib
*/
*/
...
@@ -35,4 +36,12 @@ interface LotteryInterface
...
@@ -35,4 +36,12 @@ interface LotteryInterface
* @author work
* @author work
*/
*/
public
function
getNewOrderNum
(
$storeId
,
$time
);
public
function
getNewOrderNum
(
$storeId
,
$time
);
/**
* 获取正在进行的活动
* @param $storeId
* @param array $fields
* @return mixed
*/
public
function
getOnGoing
(
$storeId
,
$fields
=
[
'*'
]);
}
}
\ 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