| 程序包 | 说明 |
|---|---|
| org.hswebframework.web.entity.authorization | |
| org.hswebframework.web.entity.authorization.bind | |
| org.hswebframework.web.service.authorization |
| 限定符和类型 | 类和说明 |
|---|---|
class |
SimpleUserEntity |
| 限定符和类型 | 方法和说明 |
|---|---|
UserEntity |
UserEntity.clone() |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
BindRoleUserEntity |
| 限定符和类型 | 类和说明 |
|---|---|
class |
SimpleBindRoleUserEntity |
| 限定符和类型 | 方法和说明 |
|---|---|
UserEntity |
UserService.selectByUsername(String username)
根据用户名查询用户信息
|
UserEntity |
UserService.selectByUserNameAndPassword(String plainUsername,
String plainPassword)
根据用户名和密码查询用户信息,在验证用户名密码是否正确是可以使用此方法
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<UserEntity> |
UserService.selectByUserByRole(List<String> roleIdList)
根据角色id集合获取对应的全部用户
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
UserService.insert(UserEntity data)
新增用户
|
void |
UserService.update(String userId,
UserEntity userBean)
修改用户信息,如果传入对实体实现了
BindRoleUserEntity,将更新用户的权限信息,更新逻辑:删除用户的权限信息,将新的权限信息重新insert,⚠️注意: 如果 BindRoleUserEntity.getRoles()等于null,将不更新角色信息. |
Copyright © 2018. All rights reserved.