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
f96c0d44
Commit
f96c0d44
authored
Nov 06, 2019
by
dzhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of
http://git.dev.2b3.cn/tencent/services
into test
parents
dbd9749d
c442508a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
3 deletions
+42
-3
src/Auth/Enum/AuthEnum.php
+2
-1
src/Buyer/Lib/AgentInterface.php
+21
-2
src/Buyer/Lib/BuyerInterface.php
+9
-0
src/MemberCard/Lib/MemberCardInterface.php
+10
-0
No files found.
src/Auth/Enum/AuthEnum.php
View file @
f96c0d44
...
...
@@ -26,11 +26,12 @@ class AuthEnum
const
AUTH_TYPE_SELLER
=
200
;
//卖家授权
const
AUTH_TYPE_EMPLOYEE
=
201
;
//员工授权
const
AUTH_TYPE_AGENT
=
201
;
//店铺分销代理者授权
const
AUTH_TYPE_E_AND_S
=
203
;
//选择授权(用户自己选择进行员工授权还是卖家授权)
const
AUTH_TYPE_BUYER
=
204
;
//买家授权
const
AUTH_TYPE_AGENT
=
205
;
//店铺分销代理者授权
const
AUTH_TYPE_AGENT_BUYER
=
206
;
// 买家进入分销商店授权
...
...
src/Buyer/Lib/AgentInterface.php
View file @
f96c0d44
...
...
@@ -2,15 +2,18 @@
namespace
Hdll\Services\Buyer\Lib
;
/**
* @method ResultInterface deferGetByUnionId(string $unionId)
* @method ResultInterface deferGetByUnionId(string $unionId
, int $storeId
)
* @method ResultInterface deferUsefulAgent(int $storeId, int $agentId)
* Interface AgentInterface
* @package Hdll\Services\Buyer\Lib
*/
interface
AgentInterface
{
public
function
getByUnionId
(
string
$unionId
);
public
function
getByUnionId
(
string
$unionId
,
int
$storeId
);
public
function
getByOpenId
(
string
$openId
,
int
$storeId
);
/**
* 代理是否可用
...
...
@@ -19,4 +22,19 @@ interface AgentInterface
* @return bool
*/
public
function
usefulAgent
(
int
$storeId
,
int
$agentId
);
/**
* 创建分销商
* @param $buyerId
* @param $unionId
* @param $openId
* @param $storeId
* @param $nickname
* @param $headimgurl
* @return array|mixed
* @throws BaseException
*/
public
function
create
(
$param
);
}
\ No newline at end of file
src/Buyer/Lib/BuyerInterface.php
View file @
f96c0d44
...
...
@@ -129,4 +129,12 @@ interface BuyerInterface
* @return mixed
*/
public
function
updateUser
(
$storeId
,
$buyerId
,
$data
);
/**
* 获取买家信息
* @param $storeId
* @param $openId
* @return mixed
*/
public
function
getUserByOpenId
(
$storeId
,
$openId
);
}
\ No newline at end of file
src/MemberCard/Lib/MemberCardInterface.php
View file @
f96c0d44
...
...
@@ -20,6 +20,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferPayOrder(int $storeId,string $orderSn,int $payStatus)
* @method ResultInterface deferGetOrder(int $storeId,int $id)
* @method ResultInterface deferGetOrderBySn(int $storeId,string $sn)
* @method ResultInterface deferIfUserGetCard(int $storeId,int $userId)
*/
/**
* The interface of demo service
...
...
@@ -64,4 +65,13 @@ interface MemberCardInterface
* @return array
*/
public
function
getOrderBySn
(
int
$storeId
,
string
$sn
);
/**
* 获取用户领卡状态://0-没有卡 1-未领卡 2-领过了
*
* @param integer $storeId
* @param integer $userId
* @return void
*/
public
function
ifUserGetCard
(
int
$storeId
,
int
$userId
);
}
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