package com.lyms.cm.service.sys;
import com.baomidou.mybatisplus.plugins.Page;
import com.lyms.cm.entity.sys.SysRoles;
import com.lyms.exception.SystemException;
import com.lyms.web.service.BaseService;
/**
*
* 角色服务类
*
*
* @author maliang
* @since 2017-03-02
*/
public interface SysRolesService extends BaseService {
/**
* 添加角色信息
*
* @param role
* @return
* @throws SystemException
*/
public boolean addRole(SysRoles role) throws SystemException;
/**
* 修改角色信息
*
* @param role
* @return
* @throws SystemException
*/
public boolean updateRole(SysRoles role) throws SystemException;
/**
* 删除角色信息
*
* @param roleId
* @return
* @throws SystemException
*/
public boolean deleteRole(String roleId) throws SystemException;
/**
* 分页获取角色信息
*
* 目前没有参数设置,过滤
*
* @param page
* @return
*/
public Page getRolesByPage(Page page) throws SystemException;
/**
* 根据roleId 获取角色信息
*
* @param roleId
* @return
* @throws SystemException
*/
public SysRoles getRoleById(String roleId) throws SystemException;
/**
* 禁/启用角色
*
* @param roleId
* @return
* @throws SystemException
*/
public boolean enable(String roleId) throws SystemException;
}