Commit a8fd4a77 authored by 王源's avatar 王源 🎧

Merge branch 'develop' into 2.0

parents 2ff25b68 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 = []);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment