package com.lyms.cm.service.sys;
import java.io.Serializable;
import com.lyms.cm.entity.sys.SysUsers;
import com.lyms.exception.SystemException;
import com.lyms.web.service.BaseService;
/**
*
* 用户服务类
*
*
* @author maliang
* @since 2017-03-02
*/
public interface SysUsersService extends BaseService {
/**
* 添加用户
*
* @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;
/**
* 启用/停用
*
* 根据用户ID操作
*
*
* @param userId
* @return
* @author maliang
*/
public boolean enabled(String userId) throws SystemException;
/**
* 删除用户信息
*
* @param userId
* @return
* @throws SystemException
*/
public boolean delete(String userId) throws SystemException;
/**
*
@Description:逻辑删除,ifDel = 1 为删除,否则为没有删除
* @param id 删除主键id
* @return 大于0修改成功,否则为失败
*/
public Integer deleteLogicById(Serializable id);
/**
* @Description:是否存在登录号
* @param username
* @return
* 创建人:方承
* 创建时间:2017年3月8日
* 修改人:
* 修改时间:
*/
public boolean isExistAccount(String username);
}