package com.jwipc.portal.config;

import com.jwipc.log.logic.LogAnalysisLogic;
import com.jwipc.log.logic.LogSettingLogic;
import com.jwipc.log.logic.LogStorageLogic;
import com.jwipc.log.logic.LoginUserLogic;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Configuration
@RequiredArgsConstructor
public class LogbookConfig {
    private final LogSettingLogic logSettingLogic;
    private final LoginUserLogic loginUserLogic;
    private final LogStorageLogic logStorageLogic;
    @Bean
    public LogAnalysisLogic logAnalysisLogic() {
        return new LogAnalysisLogic(logSettingLogic, loginUserLogic, logStorageLogic);
    }
}
