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
d0a2203d
Commit
d0a2203d
authored
Aug 20, 2018
by
feixiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/Common/Pool/Config/OrderPoolConfig.php
parents
ee7e2f4a
77b94a9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
10 deletions
+51
-10
src/Bargain/Lib/BargainInterface.php
+27
-4
src/LimitTimeBuy/Lib/LimitTimeBuyInterface.php
+24
-6
No files found.
src/Bargain/Lib/BargainInterface.php
View file @
d0a2203d
...
...
@@ -16,19 +16,42 @@ use Swoft\Core\ResultInterface;
* The interface of demo service
*
* @method ResultInterface deferGetgoodsinfo( int $limit_id)
* @method ResultInterface deferGetBargainInfo( int $limit_id)
*/
interface
BargainInterface
{
/**
* 获取砍价商品的 商品信息
* @param int $bargain_id
* @return mixed
* @return {
"name" 名称
"image" 图片
"price" 价格
"activityName" 活动名称
* }
*/
public
function
getGoodsInfo
(
int
$stordId
,
int
$bargain_id
);
}
\ No newline at end of file
/**
* 通过商品id 获取是否 有砍价活动
* @param int $storeId
* @param int $goodsId
* @return bool
*
*/
public
function
getBargainInfo
(
int
$storeId
,
int
$goodsId
);
}
\ No newline at end of file
src/LimitTimeBuy/Lib/LimitTimeBuyInterface.php
View file @
d0a2203d
...
...
@@ -16,7 +16,6 @@ use Swoft\Core\ResultInterface;
* The interface of demo service
*
* @method ResultInterface deferBackNum(string $token, int $consignee_id, int $limit_id, int $selected_num, int $order_type, int $goods_id, string $reservation_time = '')
*/
interface
LimitTimeBuyInterface
{
...
...
@@ -39,13 +38,32 @@ interface LimitTimeBuyInterface
int
$selected_num
,
int
$order_type
,
int
$goods_id
,
string
$reservation_time
);
string
$reservation_time
);
/**
* 获取限时购商品的 商品信息
* @param int $limit_id
* @return mixed
* @return {
"name" 名称
"image" 图片
"price" 价格
"activityName" 活动名称
* }
*/
public
function
getLimitGoods
(
int
$sellerId
,
int
$limitId
);}
\ No newline at end of file
int
$storeId
,
int
$limitId
);
/**
* 通过商品id 获取是否 有限时购活动
* @param int $storeId
* @param int $goodsId
* @return bool
*
*/
public
function
getLimitInfo
(
int
$storeId
,
int
$goodsId
);
}
\ 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