Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-rpc
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
0
Merge Requests
0
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-rpc
Commits
7a8ce010
Commit
7a8ce010
authored
May 15, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户rpc添加判断是否超级管理员方法,应用rpc修改获取权限应用方法
parent
94b2d913
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
AppServiceInterface.php
src/Service/Interfaces/AppServiceInterface.php
+2
-1
UserServiceInterface.php
src/Service/Interfaces/UserServiceInterface.php
+7
-0
No files found.
src/Service/Interfaces/AppServiceInterface.php
View file @
7a8ce010
...
...
@@ -14,7 +14,8 @@ interface AppServiceInterface
/**
* 获取当前用户可访问的应用数组
* @param $user
* @param bool $isSuperAdmin 是否是超级管理员
* @return mixed
*/
public
function
getAccessApps
(
$user
);
public
function
getAccessApps
(
$user
,
$isSuperAdmin
=
false
);
}
src/Service/Interfaces/UserServiceInterface.php
View file @
7a8ce010
...
...
@@ -45,6 +45,13 @@ interface UserServiceInterface
*/
public
function
getByIdList
(
array
$idList
,
array
$columns
=
[
'*'
],
array
$relations
=
[]);
/**
* 判断是否是超级管理员
* @param int $userId
* @return bool
*/
public
function
isSuperAdmin
(
int
$userId
)
:
bool
;
/**
* 鉴权
* @param 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