Commit 4064f97a by feixiang

Merge remote-tracking branch 'origin/master'

parents 5cecc515 c8790c48
......@@ -8,15 +8,16 @@
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace Hdll\Services\LimitTimeBuy\Lib;
namespace Hdll\Services\AccountBook\Lib;
use Hdll\Services\LimitTimeBuy\Enum\LimitTimeOrderEnum;
use Swoft\Core\ResultInterface;
/**
* The interface of demo service
*
* @method ResultInterface deferBackNum(string $token, int $consignee_id, int $limit_id, int $selected_num, int $order_type, int $goods_id, string $reservation_time = '')
* @method ResultInterface deferIncome(int $storeId, int $money,int $orderId)
* @method ResultInterface deferExpense(int $storeId, int $money,int $orderId)
*/
interface AccountInterface
{
......@@ -28,6 +29,7 @@ interface AccountInterface
* @return bool
*/
public function Income($storeId, $money, $ordirId);
/**
* 流水减少
* @param $storeId
......
<?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\Common\Pool\Config;
use Swoft\Bean\Annotation\Bean;
use Swoft\Pool\PoolProperties;
use Swoft\Bean\Annotation\Value;
/**
* @Bean()
* the config of service bargain
*/
class AccountBookPoolConfig extends PoolProperties
{
public function __construct()
{
// 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_ACCOUNTBOOK_URI', 'accountbook:8099'));
}
protected $name = 'accountbook';
/**
* Minimum active number of connections
*
* @var int
*/
protected $minActive = 5;
/**
* the maximum number of active connections
*
* @var int
*/
protected $maxActive = 50;
/**
* the maximum number of wait connections
*
* @var int
*/
protected $maxWait = 100;
/**
* Maximum waiting time
*
* @var int
*/
protected $maxWaitTime = 3;
/**
* Maximum idle time
*
* @var int
*/
protected $maxIdleTime = 60;
/**
* the time of connect timeout
*
* @var int
*/
protected $timeout = 200;
/**
* the addresses of connection
*
* <pre>
* [
* '127.0.0.1:88',
* '127.0.0.1:88'
* ]
* </pre>
* @Value(name="", env="${RPC_BARGAIN_URI}")
* @var array
*/
protected $uri = [
'timelimtbuy:8099',
];
/**
* whether to user provider(consul/etcd/zookeeper)
*
* @var bool
*/
protected $useProvider = false;
/**
* the default balancer is random balancer
*
* @var string
*/
protected $balancer = '';
/**
* the default provider is consul provider
*
* @var string
*/
protected $provider = '';
}
......@@ -15,6 +15,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferIncSales($storeId, $goodsId)
* @method ResultInterface deferDecSales($storeId, $goodsId)
* @method ResultInterface deferGetServiceByGoodsId($storeId, $goodsId)
* @method ResultInterface deferGetReturnVisitByGoodsId($storeId, $goodsId)
* Interface GoodsInterface
* @package Hdll\Services\Goods\Lib
*/
......@@ -72,4 +73,14 @@ interface GoodsInterface
* @author Administrator
*/
public function getServiceByGoodsId($storeId,$goodsId);
/**
* 获取用户回访
* @param $storeId
* @param $goodsId
* @return mixed
* @author Administrator
*/
public function getReturnVisitByGoodsId($storeId, $goodsId);
}
\ No newline at end of file
......@@ -16,6 +16,7 @@ use Swoft\Core\ResultInterface;
* The interface of store-settings service
*
* @method ResultInterface deferGetSettings(int $storeId)
* @method ResultInterface deferGetNoticeSwitch(int $storeId)
*/
interface SettingsInterface
{
......@@ -28,4 +29,25 @@ interface SettingsInterface
*/
public function getSettings(int $storeId);
/**
* 获取消息通知的开关设置项
*
* @Number(name="storeId")
* @param int $storeId
* @return array
* array(5) {
* ["pay_notice"]=> // 付款通知,1表示允许发送通知
* int(0)
* ["refund_notice"]=> // 退款通知,1表示允许发送通知
* int(1)
* ["reserv_notice"]=> // 预约通知,1表示允许发送通知
* int(0)
* ["cancel_reserv_notice"]=> // 取消预约通知,1表示允许发送通知
* int(0)
* ["delivered_notice"]=> // 核销通知,1表示允许发送通知
* int(1)
* }
*/
public function getNoticeSwitch(int $storeId);
}
\ 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