Commit 9d990432 authored by gongyuanbiao's avatar gongyuanbiao

user

parent dd234c19
...@@ -241,6 +241,26 @@ interface BaseInfoServiceInterface ...@@ -241,6 +241,26 @@ interface BaseInfoServiceInterface
*/ */
public function getCountriesByCodes(array $codes, array $columns = ['*'], $codeType = 2); public function getCountriesByCodes(array $codes, array $columns = ['*'], $codeType = 2);
/**
* 根据国家地区code数组获取国家地区数组
* @param array $codes 国家code数组
* @param null $countryId 国家id
* @param array $relations 关联关系,默认空 可填['country']
* @return array
* @author Zero
*/
public function getCountryZonesByCodes(array $codes, $countryId = null, array $relations = []);
/**
* 通过单个id获取角色信息
* @param int $id 角色id
* @param array $relations 角色的关联信息
* 支持["users", "perms"]
* 分别是 角色下的用户,角色下的权限
* @param array $columns 默认显示所有字段,['id', 'name', 'is_active', 'display_name', 'description']
* @return array|null
*/
public function getRoleById(int $id, array $relations = [], array $columns = ['*']);
/** /**
* 通过角色标识获取角色信息 * 通过角色标识获取角色信息
...@@ -252,4 +272,5 @@ interface BaseInfoServiceInterface ...@@ -252,4 +272,5 @@ interface BaseInfoServiceInterface
* @return array|null * @return array|null
*/ */
public function getRoleByName(string $name, array $relations = [], array $columns = ['*']); public function getRoleByName(string $name, array $relations = [], array $columns = ['*']);
} }
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