Commit e7c64289 by zhangsong

添加顾客档案、储值卡、次卡服务rpc新接口

parent baedffcb
...@@ -17,6 +17,7 @@ use Swoft\Core\ResultInterface; ...@@ -17,6 +17,7 @@ use Swoft\Core\ResultInterface;
* The interface of demo service * The interface of demo service
* *
* @method ResultInterface deferAddOrder($storeId, $orderId, $goodsId, $goodsName, $orderPrice, $orderType, $orderTime, $consigneeName, $consigneePhone, $buyerId,$activityName) * @method ResultInterface deferAddOrder($storeId, $orderId, $goodsId, $goodsName, $orderPrice, $orderType, $orderTime, $consigneeName, $consigneePhone, $buyerId,$activityName)
* @method ResultInterface deferSinceAddVisitor($storeId, $buyerId)
*/ */
interface ProfileInterface interface ProfileInterface
{ {
...@@ -30,8 +31,14 @@ interface ProfileInterface ...@@ -30,8 +31,14 @@ interface ProfileInterface
* @param $orderType * @param $orderType
* @return mixed * @return mixed
*/ */
public function AddOrder($storeId, $orderId, $goodsId, $goodsName, $orderPrice, $orderType, $orderTime, $consigneeName, $consigneePhone, $buyerId,$activityName); 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
...@@ -19,6 +19,7 @@ use Swoft\Core\ResultInterface; ...@@ -19,6 +19,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferSpendCardMoney(int $storeId, int $buyerId, array $subOrders, int $parentOrderId) * @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 deferReturnCardMoney(int $storeId,int $buyerId,int $itemOrderId,string $itemTitle,int $payMoney, int $parentOrderId)
* @method ResultInterface deferStatisNum(int $storeId) * @method ResultInterface deferStatisNum(int $storeId)
* @method ResultInterface deferGetRecharge(int $storeId, int $buyerId)
*/ */
interface RechargeInterface interface RechargeInterface
{ {
...@@ -79,6 +80,14 @@ interface RechargeInterface ...@@ -79,6 +80,14 @@ interface RechargeInterface
* ] * ]
*/ */
public function statisNum(int $storeId); public function statisNum(int $storeId);
/**
* 获取储值卡信息
* @param int $storeId
* @param int $buyerId
* @return mixed
*/
public function getRecharge(int $storeId, int $buyerId);
} }
......
...@@ -18,14 +18,14 @@ use Swoft\Core\ResultInterface; ...@@ -18,14 +18,14 @@ use Swoft\Core\ResultInterface;
* *
* @method ResultInterface deferPayStatus(int $storeId,int $bargainbranchId,int $status,int $orderId) * @method ResultInterface deferPayStatus(int $storeId,int $bargainbranchId,int $status,int $orderId)
* @method ResultInterface deferSpendTimesCard(int $storeId, int $buyerId, int $usercardId, array $subOrders) * @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 defergetTimesCardUserCardInfo(int $storeId, int $goodsId)
* @method ResultInterface deferStatisNum( int $storeId) * @method ResultInterface deferStatisNum(int $storeId)
* @method ResultInterface deferValidNum(int $storeId, int $buyerId)
*/ */
interface TimesCardInterface interface TimesCardInterface
{ {
/** /**
* 微信支付 状态 回馈接口 * 微信支付 状态 回馈接口
* @param string $storeId // * @param string $storeId //
...@@ -33,11 +33,7 @@ interface TimesCardInterface ...@@ -33,11 +33,7 @@ interface TimesCardInterface
* @param int $status // BuyCardPayStatus::HAVE_PAY 成功支付 BuyCardPayStatus::PAY_EXCEPTION:未支付 (已经过期或者支付异常) * @param int $status // BuyCardPayStatus::HAVE_PAY 成功支付 BuyCardPayStatus::PAY_EXCEPTION:未支付 (已经过期或者支付异常)
* @return mixed * @return mixed
*/ */
public function payStatus( public function payStatus(int $storeId, int $itemId, int $status, int $orderId);
int $storeId,
int $itemId,
int $status , //
int $orderId);
/** /**
* 花费卡次数 * 花费卡次数
...@@ -59,15 +55,7 @@ interface TimesCardInterface ...@@ -59,15 +55,7 @@ interface TimesCardInterface
* @param int $payMoney * @param int $payMoney
* @return mixed * @return mixed
*/ */
public function ReturnCardTimes( public function ReturnCardTimes(int $storeId, int $buyerId, int $itemOrderId, int $goodsId, string $itemTitle, int $times);
int $storeId,
int $buyerId,
int $itemOrderId,
int $goodsId,
string $itemTitle,
int $times
);
/** /**
* 通过商品id 获取是否 有正在服务的次卡用户 * 通过商品id 获取是否 有正在服务的次卡用户
...@@ -85,10 +73,19 @@ interface TimesCardInterface ...@@ -85,10 +73,19 @@ interface TimesCardInterface
* 响应数据: * 响应数据:
* [ * [
* 'num' => 上架数, * 'num' => 上架数,
* 'outNum' => 下架数
* 'total' => 总数 * 'total' => 总数
* ] * ]
*/ */
public function statisNum(int $storeId); public function statisNum(int $storeId);
/**
* 获取有效次卡数
* @param int $storeId
* @param int $buyerId
* @return mixed
*/
public function validNum(int $storeId, int $buyerId);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment