Last change
on this file since dfd5d87 was dfd5d87, checked in by Marko <Marko@…>, 22 months ago |
Registration logic with confirmation token implemented
|
-
Property mode
set to
100644
|
File size:
613 bytes
|
Rev | Line | |
---|
[b68ae8d] | 1 | package finki.it.phoneluxbackend.services;
|
---|
| 2 |
|
---|
| 3 | import finki.it.phoneluxbackend.entities.Phone;
|
---|
| 4 | import finki.it.phoneluxbackend.entities.PhoneOffer;
|
---|
| 5 | import finki.it.phoneluxbackend.repositories.PhoneRepository;
|
---|
| 6 | import org.springframework.data.domain.Sort;
|
---|
| 7 | import org.springframework.stereotype.Service;
|
---|
| 8 |
|
---|
| 9 | import java.util.List;
|
---|
| 10 |
|
---|
| 11 | @Service
|
---|
| 12 | public class PhoneService {
|
---|
| 13 | private final PhoneRepository phoneRepository;
|
---|
| 14 |
|
---|
| 15 | public PhoneService(PhoneRepository phoneRepository){
|
---|
| 16 | this.phoneRepository = phoneRepository;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | public List<Phone> getPhones(){
|
---|
| 20 | return phoneRepository.findAll();
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.