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
368b22e2
Commit
368b22e2
authored
May 20, 2021
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加根据国家code数组获取国家数组和根据国家地区code数组获取国家地区数组
parent
66a8ddee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
BaseInfoServiceInterface.php
src/Service/Interfaces/BaseInfoServiceInterface.php
+20
-1
No files found.
src/Service/Interfaces/BaseInfoServiceInterface.php
View file @
368b22e2
...
...
@@ -220,4 +220,23 @@ interface BaseInfoServiceInterface
*/
public
function
getCountryZoneById
(
int
$id
,
array
$columns
=
[
'*'
]);
/**
* 根据国家code数组获取国家数组
* @param array $codes 国家code数组
* @param array $columns 获取的字段,默认全部
* @param int $codeType 2/3 (iso_code2/iso_code3)
* @return array 默认已keyBy('iso_code')
* @author Zero
*/
public
function
getCountriesByCodes
(
array
$codes
,
array
$columns
=
[
'*'
],
$codeType
=
2
);
/**
* 根据国家地区code数组获取国家地区数组
* @param array $codes 国家code数组
* @param array $relations 关联关系,默认空 可填['country']
* @return array 默认已keyBy('iso_code2')
* @author Zero
*/
public
function
getCountryZonesByCodes
(
array
$codes
,
array
$relations
=
[]);
}
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