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
e7c64289
Commit
e7c64289
authored
Aug 08, 2019
by
zhangsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加顾客档案、储值卡、次卡服务rpc新接口
parent
baedffcb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
18 deletions
+32
-18
src/CustomerProfiles/Lib/ProfileInterface.php
+9
-1
src/Recharge/Lib/RechargeInterface.php
+9
-0
src/TimesCard/Lib/TimesCardInterface.php
+14
-17
No files found.
src/CustomerProfiles/Lib/ProfileInterface.php
View file @
e7c64289
...
...
@@ -17,6 +17,7 @@ use Swoft\Core\ResultInterface;
* The interface of demo service
*
* @method ResultInterface deferAddOrder($storeId, $orderId, $goodsId, $goodsName, $orderPrice, $orderType, $orderTime, $consigneeName, $consigneePhone, $buyerId,$activityName)
* @method ResultInterface deferSinceAddVisitor($storeId, $buyerId)
*/
interface
ProfileInterface
{
...
...
@@ -30,8 +31,14 @@ interface ProfileInterface
* @param $orderType
* @return mixed
*/
public
function
AddOrder
(
$storeId
,
$orderId
,
$goodsId
,
$goodsName
,
$orderPrice
,
$orderType
,
$orderTime
,
$consigneeName
,
$consigneePhone
,
$buyerId
,
$activityName
);
/**
* 自增加顾客档案流量数和最近流量时间戳
* @param $storeId
* @param $buyerId
* @return mixed
*/
public
function
sinceAddVisitor
(
$storeId
,
$buyerId
);
}
\ No newline at end of file
src/Recharge/Lib/RechargeInterface.php
View file @
e7c64289
...
...
@@ -19,6 +19,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferSpendCardMoney(int $storeId, int $buyerId, array $subOrders, int $parentOrderId)
* @method ResultInterface deferReturnCardMoney(int $storeId,int $buyerId,int $itemOrderId,string $itemTitle,int $payMoney, int $parentOrderId)
* @method ResultInterface deferStatisNum(int $storeId)
* @method ResultInterface deferGetRecharge(int $storeId, int $buyerId)
*/
interface
RechargeInterface
{
...
...
@@ -79,6 +80,14 @@ interface RechargeInterface
* ]
*/
public
function
statisNum
(
int
$storeId
);
/**
* 获取储值卡信息
* @param int $storeId
* @param int $buyerId
* @return mixed
*/
public
function
getRecharge
(
int
$storeId
,
int
$buyerId
);
}
...
...
src/TimesCard/Lib/TimesCardInterface.php
View file @
e7c64289
...
...
@@ -18,14 +18,14 @@ use Swoft\Core\ResultInterface;
*
* @method ResultInterface deferPayStatus(int $storeId,int $bargainbranchId,int $status,int $orderId)
* @method ResultInterface deferSpendTimesCard(int $storeId, int $buyerId, int $usercardId, array $subOrders)
* @method ResultInterface deferReturnCardTimes(
int $storeId,int $buyerId,int $itemOrderId,int $goodsId,string $itemTitle,int $times)
* @method ResultInterface deferReturnCardTimes(int $storeId,int $buyerId,int $itemOrderId,int $goodsId,string $itemTitle,int $times)
* @method ResultInterface defergetTimesCardUserCardInfo(int $storeId, int $goodsId)
* @method ResultInterface deferStatisNum( int $storeId)
* @method ResultInterface deferStatisNum(int $storeId)
* @method ResultInterface deferValidNum(int $storeId, int $buyerId)
*/
interface
TimesCardInterface
{
/**
* 微信支付 状态 回馈接口
* @param string $storeId //
...
...
@@ -33,11 +33,7 @@ interface TimesCardInterface
* @param int $status // BuyCardPayStatus::HAVE_PAY 成功支付 BuyCardPayStatus::PAY_EXCEPTION:未支付 (已经过期或者支付异常)
* @return mixed
*/
public
function
payStatus
(
int
$storeId
,
int
$itemId
,
int
$status
,
//
int
$orderId
);
public
function
payStatus
(
int
$storeId
,
int
$itemId
,
int
$status
,
int
$orderId
);
/**
* 花费卡次数
...
...
@@ -59,15 +55,7 @@ interface TimesCardInterface
* @param int $payMoney
* @return mixed
*/
public
function
ReturnCardTimes
(
int
$storeId
,
int
$buyerId
,
int
$itemOrderId
,
int
$goodsId
,
string
$itemTitle
,
int
$times
);
public
function
ReturnCardTimes
(
int
$storeId
,
int
$buyerId
,
int
$itemOrderId
,
int
$goodsId
,
string
$itemTitle
,
int
$times
);
/**
* 通过商品id 获取是否 有正在服务的次卡用户
...
...
@@ -85,10 +73,19 @@ interface TimesCardInterface
* 响应数据:
* [
* 'num' => 上架数,
* 'outNum' => 下架数
* 'total' => 总数
* ]
*/
public
function
statisNum
(
int
$storeId
);
/**
* 获取有效次卡数
* @param int $storeId
* @param int $buyerId
* @return mixed
*/
public
function
validNum
(
int
$storeId
,
int
$buyerId
);
}
...
...
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