package com.YuyeTech.TPlat.service.impl;

import com.YuyeTech.TPlat.dataobject.AiInfo;
import com.YuyeTech.TPlat.service.AiInfoService;
import com.YuyeTech.TPlat.repository.AiInfoServiceRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:slambb
 * @date:2020/3/25
 */
@Service
public class AiInfoServiceImpl implements AiInfoService {
    @Autowired
    private AiInfoServiceRepository aiInfoServiceRepository;

    @Override
    public List<AiInfo> getAllAiInfo() {
        //TODO 后面ai数量多的话，再另外处理。
        return aiInfoServiceRepository.findAll();
    }
}
