Commit dc861a1b by xmy

Merge remote-tracking branch 'origin/master'

parents c4039485 3817dd60
# 1.0.9
- 添加访客统计的RPC接口
# 1.0.8 # 1.0.8
- 分表逻辑判断处理 - 分表逻辑判断处理
# 1.0.7 # 1.0.7
......
...@@ -22,7 +22,7 @@ use Swoft\Core\ResultInterface; ...@@ -22,7 +22,7 @@ use Swoft\Core\ResultInterface;
interface AccountInterface interface AccountInterface
{ {
/** /**
* 流水增加 * 流水增加收入
* @param $storeId * @param $storeId
* @param $money * @param $money
* @param $ordirId * @param $ordirId
...@@ -30,8 +30,18 @@ interface AccountInterface ...@@ -30,8 +30,18 @@ interface AccountInterface
*/ */
public function Income($storeId, $money, $ordirId); public function Income($storeId, $money, $ordirId);
/**
* 流水收入退款
* @param $storeId
* @param $money
* @param $orderId
* @return mixed
*/
public function IncomeRefund($storeId, $money, $orderId);
/** /**
* 流水减少 * 流水支出
* @param $storeId * @param $storeId
* @param $money * @param $money
* @param $ordirId * @param $ordirId
......
...@@ -32,4 +32,6 @@ interface ProfileInterface ...@@ -32,4 +32,6 @@ interface ProfileInterface
*/ */
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);
} }
\ No newline at end of file
...@@ -20,4 +20,6 @@ class GroupBookingEnum ...@@ -20,4 +20,6 @@ class GroupBookingEnum
const QUEUE_ORDER_KEY = 'groupBooking:order'; const QUEUE_ORDER_KEY = 'groupBooking:order';
const QUEUE_LOCK_KEY = 'groupBooking:lock:'; const QUEUE_LOCK_KEY = 'groupBooking:lock:';
const QUEUE_LISTEN = 'groupBookingListener';
} }
\ No newline at end of file
<?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\Store\Lib;
use Swoft\Core\ResultInterface;
/**
* The interface of visitor-count service
*
* @method ResultInterface deferUpdateVisitorData(int $storeId, int $visitorId, array $data = [])
*/
interface VisitorCountInterface
{
/**
* 根据店铺id和访客id更新一条访客记录
* 如果已有记录,会替换更新,如果没有,会新建一条记录
*
* @param int $storeId
* @param int $visitorId
* @param array $data 此参数可选,不传表示只更新访问时间
* nickname 昵称
* headImgUrl 头像
* @return bool
*/
public function updateVisitorData(int $storeId, int $visitorId, array $data = []);
}
\ No newline at end of file
...@@ -18,4 +18,6 @@ class VipEnum{ ...@@ -18,4 +18,6 @@ class VipEnum{
const STATUS_UNPAID = 10;//未支付 const STATUS_UNPAID = 10;//未支付
const STATUS_PAID = 20;//已支付 const STATUS_PAID = 20;//已支付
const VIP_QUEUE_KEY = 'vip:queue';
} }
\ No newline at end of file
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