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
9caba02c
Commit
9caba02c
authored
Jun 03, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整基础信息rpc获取单个数据方法返回值bug
parent
5fbcdcf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
BaseInfoServiceInterface.php
src/Service/Interfaces/BaseInfoServiceInterface.php
+10
-10
No files found.
src/Service/Interfaces/BaseInfoServiceInterface.php
View file @
9caba02c
...
...
@@ -66,44 +66,44 @@ interface BaseInfoServiceInterface
* 根据id获取单个数据
* @param int $id 货币id
* @param array $columns 要显示的字段 默认全部 ['id', 'name', 'code', 'symbol']
* @return array
* @return array
|null
*/
public
function
getCurrencyById
(
$id
,
array
$columns
=
[
'id'
,
'name'
,
'code'
,
'symbol'
])
:
array
;
public
function
getCurrencyById
(
$id
,
array
$columns
=
[
'id'
,
'name'
,
'code'
,
'symbol'
]);
/**
* 根据id获取单个数据
* @param int $id
* @param array $columns 要显示的字段 默认全部
* @return array
* @return array
|null
*/
public
function
getCountryById
(
$id
,
array
$columns
=
[
'*'
])
:
array
;
public
function
getCountryById
(
$id
,
array
$columns
=
[
'*'
]);
/**
* 获取单个团队数据
* @param int $id
* @param array $relations 支持的关联关系 ['leader', 'sites', "users", "parent", "children"] 分别代表 负责人、团队下的站点、团队成员、父级团队,再级团队
* @param array $columns 要显示的字段 默认['id', 'pid', "name", "leader_user_id", "leader_user_id", "department_id"]
* @return array
* @return array
|null
*/
public
function
getTeamById
(
$id
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
'pid'
,
"name"
,
"leader_user_id"
,
"leader_user_id"
,
"department_id"
])
:
array
;
public
function
getTeamById
(
$id
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
'pid'
,
"name"
,
"leader_user_id"
,
"leader_user_id"
,
"department_id"
]);
/**
* 获取单个站点数据
* @param int $id
* @param array $relations $relations 支持的关联关系 ['team', 'country'] 分别代表 团队、国家、
* @param array $columns 要显示的字段 默认['id', "name", "url", "country_id", "team_id"]
* @return array
* @return array
|null
*/
public
function
getSiteById
(
$id
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
"name"
,
"url"
,
"country_id"
,
"team_id"
])
:
array
;
public
function
getSiteById
(
$id
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
"name"
,
"url"
,
"country_id"
,
"team_id"
]);
/**
* 根据团队id获取对应的站点列表
* @param int $teamId 团队id
* @param array $relations $relations 支持的关联关系 ['team', 'country'] 分别代表 团队、国家、
* @param array $columns 要显示的字段 默认['id', "name", "url", "country_id", "team_id"]
* @return array
* @return array
|null
*/
public
function
getSiteListByTeamId
(
$teamId
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
"name"
,
"url"
,
"country_id"
,
"team_id"
])
:
array
;
public
function
getSiteListByTeamId
(
$teamId
,
array
$relations
=
[],
array
$columns
=
[
'id'
,
"name"
,
"url"
,
"country_id"
,
"team_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