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
d452f6dc
Commit
d452f6dc
authored
Aug 06, 2018
by
王召彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加预约接口
parent
1b3c40b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
5 deletions
+55
-5
src/Reservation/Lib/ReservationInterface.php
+55
-5
No files found.
src/Reservation/Lib/ReservationInterface.php
View file @
d452f6dc
...
@@ -14,13 +14,62 @@ namespace Hdll\Services\Reservation\Lib;
...
@@ -14,13 +14,62 @@ namespace Hdll\Services\Reservation\Lib;
use
Swoft\Core\ResultInterface
;
use
Swoft\Core\ResultInterface
;
/**
/**
* The interface of
Schedule
service
* The interface of
Reservation
service
*
*
* @method ResultInterface deferGetScheduleList(int $storeId, int $month=null)
* @method ResultInterface deferGetReservById(int $id)
* @method ResultInterface deferGetScheduleByDateId(int $storeId, int $dateId)
* @method ResultInterface deferGetReservByDateId(int $storeId, int $dateId)
* @method ResultInterface deferUpdateSchedule(int $storeId, int $dateId, array $data)
* @method ResultInterface deferGetReservListByOrderId(int $storeId, $orderId)
* @method ResultInterface deferAddSchedule(int $storeId, int $dateId, array $data)
* @method ResultInterface deferModifyReservById(int $id)
* @method ResultInterface deferCancelReservById(int $id)
*/
*/
interface
ReservationInterface
interface
ReservationInterface
{
{
/**
* 获取某个预约的信息
*
* @param integer $id
* @return array
*/
public
function
getReservById
(
int
$id
);
/**
* 根据日期id,获取商家某一天的所有预约
*
* @param integer $storeId
* @param integer $dateId
* @return array
*/
public
function
getReservByDateId
(
int
$storeId
,
int
$dateId
);
/**
* 根据订单id,获取商家某个订单包含的所有预约
*
* @param integer $storeId
* @param integer $orderId
* @return void
*/
public
function
getReservListByOrderId
(
int
$storeId
,
int
$orderId
);
/**
* 修改某个预约信息
*
* @param integer $id
* @param array $data
* $data 字段说明:
* ['state'] => 预约状态,默认0,如果正常结束则为1
* ['type'] => 预约类型,备用
* ['reservTime'] => 预约时间,时间戳格式
* ['isConfirm'] => 1表示商家确认预约
* ['memo'] => 预约备注
* @return int 返回成功修改的条数
*/
public
function
modifyReservById
(
int
$id
,
array
$data
);
/**
* 取消某个预约
*
* @param integer $id
* @return boolean 返回取消结果
*/
public
function
cancelReservById
(
int
$id
);
}
}
\ 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