21 lines
475 B
Java
21 lines
475 B
Java
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<Term> getTerms() {
|
|
return termRepository.findAll();
|
|
}
|
|
}
|