package com.hnshituo.core.auth.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hnshituo.core.auth.vo.Function;
import com.hnshituo.core.auth.vo.Privilege;
import com.hnshituo.orm.GenericMapper;

public interface PrivilegeMapper extends GenericMapper<Privilege, Integer> {

	
	public void insertWithFuncs(@Param("roleId")int roleId, @Param("funcs")List<Function> funcs);
	
	
	public Integer[] getPrivilegeByRoleId(@Param("roleId")int roleId);
	
	public void deleteByRoleId(@Param("roleId")int roleId);


	public void doAdd(Privilege privilege);
	
}
