package com.deepchart.service.impl; import com.deepchart.entity.StockDailyData; import com.deepchart.entity.StockInfo; import com.deepchart.service.IndexService; import com.deepchart.utils.CCIUtil; import com.deepchart.utils.MACDUtil; import com.deepchart.utils.MAUtil; import com.deepchart.utils.StockDataUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class IndexServiceImpl implements IndexService { @Autowired private StockDataUtil stockDataUtil; @Override public List getStockData(StockInfo stock) { return stockDataUtil.getStockData(stock); } @Override public String macd(List list) { return MACDUtil.analyzeStock(list); } @Override public String ma(List list) { return MAUtil.analyzeMA(list); } @Override public String cci(List list) { return CCIUtil.analyzeCCI(list); } }