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
1735bf21
Commit
1735bf21
authored
May 15, 2020
by
梁俊杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增根据id获取岗位信息接口
parent
de493eb4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
BaseInfoServiceInterface.php
src/Service/Interfaces/BaseInfoServiceInterface.php
+11
-0
No files found.
src/Service/Interfaces/BaseInfoServiceInterface.php
View file @
1735bf21
...
@@ -11,6 +11,16 @@ namespace Meibuyu\Micro\Service\Interfaces;
...
@@ -11,6 +11,16 @@ namespace Meibuyu\Micro\Service\Interfaces;
interface
BaseInfoServiceInterface
interface
BaseInfoServiceInterface
{
{
/**
* 通过单个id获取岗位信息
* @param int $id 职位id
* @param array $relations 职位的关联信息 支持["position_level","users","parent"
* ,"children","perms"] 分别是 岗位职级,岗位用户,岗位父级,岗位子集,岗位对应的权限
* @param array $columns 默认显示所有字段
* @return array
*/
public
function
getPositionById
(
int
$id
,
array
$relations
=
[],
array
$columns
=
[
'*'
])
:
array
;
/**
/**
* 通过单个id获取岗位数组
* 通过单个id获取岗位数组
* @param int $id
* @param int $id
...
@@ -20,6 +30,7 @@ interface BaseInfoServiceInterface
...
@@ -20,6 +30,7 @@ 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
...
...
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