package com.dcit.authority.shiro.provider.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dcit.authority.dao.SysResourcesMapper;
import com.dcit.authority.shiro.domain.RolePermRule;
import com.dcit.authority.shiro.provider.ShiroFilterRulesProvider;

@Service
public class ShiroFilterRulesProviderImpl implements ShiroFilterRulesProvider {
	
	@Autowired
	private SysResourcesMapper sysResourcesMapper;

	@Override
	public List<RolePermRule> loadRolePermRules() {
		// TODO Auto-generated method stub
		return sysResourcesMapper.selectRoleRules();
	}

}
