public interface GroupRoleService
| 限定符和类型 | 字段和说明 |
|---|---|
static GroupRoleServiceImpl |
ins |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(GroupRole role)
插入角色对象
|
void |
addUserRole(String groupId,
String userId,
long roleId)
添加用户角色关系
|
GroupRole |
get(long roleId)
获取团队角色
|
List<Role> |
loadRoles(String groupId)
获取团队下的角色列表
|
List<GroupRoleVO> |
loadUserRoles(String groupId,
String account)
获取角色列表
|
void |
remove(Long id)
删除角色对象
|
void |
removeUserRole(String groupId,
String userId,
long roleId)
删除用户角色关系
|
void |
update(GroupRole role)
更新角色对象
|
List<User> |
users(String groupId,
long roleId)
获取角色的用户列表
|
static final GroupRoleServiceImpl ins
List<Role> loadRoles(String groupId) throws Exception
groupId - 团队编号Exception - 异常List<GroupRoleVO> loadUserRoles(String groupId, String account) throws Exception
groupId - 团队编号account - 用户账号Exception - 异常List<User> users(String groupId, long roleId) throws Exception
groupId - 团队编号roleId - 角色编号Exception - 异常void addUserRole(String groupId, String userId, long roleId) throws Exception
groupId - 团队编号userId - 用户账号roleId - 角色编号Exception - 异常Copyright © 2023 Bstek. All rights reserved.