package com.lyms.cm.service.sys;
import com.baomidou.mybatisplus.plugins.Page;
import com.lyms.cm.entity.sys.SysUsers;
import com.lyms.exception.SystemException;
import com.lyms.web.service.BaseService;
/**
* <p>
* 用户服务类
* </p>
*
* @author maliang
* @since 2017-03-02
*/
public interface SysUsersService extends BaseService<SysUsers> {
/**
* 添加用户
*
* @param user
* @return
* @author maliang
*/
public boolean addUser(SysUsers user) throws SystemException;
/**
* 修改用户信息
*
* @param user
* @return
* @author maliang
*/
public boolean updateUser(SysUsers user) throws SystemException;
/**
* 根据ID获取用户信息
*
* @param userId
* @return
* @author maliang
*/
public SysUsers getUserById(String userId) throws SystemException;
/**
* 分页获取用户数据信息
* <p>
* 该方法不携带任何过滤信息
*
* @param page
* 分页对象
* @return
* @throws SystemException
*/
public Page<SysUsers> getUserByPage(Page<SysUsers> page) throws SystemException;
/**
* 启用/停用
* <p>
* 根据用户ID操作
* <p>
*
* @param userId
* @return
* @author maliang
*/
public boolean enabled(String userId) throws SystemException;
/**
* 删除用户信息
*
* @param userId
* @return
* @throws SystemException
*/
public boolean delete(String userId) throws SystemException;
}