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
795ff611
Commit
795ff611
authored
Sep 06, 2018
by
王召彬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.2b3.cn/tencent/services
parents
f67d5600
7ab51820
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
6 deletions
+22
-6
src/Common/Pool/Config/OrderPoolConfig.php
+1
-1
src/Common/Pool/Config/ReservationPoolConfig.php
+1
-1
src/Common/Pool/Config/SchedulePoolConfig.php
+1
-1
src/Common/Pool/Config/StorePoolConfig.php
+1
-1
src/Order/Lib/OrderInterface.php
+5
-2
src/Reservation/Lib/ReservationInterface.php
+13
-0
No files found.
src/Common/Pool/Config/OrderPoolConfig.php
View file @
795ff611
...
@@ -68,7 +68,7 @@ class OrderPoolConfig extends PoolProperties
...
@@ -68,7 +68,7 @@ class OrderPoolConfig extends PoolProperties
*
*
* @var int
* @var int
*/
*/
protected
$timeout
=
5
;
protected
$timeout
=
1
5
;
/**
/**
* the addresses of connection
* the addresses of connection
...
...
src/Common/Pool/Config/ReservationPoolConfig.php
View file @
795ff611
...
@@ -68,7 +68,7 @@ class ReservationPoolConfig extends PoolProperties
...
@@ -68,7 +68,7 @@ class ReservationPoolConfig extends PoolProperties
*
*
* @var int
* @var int
*/
*/
protected
$timeout
=
5
;
protected
$timeout
=
1
5
;
/**
/**
* the addresses of connection
* the addresses of connection
...
...
src/Common/Pool/Config/SchedulePoolConfig.php
View file @
795ff611
...
@@ -68,7 +68,7 @@ class SchedulePoolConfig extends PoolProperties
...
@@ -68,7 +68,7 @@ class SchedulePoolConfig extends PoolProperties
*
*
* @var int
* @var int
*/
*/
protected
$timeout
=
5
;
protected
$timeout
=
1
5
;
/**
/**
* the addresses of connection
* the addresses of connection
...
...
src/Common/Pool/Config/StorePoolConfig.php
View file @
795ff611
...
@@ -68,7 +68,7 @@ class StorePoolConfig extends PoolProperties
...
@@ -68,7 +68,7 @@ class StorePoolConfig extends PoolProperties
*
*
* @var int
* @var int
*/
*/
protected
$timeout
=
5
;
protected
$timeout
=
1
5
;
/**
/**
* the addresses of connection
* the addresses of connection
...
...
src/Order/Lib/OrderInterface.php
View file @
795ff611
...
@@ -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 $reservation_time = '');
* @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 $reservation_time = ''
,string $message = ''
);
* @method ResultInterface deferGetOrderInfoBySn(int $storeId, string $orderSn, array $consigneeFields = [], array $itemFields = [])
* @method ResultInterface deferGetOrderInfoBySn(int $storeId, string $orderSn, array $consigneeFields = [], array $itemFields = [])
* @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)
...
@@ -43,6 +43,7 @@ interface OrderInterface
...
@@ -43,6 +43,7 @@ interface OrderInterface
* @param int $goodsId
* @param int $goodsId
* @param int $goodsPrice
* @param int $goodsPrice
* @param string $reservation_time
* @param string $reservation_time
* @param string $message
* @return mixed
* @return mixed
*/
*/
public
function
createOrder
(
public
function
createOrder
(
...
@@ -59,7 +60,9 @@ interface OrderInterface
...
@@ -59,7 +60,9 @@ interface OrderInterface
string
$activityName
,
string
$activityName
,
int
$goodsId
,
int
$goodsId
,
int
$goodsPrice
,
int
$goodsPrice
,
string
$reservation_time
=
''
);
string
$reservation_time
=
''
,
string
$message
=
''
);
public
function
getOrderInfo
(
int
$storeId
,
int
$orderId
);
public
function
getOrderInfo
(
int
$storeId
,
int
$orderId
);
...
...
src/Reservation/Lib/ReservationInterface.php
View file @
795ff611
...
@@ -17,6 +17,7 @@ use Swoft\Core\ResultInterface;
...
@@ -17,6 +17,7 @@ use Swoft\Core\ResultInterface;
* The interface of Reservation service
* The interface of Reservation service
*
*
* @method ResultInterface deferGetReservById(int $storeId, int $id)
* @method ResultInterface deferGetReservById(int $storeId, int $id)
* @method ResultInterface deferIsReserved(int $storeId, int $cmanId, int $reservTime)
* @method ResultInterface deferGetReservListByOrderId(int $storeId, int $orderId, int $state = 0, int $type = 1)
* @method ResultInterface deferGetReservListByOrderId(int $storeId, int $orderId, int $state = 0, int $type = 1)
* @method ResultInterface deferModifyReservById(int $storeId, int $id, array $data)
* @method ResultInterface deferModifyReservById(int $storeId, int $id, array $data)
* @method ResultInterface deferAddReservation(int $storeId, int $orderId, int $buyerId, int $cmanId, int $reservTime, string $memo, int $type)
* @method ResultInterface deferAddReservation(int $storeId, int $orderId, int $buyerId, int $cmanId, int $reservTime, string $memo, int $type)
...
@@ -35,6 +36,18 @@ interface ReservationInterface
...
@@ -35,6 +36,18 @@ interface ReservationInterface
public
function
getReservById
(
int
$storeId
,
int
$id
);
public
function
getReservById
(
int
$storeId
,
int
$id
);
/**
/**
* 检查指定的时间是否已被预约过
*
* @param integer $storeId 店铺id
* @param integer $cmanId 手艺人id,查询某个手艺人下的预约情况,$cmanId == 0表示不指定手艺人,
* @param integer $reservTime 要检查的时间点,时间戳格式
* @Number(name="cmanId")
* @Number(name="reservTime")
* @return boolen true:已预约,false:未预约
*/
public
function
isReserved
(
int
$storeId
,
int
$cmanId
,
int
$reservTime
);
/**
* 根据订单id,获取商家某个订单包含的所有预约
* 根据订单id,获取商家某个订单包含的所有预约
*
*
* @param integer $storeId
* @param integer $storeId
...
...
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