forked from luyan/epmet-cloud-lingshan
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
/**
|
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
|
*
|
|
* https://www.renren.io
|
|
*
|
|
* 版权所有,侵权必究!
|
|
*/
|
|
|
|
package com.epmet.service;
|
|
|
|
import com.epmet.commons.mybatis.service.BaseService;
|
|
import com.epmet.commons.tools.page.PageData;
|
|
import com.epmet.dto.SysUserDTO;
|
|
import com.epmet.entity.SysUserEntity;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* 用户管理
|
|
*
|
|
* @author Mark sunlightcs@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
public interface SysUserService extends BaseService<SysUserEntity> {
|
|
|
|
PageData<SysUserDTO> page(Map<String, Object> params);
|
|
|
|
List<SysUserDTO> list(Map<String, Object> params);
|
|
|
|
SysUserDTO get(Long id);
|
|
|
|
SysUserDTO getByUsername(String username);
|
|
|
|
void save(SysUserDTO dto);
|
|
|
|
void update(SysUserDTO dto);
|
|
|
|
void delete(Long[] ids);
|
|
|
|
/**
|
|
* 修改密码
|
|
* @param id 用户ID
|
|
* @param newPassword 新密码
|
|
*/
|
|
void updatePassword(Long id, String newPassword);
|
|
|
|
/**
|
|
* 根据部门ID,查询用户数
|
|
*/
|
|
int getCountByDeptId(Long deptId);
|
|
}
|
|
|