SYYTe/maku-boot-system/src/main/java/net/maku/system/service/SysUserService.java

56 lines
1.2 KiB
Java
Raw Normal View History

2022-04-22 15:26:39 +08:00
package net.maku.system.service;
2023-01-20 13:47:45 +08:00
import net.maku.framework.common.utils.PageResult;
import net.maku.framework.mybatis.service.BaseService;
2022-04-22 15:26:39 +08:00
import net.maku.system.entity.SysUserEntity;
2022-07-25 16:06:39 +08:00
import net.maku.system.query.SysRoleUserQuery;
2022-05-05 13:58:45 +08:00
import net.maku.system.query.SysUserQuery;
import net.maku.system.vo.SysUserVO;
2022-11-04 16:37:24 +08:00
import org.springframework.web.multipart.MultipartFile;
2022-04-22 15:26:39 +08:00
import java.util.List;
/**
* 用户管理
*
* @author 阿沐 babamu@126.com
*/
public interface SysUserService extends BaseService<SysUserEntity> {
PageResult<SysUserVO> page(SysUserQuery query);
2022-05-05 13:58:45 +08:00
void save(SysUserVO vo);
2022-04-22 15:26:39 +08:00
2022-05-05 13:58:45 +08:00
void update(SysUserVO vo);
2022-04-22 15:26:39 +08:00
void delete(List<Long> idList);
2022-08-30 22:39:03 +08:00
SysUserVO getByMobile(String mobile);
2022-04-22 15:26:39 +08:00
/**
* 修改密码
2022-08-30 22:39:03 +08:00
*
* @param id 用户ID
* @param newPassword 新密码
2022-04-22 15:26:39 +08:00
*/
void updatePassword(Long id, String newPassword);
2022-07-25 16:06:39 +08:00
/**
* 分配角色用户列表
*/
PageResult<SysUserVO> roleUserPage(SysRoleUserQuery query);
2022-11-04 16:37:24 +08:00
/**
* 批量导入用户
*
* @param file excel文件
* @param password 密码
*/
void importByExcel(MultipartFile file, String password);
/**
* 导出用户信息表格
*/
2022-11-09 17:19:39 +08:00
void export();
2022-04-22 15:26:39 +08:00
}