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;
/**
* <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>
* 根据用户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;
/**
* <li>@Description:逻辑删除,ifDel = 1 为删除,否则为没有删除
* <li>@param id 删除主键id
* <li>@return 大于0修改成功,否则为失败
*/
public Integer deleteLogicById(Serializable id);
/**
* <li>@Description:是否存在登录号
* <li>@param username
* <li>@return
* <li>创建人:方承
* <li>创建时间:2017年3月8日
* <li>修改人:
* <li>修改时间:
*/
public boolean isExistAccount(String username);
}