main
Last change
on this file was f4b4afa, checked in by Nikola Todoroski <nikola.todoroski@…>, 6 months ago |
Pushed whole project, original project location on github:https://github.com/hehxd/Tech-Harbor
|
-
Property mode
set to
100644
|
File size:
525 bytes
|
Line | |
---|
1 | package tech.techharbor.Service;
|
---|
2 |
|
---|
3 |
|
---|
4 | import tech.techharbor.Model.ReviewModel;
|
---|
5 |
|
---|
6 | import java.util.List;
|
---|
7 | import java.util.Optional;
|
---|
8 |
|
---|
9 | public interface ReviewService {
|
---|
10 | List<ReviewModel> listReviews();
|
---|
11 |
|
---|
12 | Optional<ReviewModel> findById(Integer id);
|
---|
13 |
|
---|
14 | ReviewModel create(Integer rating, String description, Integer customerId, Integer productId);
|
---|
15 |
|
---|
16 | ReviewModel update(Integer reviewId, Integer rating, String description);
|
---|
17 |
|
---|
18 | void delete(Integer id);
|
---|
19 |
|
---|
20 | List<ReviewModel> getReviewsByProductId(Integer productId);
|
---|
21 |
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.