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
fad31aec
Commit
fad31aec
authored
Jan 03, 2020
by
王召彬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of
http://git.dev.2b3.cn/tencent/services
into test
parents
e3b208c3
0f39e34f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
152 additions
and
2 deletions
+152
-2
src/ApiService/Lib/OemInterface.php
+22
-0
src/Common/Pool/Config/ApiServicePoolConfig.php
+110
-0
src/MemberCard/Lib/MemberCardInterface.php
+2
-2
src/Vip/Lib/OemVipInterface.php
+18
-0
No files found.
src/ApiService/Lib/OemInterface.php
0 → 100644
View file @
fad31aec
<?php
namespace
Hdll\Services\ApiService\Lib
;
use
Swoft\Core\ResultInterface
;
/**
* Interface OemInterface
* @package Hdll\Services\Lib\ApiService
*/
interface
OemInterface
{
/**
* 获取oem信息
* @param $oemId
* @return mixed
*/
public
function
getOem
(
$oemId
);
}
\ No newline at end of file
src/Common/Pool/Config/ApiServicePoolConfig.php
0 → 100644
View file @
fad31aec
<?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
;
/**
* the config of service user
*
* @Bean()
*/
class
ApiServicePoolConfig
extends
PoolProperties
{
public
function
__construct
()
{
// 区别本地和线上的RPC服务地址
// $this->uri = explode(',', env('RPC_GROUPBOOKING_URI', '172.21.0.38:8099,172.16.255.27:8099'));
$this
->
uri
=
explode
(
','
,
env
(
'RPC_API_SERVICE_URI'
,
'apiService:8099'
));
}
protected
$name
=
'apiService'
;
/**
* Minimum active number of connections
*
* @var int
*/
protected
$minActive
=
5
;
/**
* the maximum number of active connections
*
* @var int
*/
protected
$maxActive
=
300
;
/**
* the maximum number of wait connections
*
* @var int
*/
protected
$maxWait
=
400
;
/**
* 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>
*
* @var array
*/
protected
$uri
=
[
'192.168.3.39:8200'
,
];
/**
* 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
=
''
;
}
src/MemberCard/Lib/MemberCardInterface.php
View file @
fad31aec
...
@@ -130,8 +130,8 @@ interface MemberCardInterface
...
@@ -130,8 +130,8 @@ interface MemberCardInterface
* @param integer $storeId
* @param integer $storeId
* @param integer $userId
* @param integer $userId
* @param integer $orderId
* @param integer $orderId
* @param integer $type //类型 1 消费产生积分 2 积分抵扣 3订单关闭 (这里只要传1-3
)【4 - 消费后订单关闭,原来增加积分的记录状态为4(1->4)】
* @param integer $type //类型 1 消费产生积分 2 积分抵扣 3订单关闭 (这里只要传1-3
) 枚举见 UpBonusEvent
* @param integer $money //类型1 只要传money,bonus不传; 类型2 money
,bonus 都传; 类型3 积分,金额
都不传
* @param integer $money //类型1 只要传money,bonus不传; 类型2 money
=0,bonus 传; 类型3 money,bonus
都不传
* @param integer $bonus
* @param integer $bonus
* @return bool
* @return bool
*/
*/
...
...
src/Vip/Lib/OemVipInterface.php
0 → 100644
View file @
fad31aec
<?php
namespace
Hdll\Services\Vip\Lib
;
use
Swoft\Core\ResultInterface
;
/**
*
* Interface OemVipInterface
* @package Hdll\Services\Vip\Lib
*/
interface
OemVipInterface
{
public
function
getOrder
(
$id
);
}
\ No newline at end of file
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