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
718b202c
Commit
718b202c
authored
Mar 05, 2019
by
liwotian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timescardserve
parent
8d30778a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
113 additions
and
10 deletions
+113
-10
src/Recharge/Lib/RechargeInterface.php
+12
-10
src/TimesCard/Enum/TimesCardStatus.php
+22
-0
src/TimesCard/Lib/TimesCardInterface.php
+79
-0
No files found.
src/Recharge/Lib/RechargeInterface.php
View file @
718b202c
...
...
@@ -8,7 +8,7 @@
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace
Hdll\Services\
Recharge
\Lib
;
namespace
Hdll\Services\
TimesCard
\Lib
;
use
Hdll\Services\Recharge\Enum\BuyCardPayStatus
;
use
Swoft\Core\ResultInterface
;
...
...
@@ -17,10 +17,10 @@ use Swoft\Core\ResultInterface;
* The interface of demo service
*
* @method ResultInterface deferpayStatus(int $storeId,int $bargainbranchId,int $status,int $orderId)
* @method ResultInterface deferspend
CardMoney( int $storeId,int $buyerId,int $itemOrderId,string $itemTitle,int $payMoney
)
* @method ResultInterface deferReturnCard
Money( int $storeId,int $buyerId,int $itemOrderId,string $itemTitle,int $payMoney
)
* @method ResultInterface deferspend
TimesCard( int $storeId,int $buyerId,int $itemOrderId,int $goodsId,string $itemTitle,int $time
)
* @method ResultInterface deferReturnCard
Times( int $storeId,int $buyerId,int $itemOrderId,int $goodsId,string $itemTitle,int $time
)
*/
interface
Recharge
Interface
interface
TimesCard
Interface
{
...
...
@@ -38,22 +38,23 @@ interface RechargeInterface
int
$orderId
);
/**
* 花费卡
金额
* 花费卡
次数
* @param int $storeId
* @param int $buyerId
* @param int $goodOrderId
* @return mixed
*/
public
function
spend
CardMoney
(
public
function
spend
TimesCard
(
int
$storeId
,
int
$buyerId
,
int
$itemOrderId
,
int
$goodsId
,
string
$itemTitle
,
int
$
payMoney
int
$
time
);
/**
* 退回
储值卡金额
* 退回
次卡数量
* @param int $storeId
* @param int $buyerId
* @param int $itemOrderId
...
...
@@ -61,12 +62,13 @@ interface RechargeInterface
* @param int $payMoney
* @return mixed
*/
public
function
ReturnCard
Money
(
public
function
ReturnCard
Times
(
int
$storeId
,
int
$buyerId
,
int
$itemOrderId
,
int
$goodsId
,
string
$itemTitle
,
int
$
payMoney
int
$
time
);
}
...
...
src/TimesCard/Enum/TimesCardStatus.php
0 → 100644
View file @
718b202c
<?php
/**
* Created by PhpStorm.
* User: mac
* Date: 2019-01-10
* Time: 09:58
*/
namespace
Hdll\Services\TimesCard\Enum
;
class
TimesCardStatus
{
//订单状态
const
STATUS_NORMAL
=
10
;
//待支付
//paystatus
const
HAVE_PAY
=
2
;
const
PAY_EXCEPTION
=
3
;
const
PAY_REFUND
=
4
;
// 退款
}
\ No newline at end of file
src/TimesCard/Lib/TimesCardInterface.php
0 → 100644
View file @
718b202c
<?php
/**
* This file is part of Swoft.
*
* @link https://swoft.org
* @document https://doc.swoft.org
* @contact group@swoft.org
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace
Hdll\Services\TimesCard\Lib
;
use
Hdll\Services\Recharge\Enum\BuyCardPayStatus
;
use
Swoft\Core\ResultInterface
;
/**
* The interface of demo service
*
* @method ResultInterface deferpayStatus(int $storeId,int $bargainbranchId,int $status,int $orderId)
* @method ResultInterface deferspendTimesCard( int $storeId,int $buyerId,int $itemOrderId,int $goodsId,string $itemTitle,int $payMoney)
* @method ResultInterface deferReturnCardTimes( int $storeId,int $buyerId,int $itemOrderId,int $goodsId,string $itemTitle,int $payMoney)
*/
interface
TimesCardInterface
{
/**
* 微信支付 状态 回馈接口
* @param string $storeId //
* @param int $itemId // 项目ID $localorderId
* @param int $status // BuyCardPayStatus::HAVE_PAY 成功支付 BuyCardPayStatus::PAY_EXCEPTION:未支付 (已经过期或者支付异常)
* @return mixed
*/
public
function
payStatus
(
int
$storeId
,
int
$itemId
,
int
$status
,
//
int
$orderId
);
/**
* 花费卡次数
* @param int $storeId
* @param int $buyerId
* @param int $goodOrderId
* @return mixed
*/
public
function
spendTimesCard
(
int
$storeId
,
int
$buyerId
,
int
$itemOrderId
,
int
$goodsId
,
string
$itemTitle
,
int
$payMoney
);
/**
* 退回储值卡金额
* @param int $storeId
* @param int $buyerId
* @param int $itemOrderId
* @param string $itemTitle
* @param int $payMoney
* @return mixed
*/
public
function
ReturnCardTimes
(
int
$storeId
,
int
$buyerId
,
int
$itemOrderId
,
int
$goodsId
,
string
$itemTitle
,
int
$payMoney
);
}
\ 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