package com.njcn.service.user;

import java.util.List;

import com.njcn.pojo.user.Role;
import com.njcn.pojo.user.RoleGroup;

import tk.mybatis.mapper.entity.Example;

public interface RoleGroupService {
	int insertRole(RoleGroup role);
	//删
	int deleteRole(RoleGroup role);
	//改
	int updateRole(RoleGroup role);
	List<RoleGroup>  selectAllName(List<String> roleDescription);
	//查询Id
	RoleGroup selectRoleIndex(String roleIndex);
	//根据角色组，获取拥有的角色名
	List<Role> getRoleName(String roleGpIndex,String sysType,List<String> list);
	void deleteByGpIndex(String roleGpIndex,String sysType);
	void addASS(String userIndex, String index,String sysType);
	
	List<RoleGroup> selectByExample(Example example);
	RoleGroup selectOne(RoleGroup rolegp);

    List<RoleGroup> getAllManagerRoleGroup();
}
