package com.lanyuanxiaoyao.leopard.server;

import com.lanyuanxiaoyao.leopard.server.service.TuShareService;
import com.yomahub.liteflow.core.FlowExecutor;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

/**
 * @author lanyuanxiaoyao
 * @version 20250828
 */
@Slf4j
@SpringBootApplication(scanBasePackages = "com.lanyuanxiaoyao.leopard")
@EnableJpaAuditing
public class LeopardServerApplication implements ApplicationRunner {
  public static void main(String[] args) {
    SpringApplication.run(LeopardServerApplication.class, args);
  }

  @Resource
  private FlowExecutor executor;
  @Resource
  private TuShareService tuShareService;

  @Override
  public void run(ApplicationArguments args) {
    // executor.execute2RespWithEL("THEN(update_daily)");
    // executor.execute2RespWithEL("THEN(update_stock)");
    // executor.execute2RespWithEL("THEN(check_daily)");
  }
}
