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
ab4574f9
Commit
ab4574f9
authored
Apr 10, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户服务接口添加获取权限数组方法
parent
4a2d712e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
UserServiceInterface.php
src/Service/Interfaces/UserServiceInterface.php
+9
-0
No files found.
src/Service/Interfaces/UserServiceInterface.php
View file @
ab4574f9
...
...
@@ -27,10 +27,19 @@ interface UserServiceInterface
public
function
getByIdList
(
array
$idList
,
array
$columns
=
[
'*'
]);
/**
* 鉴权
* @param int $userId
* @param string $perm
* @return bool
*/
public
function
checkPerm
(
int
$userId
,
string
$perm
)
:
bool
;
/**
* 获取用户拥有某个应用的所有权限
* @param int $userId
* @param string $appName 为空获取全部权限
* @return array
*/
public
function
getPerms
(
int
$userId
,
string
$appName
=
null
)
:
array
;
}
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