package com.YuyeTech.HeartRate.game.gameInfo.service;

import com.YuyeTech.HeartRate.game.gameInfo.projo.FcCategory;
import com.YuyeTech.HeartRate.repository.FcCategoryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:slambb
 * @date:2020/2/5
 */
@Service
public class FcCategoryServiceImpl implements FcCategoryService{
    @Autowired
    private FcCategoryRepository fcCategoryRepository;
    @Override
    public List<FcCategory> findAll() {
        return fcCategoryRepository.findAll();
    }

    @Override
    public List<FcCategory> findByType(Integer type) {
        return fcCategoryRepository.findByCategoryType(type);
    }
}
