Commit 18100d82 by xmy

Merge remote-tracking branch 'origin/master'

parents 357c6de3 d15b271d
<?php
/**
* Created by PhpStorm.
* User: lwt
* Date: 2018/7/10
* Time: 13:15
*/
namespace Hdll\Services\Bargain\Enum;
class BargainEnum
{
//订单状态
const STATUS_NORMAL = 10; //待支付
}
\ 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\Bargain\Lib;
use Swoft\Core\ResultInterface;
/**
* The interface of demo service
*
* @method ResultInterface deferGetgoodsinfo( int $limit_id)
*/
interface BargainInterface
{
/**
* 获取砍价商品的 商品信息
* @param int $bargain_id
* @return mixed
*/
public function getgoodsinfo(
int $bargain_id
);
}
\ 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\Common\Pool\Config;
use Swoft\Bean\Annotation\Bean;
use Swoft\Pool\PoolProperties;
/**
* @Bean()
* the config of service bargain
*/
class BargainPoolConfig extends PoolProperties
{
protected $name = 'bargain';
/**
* 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 = 5;
/**
* the addresses of connection
*
* <pre>
* [
* '127.0.0.1:88',
* '127.0.0.1:88'
* ]
* </pre>
*
* @var array
*/
protected $uri = [
'172.21.0.13:8099',
'172.16.255.4: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 = '';
}
...@@ -63,7 +63,7 @@ class SellerDistributionPoolConfig extends PoolProperties ...@@ -63,7 +63,7 @@ class SellerDistributionPoolConfig extends PoolProperties
* *
* @var int * @var int
*/ */
protected $timeout = 200; protected $timeout = 5;
/** /**
* the addresses of connection * the addresses of connection
......
...@@ -63,7 +63,7 @@ class SellerPoolConfig extends PoolProperties ...@@ -63,7 +63,7 @@ class SellerPoolConfig extends PoolProperties
* *
* @var int * @var int
*/ */
protected $timeout = 200; protected $timeout = 5;
/** /**
* the addresses of connection * the addresses of connection
......
...@@ -63,7 +63,7 @@ class StorePoolConfig extends PoolProperties ...@@ -63,7 +63,7 @@ class StorePoolConfig extends PoolProperties
* *
* @var int * @var int
*/ */
protected $timeout = 200; protected $timeout = 5;
/** /**
* the addresses of connection * the addresses of connection
......
...@@ -63,7 +63,7 @@ class VipPoolConfig extends PoolProperties ...@@ -63,7 +63,7 @@ class VipPoolConfig extends PoolProperties
* *
* @var int * @var int
*/ */
protected $timeout = 200; protected $timeout = 5;
/** /**
* the addresses of connection * the addresses of connection
......
...@@ -40,4 +40,15 @@ interface LimitTimeBuyInterface ...@@ -40,4 +40,15 @@ interface LimitTimeBuyInterface
int $order_type, int $order_type,
int $goods_id, int $goods_id,
string $reservation_time = ''); string $reservation_time = '');
/**
* 获取限时购商品的 商品信息
* @param int $limit_id
* @return mixed
*/
public function getLimitgoods(
int $limit_id
);
} }
\ 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