package ru.ulstu.fc.rule.service; import org.springframework.stereotype.Service; import ru.ulstu.fc.rule.model.Term; import ru.ulstu.fc.rule.repository.TermRepository; import java.util.List; @Service public class TermsService { private final TermRepository termRepository; public TermsService(TermRepository termRepository) { this.termRepository = termRepository; } public List getTerms() { return termRepository.findAll(); } }