Commit 817e55e4 authored by gongyuanbiao's avatar gongyuanbiao

user

parent c70a6896
......@@ -251,4 +251,15 @@ interface BaseInfoServiceInterface
*/
public function getCountryZonesByCodes(array $codes, $countryId = null, array $relations = []);
/**
* 通过角色标识获取角色信息
* @param string name 角色名称
* @param array $relations 角色的关联信息
* 支持["users", "perms"]
* 分别是 角色下的用户,角色下的权限
* @param array $columns 默认显示所有字段,['id', 'name', 'is_active', 'display_name', 'description']
* @return array|null
*/
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