| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
deleteUserById(Long userId) |
List<String> |
findPermissionsByUserId(Long userId)
根据用户ID 查询用户权限
|
UserInfo |
findUserInfo(SysUser sysUser)
查询用户信息
|
com.baomidou.mybatisplus.core.metadata.IPage |
getUserWithRolePage(com.baomidou.mybatisplus.extension.plugins.pagination.Page page,
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<SysUser> queryWrapper) |
List<SysMenu> |
queryMenuByUserId(Long currentUserId)
查询当前用户菜单ID
|
Boolean |
saveUser(UserDto user)
保存用户信息
|
boolean |
updatePassword(Long currentUserId,
String password,
String newPassword)
更新密码
|
Boolean |
updateUserById(UserDto user)
更新用户信息
|
count, count, getBaseMapper, getById, getMap, getObj, getOne, getOne, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdcom.baomidou.mybatisplus.core.metadata.IPage getUserWithRolePage(com.baomidou.mybatisplus.extension.plugins.pagination.Page page,
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<SysUser> queryWrapper)
List<String> findPermissionsByUserId(Long userId)
userId - 用户IDboolean updatePassword(Long currentUserId, String password, String newPassword)
currentUserId - 当前用IDpassword - 原密码newPassword - 新密码List<SysMenu> queryMenuByUserId(Long currentUserId)
currentUserId - 当前用户Copyright © 2019. All rights reserved.