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
f490f534
Commit
f490f534
authored
4 years ago
by
王源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户rpc
parent
13fd39cb
master
1.0
2.0
2.1
branch-based_2.2.34
brand_base_on_v2.0.6
bv2.1.195
dev-develop-based-upgrade
dev_async_log1
dev_async_log2
develop
develop-2.2.0
develop-based-1.0
develop-based-2.0
feature-distribution_0526-zdy
new_v2.2.2
tag_v2.1.199
v2.1.191-t
v2.2.2-t
v2.2.33-branch
1.2.17
v2.2.35
v2.2.34
v2.2.33
v2.2.32
v2.2.31
v2.2.30
v2.2.2
v2.2.1
v2.2.0
v2.1.199
v2.1.198
v2.1.197
v2.1.196
v2.1.195
v2.1.194
v2.1.193
v2.1.192
v2.1.191
v2.1.18
v2.1.17
v2.1.16
v2.1.15
v2.1.14.1
v2.1.14
v2.1.13
v2.1.12
v2.1.10
v2.1.8
v2.1.7
v2.1.5
v2.1.3
v2.1.2
v2.0.7
v2.0.6
v2.0.5
v2.0.4
v2.0.3
v2.0.2
v2.0.1
v2.0.0
v1.2.18
v1.2.16
v1.2.15
v1.2.14
v1.2.13
v1.2.12
v1.2.10
v1.2.9
v1.2.8
v1.2.7
v1.2.6
v1.2.3
v1.2.2
v1.2.0
v1.1.5
v1.1.4
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.1
v1.0.0
develop-2.2.0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
4 deletions
+31
-4
AccessServiceInterface.php
src/Service/Interfaces/User/AccessServiceInterface.php
+28
-1
UserServiceInterface.php
src/Service/Interfaces/UserServiceInterface.php
+3
-3
No files found.
src/Service/Interfaces/User/AccessServiceInterface.php
View file @
f490f534
...
...
@@ -10,5 +10,32 @@ namespace Meibuyu\Micro\Service\Interfaces\User;
interface
AccessServiceInterface
{
public
function
getTeams
(
$userId
,
$noBusiness
=
true
);
/**
* 获取鉴权的团队
* @param $userId
* @param bool $tree 是否返回树状结构
* @param bool $noBusiness
* @return array 已进行keyBy('id')处理,返回树状结构时,keyBy无效
*/
public
function
getTeams
(
$userId
,
$tree
=
false
,
$noBusiness
=
true
);
/**
* 获取鉴权的团队带用户
* @param $userId
* @param bool $tree 是否返回树状结构
* @param bool $noBusiness
* @return array 已进行keyBy('id')处理,返回树状结构时,keyBy无效
*/
public
function
getTeamsWithUsers
(
$userId
,
$tree
=
false
,
$noBusiness
=
true
);
/**
* 获取鉴权的部门
* @param $userId
* @param bool $tree 是否返回树状结构
* @param bool $withUser 是否带用户数据
* @return array 已进行keyBy('id')处理,返回树状结构时,keyBy无效
*/
public
function
getDepartments
(
$userId
,
$tree
=
false
,
$withUser
=
false
);
}
This diff is collapsed.
Click to expand it.
src/Service/Interfaces/UserServiceInterface.php
View file @
f490f534
...
...
@@ -23,7 +23,7 @@ interface UserServiceInterface
* 获取单个数据
* @param int $id
* @param array $columns
* @param array $relations 可传入['teams', 'department', 'position'],分别是团队,部门和岗位
* @param array $relations 可传入['teams', 'department
s
', 'position'],分别是团队,部门和岗位
* @return mixed
*/
public
function
get
(
int
$id
,
array
$columns
=
[
'*'
],
array
$relations
=
[]);
...
...
@@ -31,7 +31,7 @@ interface UserServiceInterface
/**
* 获取全部数据
* @param array $columns
* @param array $relations 可传入['teams', 'department', 'position'],分别是团队,部门和岗位
* @param array $relations 可传入['teams', 'department
s
', 'position'],分别是团队,部门和岗位
* @return array
*/
public
function
all
(
array
$columns
=
[
'*'
],
array
$relations
=
[])
:
array
;
...
...
@@ -40,7 +40,7 @@ interface UserServiceInterface
* 通过id列表获取用户数组
* @param array $idList
* @param array $columns
* @param array $relations 可传入['teams', 'department', 'position'],分别是团队,部门和岗位
* @param array $relations 可传入['teams', 'department
s
', 'position'],分别是团队,部门和岗位
* @return mixed
*/
public
function
getByIdList
(
array
$idList
,
array
$columns
=
[
'*'
],
array
$relations
=
[]);
...
...
This diff is collapsed.
Click to expand it.
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