 package org.sky.system.config;


 import lombok.AllArgsConstructor;
 import org.sky.core.datascope.handler.ScopeModelHandler;
 import org.sky.core.secure.config.RegistryConfiguration;
 import org.sky.core.secure.handler.IPermissionHandler;
 import org.sky.system.handler.ApiScopePermissionHandler;
 import org.sky.system.handler.DataScopeModelHandler;
 import org.springframework.boot.autoconfigure.AutoConfigureBefore;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;

/**
 * 公共封装包配置类
 *
  */
@Configuration(proxyBeanMethods = false)
@AllArgsConstructor
@AutoConfigureBefore(RegistryConfiguration.class)
public class ScopeConfiguration {

	@Bean
	public ScopeModelHandler scopeModelHandler() {
		return new DataScopeModelHandler();
	}

	@Bean
	public IPermissionHandler permissionHandler() {
		return new ApiScopePermissionHandler();
	}

}
