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
9ec6ab8f
Commit
9ec6ab8f
authored
Sep 18, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用rpc添加获取单个数据和获取数组数据方法
parent
7bf1df7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
AppServiceInterface.php
src/Service/Interfaces/AppServiceInterface.php
+19
-0
No files found.
src/Service/Interfaces/AppServiceInterface.php
View file @
9ec6ab8f
...
...
@@ -18,4 +18,23 @@ interface AppServiceInterface
* @return mixed
*/
public
function
getAccessApps
(
$user
,
$isSuperAdmin
=
false
);
/**
* 获取单个数据
* @param int $id
* @param array $relations 关联关系只有['group']
* @param array $columns
* @return mixed
*/
public
function
get
(
int
$id
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
'title'
]);
/**
* 通过id列表获取应用数组
* @param array $idList 默认去重
* @param array $relations 关联关系只有['group']
* @param array $columns 默认展示id和title,可传['title', 'name', 'entry', 'prefix', 'group_id', 'is_inside', 'is_active', 'icon', 'desc', 'weight']
* @return array 默认keyBy('id')
*/
public
function
getByIdList
(
array
$idList
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
'title'
])
:
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