package com.yeejoin.amos.boot.module.jcs.biz.config;

import com.yeejoin.amos.boot.module.common.biz.service.impl.ESOrgUsrService;
import com.yeejoin.amos.boot.module.jcs.biz.audioToText.RealTimeSpeechTranscriberListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import java.sql.SQLOutput;

/**
 * @author DELL
 */
@Component
public class JCSRunnner implements ApplicationRunner {
    private static final Logger logg = LoggerFactory.getLogger(JCSRunnner.class);
    @Autowired
    ESOrgUsrService esOrgUsrService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        logg.info("开始初始化ES");
        esOrgUsrService.init();
    }
}
