100 lines
1.9 KiB
Java
100 lines
1.9 KiB
Java
|
package com.xkrs.service;
|
||
|
|
||
|
import com.xkrs.model.entity.SysUserEntity;
|
||
|
import com.xkrs.model.qo.SysUserQo;
|
||
|
import com.xkrs.model.vo.SysUserVo;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
|
/**
|
||
|
* 系统用户服务接口
|
||
|
* @author tajochen
|
||
|
*/
|
||
|
public interface SysUserService {
|
||
|
|
||
|
/**
|
||
|
* 检查用户名
|
||
|
* @param userName
|
||
|
* @return
|
||
|
*/
|
||
|
boolean checkUserName(String userName);
|
||
|
|
||
|
/**
|
||
|
* 获取所有用户
|
||
|
* @return
|
||
|
*/
|
||
|
//Iterable<SysUserVo> getAllSysUser();
|
||
|
|
||
|
/**
|
||
|
* 保存用户
|
||
|
* @param sysUserQo
|
||
|
*/
|
||
|
void addUser(SysUserQo sysUserQo);
|
||
|
|
||
|
/**
|
||
|
* 获取系统用户实体根据用户名
|
||
|
* @param userName
|
||
|
* @return
|
||
|
*/
|
||
|
SysUserEntity getSysUserByUserName(String userName);
|
||
|
|
||
|
/**
|
||
|
* 用户登录更新
|
||
|
* @param userName
|
||
|
* @param ipAddress
|
||
|
* @return
|
||
|
*/
|
||
|
int updateSysUserLogin(String userName, String ipAddress);
|
||
|
|
||
|
/**
|
||
|
* 系统用户更新
|
||
|
* @param sysUserQo
|
||
|
* @return
|
||
|
*/
|
||
|
int updateSysUser(SysUserQo sysUserQo);
|
||
|
|
||
|
/**
|
||
|
* 软删除系统用户
|
||
|
* @param id
|
||
|
* @return
|
||
|
*/
|
||
|
int softDeleteGeneralUser(Integer id);
|
||
|
|
||
|
/**
|
||
|
* 查询用户的信息
|
||
|
* @return
|
||
|
*/
|
||
|
List<SysUserVo> selectAllUser();
|
||
|
|
||
|
/**
|
||
|
* 启用
|
||
|
* @param userId
|
||
|
*/
|
||
|
void updateEnable(Integer userId);
|
||
|
|
||
|
/**
|
||
|
* 禁用
|
||
|
* @param userId
|
||
|
*/
|
||
|
void updateDisable(Integer userId);
|
||
|
|
||
|
/**
|
||
|
* 用户修改密码
|
||
|
* @param oldPassword
|
||
|
* @param newPassword
|
||
|
* @param confirmPassword
|
||
|
* @param sysUserEntity
|
||
|
* @return
|
||
|
*/
|
||
|
String updatePassword(String oldPassword,String newPassword,String confirmPassword,SysUserEntity sysUserEntity);
|
||
|
|
||
|
/**
|
||
|
* 管理员修改用户的密码
|
||
|
* @param userId
|
||
|
* @param newPassword
|
||
|
* @param confirmPassword
|
||
|
* @return
|
||
|
*/
|
||
|
String adminUpdatePassword(Integer userId,String newPassword,String confirmPassword);
|
||
|
}
|