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
37e6748c
Commit
37e6748c
authored
Feb 25, 2022
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加通过id数组获取岗位数组信息
parent
64b9e598
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
BaseInfoServiceInterface.php
src/Service/Interfaces/User/BaseInfoServiceInterface.php
+20
-7
No files found.
src/Service/Interfaces/User/BaseInfoServiceInterface.php
View file @
37e6748c
...
...
@@ -23,6 +23,7 @@ interface BaseInfoServiceInterface
* @param int $id
* @param null $level
* @return array
* @throws \Meibuyu\Rpc\Exceptions\RpcException
*/
public
function
getPositionWithTopListById
(
int
$id
,
$level
=
null
)
:
array
;
...
...
@@ -54,7 +55,7 @@ interface BaseInfoServiceInterface
* 通过id数组获取站点数组
* @param array $idList 默认去重
* @param array $columns
* @param array $relations $relations 支持的关联关系 ['team', 'country'
] 分别代表 团队、国家、
* @param array $relations $relations 支持的关联关系 ['team', 'country'
, 'sale_platform_id'] 分别代表 团队、国家、销售平台
* @return array 默认keyBY('id')
*/
public
function
getSiteListByIdList
(
array
$idList
,
array
$columns
=
[
'id'
,
'name'
],
array
$relations
=
[])
:
array
;
...
...
@@ -77,13 +78,25 @@ interface BaseInfoServiceInterface
/**
* 通过单个id获取岗位信息
* @param int $id 职位id
* @param array $relations 职位的关联信息 支持["position_level","users","parent"
* ,"children","perms"] 分别是 岗位职级,岗位用户,岗位父级,岗位子集,岗位对应的权限
* @param array $relations 职位的关联信息
* 支持["position_level","users","parent","children","perms"]
* 分别是 岗位职级,岗位用户,岗位父级,岗位子集,岗位对应的权限
* @param array $columns 默认显示所有字段
* @return array|null
*/
public
function
getPositionById
(
int
$id
,
array
$relations
=
[],
array
$columns
=
[
'*'
]);
/**
* 通过id数组获取岗位数组信息
* @param array $ids 职位id数组,默认去重
* @param array $relations 职位的关联信息
* 支持["position_level","users","parent","children","perms"]
* 分别是 岗位职级,岗位用户,岗位父级,岗位子集,岗位对应的权限
* @param array $columns 默认显示所有字段
* @return array 默认已keyBy('id')
*/
public
function
getPositionListByIds
(
array
$ids
,
array
$relations
=
[],
array
$columns
=
[
'*'
]);
/**
* 根据id获取单个数据
* @param int $id 货币id
...
...
@@ -112,7 +125,7 @@ interface BaseInfoServiceInterface
/**
* 获取单个站点数据
* @param int $id
* @param array $relations $relations 支持的关联关系 ['team', 'country'] 分别代表 团队、国家、
* @param array $relations $relations 支持的关联关系 ['team', 'country'
,'sale_platform'
] 分别代表 团队、国家、
* @param array $columns 要显示的字段 默认['id', "name", "url", "country_id", "team_id"]
* @return array|null
*/
...
...
@@ -121,11 +134,11 @@ interface BaseInfoServiceInterface
/**
* 根据团队id获取对应的站点列表
* @param int $teamId 团队id
* @param array $relations $relations 支持的关联关系 ['team', 'country'] 分别代表 团队、国家、
* @param array $columns 要显示的字段 默认['id', "name", "url", "country_id", "team_id"]
* @param array $relations $relations 支持的关联关系 ['team', 'country'
, 'sale_platform'
] 分别代表 团队、国家、
* @param array $columns 要显示的字段 默认['id', "name", "url", "country_id", "team_id"
,"sale_platform_id"
]
* @return array|null
*/
public
function
getSiteListByTeamId
(
$teamId
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
"name"
,
"url"
,
"country_id"
,
"team_id"
]);
public
function
getSiteListByTeamId
(
$teamId
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
"name"
,
"url"
,
"country_id"
,
"team_id"
,
"sale_platform_id"
]);
/**
* 返回所有货币数据
...
...
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