Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-micro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
without authentication
meibuyu-micro
Commits
86b1d719
Commit
86b1d719
authored
May 26, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化基础信息rpc服务接口,添加用户授权数据rpc接口文件
parent
461a6260
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
33 deletions
+16
-33
BaseInfoServiceInterface.php
src/Service/Interfaces/BaseInfoServiceInterface.php
+2
-33
AccessServiceInterface.php
src/Service/Interfaces/User/AccessServiceInterface.php
+14
-0
No files found.
src/Service/Interfaces/BaseInfoServiceInterface.php
View file @
86b1d719
...
@@ -30,7 +30,6 @@ interface BaseInfoServiceInterface
...
@@ -30,7 +30,6 @@ interface BaseInfoServiceInterface
*/
*/
public
function
getPositionListById
(
int
$id
,
array
$columns
=
[
'*'
],
array
$relations
=
[])
:
array
;
public
function
getPositionListById
(
int
$id
,
array
$columns
=
[
'*'
],
array
$relations
=
[])
:
array
;
/**
/**
* 通过id数组获取国家数组
* 通过id数组获取国家数组
* @param array $idList
* @param array $idList
...
@@ -63,29 +62,14 @@ interface BaseInfoServiceInterface
...
@@ -63,29 +62,14 @@ interface BaseInfoServiceInterface
*/
*/
public
function
getCurrencyListByIdList
(
array
$idList
,
array
$columns
=
[
'id'
,
'name'
])
:
array
;
public
function
getCurrencyListByIdList
(
array
$idList
,
array
$columns
=
[
'id'
,
'name'
])
:
array
;
/**
* 返回所有货币数据
* @param array $columns 显示的字段名称 默认 ['id', 'name', 'code', 'symbol']
* @return array
*/
public
function
currencies
(
array
$columns
=
[
'id'
,
'name'
,
'code'
,
'symbol'
])
:
array
;
/**
/**
* 根据id获取单个数据
* 根据id获取单个数据
* @param i
d
$id 货币id
* @param i
nt
$id 货币id
* @param array $columns 要显示的字段 默认全部 ['id', 'name', 'code', 'symbol']
* @param array $columns 要显示的字段 默认全部 ['id', 'name', 'code', 'symbol']
* @return array
* @return array
*/
*/
public
function
getCurrencyById
(
$id
,
array
$columns
=
[
'id'
,
'name'
,
'code'
,
'symbol'
])
:
array
;
public
function
getCurrencyById
(
$id
,
array
$columns
=
[
'id'
,
'name'
,
'code'
,
'symbol'
])
:
array
;
/**
* 获取所有国家数据
* @param array $columns 要显示的字段 默认全部
* @return array
*/
public
function
countries
(
array
$columns
=
[
'*'
])
:
array
;
/**
/**
* 根据id获取单个数据
* 根据id获取单个数据
* @param int $id
* @param int $id
...
@@ -94,14 +78,6 @@ interface BaseInfoServiceInterface
...
@@ -94,14 +78,6 @@ interface BaseInfoServiceInterface
*/
*/
public
function
getCountryById
(
$id
,
array
$columns
=
[
'*'
])
:
array
;
public
function
getCountryById
(
$id
,
array
$columns
=
[
'*'
])
:
array
;
/**
* 获取所有团队数据
* @param array $relations 支持的关联关系 ['leader', 'sites', "users", "parent", "children"] 分别代表 负责人、团队下的站点、团队成员、父级团队,再级团队
* @param array $columns 要显示的字段 默认['id', 'pid', "name", "leader_user_id", "leader_user_id", "department_id"]
* @return array
*/
public
function
teams
(
array
$relations
=
[],
array
$columns
=
[
'id'
,
'pid'
,
"name"
,
"leader_user_id"
,
"leader_user_id"
,
"department_id"
])
:
array
;
/**
/**
* 获取单个团队数据
* 获取单个团队数据
* @param int $id
* @param int $id
...
@@ -111,14 +87,6 @@ interface BaseInfoServiceInterface
...
@@ -111,14 +87,6 @@ interface BaseInfoServiceInterface
*/
*/
public
function
getTeamById
(
$id
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
'pid'
,
"name"
,
"leader_user_id"
,
"leader_user_id"
,
"department_id"
])
:
array
;
public
function
getTeamById
(
$id
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
'pid'
,
"name"
,
"leader_user_id"
,
"leader_user_id"
,
"department_id"
])
:
array
;
/**
* 获取所有站点的数据
* @param array $relations 支持的关联关系 ['team', 'country'] 分别代表 团队、国家、
* @param array $columns 要显示的字段 默认['id', "name", "url", "country_id", "team_id"]
* @return array
*/
public
function
sites
(
array
$relations
=
[],
array
$columns
=
[
'id'
,
"name"
,
"url"
,
"country_id"
,
"team_id"
])
:
array
;
/**
/**
* 获取单个站点数据
* 获取单个站点数据
* @param int $id
* @param int $id
...
@@ -136,4 +104,5 @@ interface BaseInfoServiceInterface
...
@@ -136,4 +104,5 @@ interface BaseInfoServiceInterface
* @return array
* @return array
*/
*/
public
function
getSiteListByTeamId
(
$teamId
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
"name"
,
"url"
,
"country_id"
,
"team_id"
])
:
array
;
public
function
getSiteListByTeamId
(
$teamId
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
"name"
,
"url"
,
"country_id"
,
"team_id"
])
:
array
;
}
}
src/Service/Interfaces/User/AccessServiceInterface.php
0 → 100644
View file @
86b1d719
<?php
/**
* Created by PhpStorm.
* User: zero
* Date: 2020/5/26
* Time: 15:17
*/
namespace
Meibuyu\Micro\Service\Interfaces\User
;
interface
AccessServiceInterface
{
public
function
getTeams
(
$userId
,
$noBusiness
=
true
);
}
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