2023-12-12 23:48:23 +08:00
|
|
|
package cn.bunny.service;
|
|
|
|
|
2023-12-14 14:58:22 +08:00
|
|
|
import cn.bunny.common.spzx.model.dto.system.AssginRoleDto;
|
2023-12-14 00:14:42 +08:00
|
|
|
import cn.bunny.common.spzx.model.dto.system.LoginDto;
|
|
|
|
import cn.bunny.common.spzx.model.dto.system.SysUserDto;
|
|
|
|
import cn.bunny.common.spzx.model.entity.system.SysUser;
|
|
|
|
import cn.bunny.common.spzx.model.vo.system.LoginVo;
|
|
|
|
import com.github.pagehelper.PageInfo;
|
2023-12-12 23:48:23 +08:00
|
|
|
|
|
|
|
public interface SysUserService {
|
|
|
|
// 用户登录
|
|
|
|
LoginVo login(LoginDto loginDto);
|
2023-12-13 11:00:10 +08:00
|
|
|
|
|
|
|
// 获取用户token
|
|
|
|
SysUser getUserInfo(String token);
|
|
|
|
|
|
|
|
// 用户退出
|
|
|
|
void logout(String token);
|
2023-12-14 00:14:42 +08:00
|
|
|
|
|
|
|
// 用户条件分页查询
|
|
|
|
PageInfo<SysUser> findByPage(Integer pageNum, Integer pageSize, SysUserDto sysUserDto);
|
|
|
|
|
|
|
|
// 用户添加
|
2023-12-15 16:32:31 +08:00
|
|
|
void saveSysUser(SysUser sysUser);
|
2023-12-14 00:14:42 +08:00
|
|
|
|
|
|
|
// 用户修改
|
|
|
|
void updateSysUser(SysUser sysUser);
|
|
|
|
|
|
|
|
// 删除用户
|
|
|
|
void deleteUserById(Integer userId);
|
2023-12-14 14:58:22 +08:00
|
|
|
|
|
|
|
// 保存分配数据
|
|
|
|
void doAssign(AssginRoleDto assginRoleDto);
|
2023-12-12 23:48:23 +08:00
|
|
|
}
|