Commit 61e6389b authored by 王源's avatar 王源 🎧

添加通过单个id获取角色信息

parent c70a6896
...@@ -251,4 +251,15 @@ interface BaseInfoServiceInterface ...@@ -251,4 +251,15 @@ interface BaseInfoServiceInterface
*/ */
public function getCountryZonesByCodes(array $codes, $countryId = null, array $relations = []); 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 = ['*']);
} }
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