package com.jojubanking.boot.framework.operatelog.config;

import com.jojubanking.boot.framework.operatelog.core.aop.OperateLogAspect;
import com.jojubanking.boot.framework.operatelog.core.service.OperateLogFrameworkService;
import com.jojubanking.boot.framework.operatelog.core.service.OperateLogFrameworkServiceImpl;
import com.jojubanking.boot.module.system.api.logger.OperateLogApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JojuOperateLogAutoConfiguration {

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

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

}
