package com.cf.imes.framework.operatelog.config;

import com.cf.imes.framework.operatelog.core.aop.OperateLogAspect;
import com.cf.imes.framework.operatelog.core.service.OperateLogFrameworkService;
import com.cf.imes.framework.operatelog.core.service.OperateLogFrameworkServiceImpl;
import com.cf.imes.module.system.api.logger.OperateLogApi;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

@AutoConfiguration
public class ChenfengOperateLogAutoConfiguration {

    @Bean
    public OperateLogAspect operateLogAspect() {
        return new OperateLogAspect();
    }

    @Bean
    public OperateLogFrameworkService operateLogFrameworkService(OperateLogApi operateLogApi) {
        return new OperateLogFrameworkServiceImpl(operateLogApi);
    }

}
