public interface SysUserRoleService extends ExtendService<SysUserRole>
DEFAULT_BATCH_SIZE| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
addUserRoles(Long userId,
List<String> roleCodes)
添加用户角色关联关系
|
boolean |
deleteByUserId(Long userId)
删除用户的角色
|
List<SysRole> |
listRoles(Long userId)
通过用户ID,查询角色列表
|
com.hccake.ballcat.common.model.domain.PageResult<RoleBindUserVO> |
queryUserPageByRoleCode(com.hccake.ballcat.common.model.domain.PageParam pageParam,
RoleBindUserQO roleCode)
通过角色标识,查询用户列表
|
boolean |
unbindRoleUser(Long userId,
String roleCode)
解绑角色和用户关系
|
boolean |
updateUserRoles(Long userId,
List<String> roleCodes)
更新用户关联关系
|
getBaseMapper, getById, getEntityClass, list, listByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, save, saveBatch, saveBatch, saveBatchSomeColumn, saveBatchSomeColumn, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, updateBatchById, updateBatchById, updateByIdboolean deleteByUserId(Long userId)
userId - 用户IDboolean updateUserRoles(Long userId, List<String> roleCodes)
userId - 用户IDroleCodes - 角色标识集合boolean addUserRoles(Long userId, List<String> roleCodes)
userId - 用户IDroleCodes - 角色标识集合com.hccake.ballcat.common.model.domain.PageResult<RoleBindUserVO> queryUserPageByRoleCode(com.hccake.ballcat.common.model.domain.PageParam pageParam, RoleBindUserQO roleCode)
pageParam - 分页参数roleCode - 角色标识Copyright © 2023. All rights reserved.