main
Last change
on this file was 980eeda, checked in by Test <matonikolov77@…>, 2 years ago |
Restructuring project
|
-
Property mode
set to
100644
|
File size:
558 bytes
|
Line | |
---|
1 | package com.wediscussmovies.project.service;
|
---|
2 |
|
---|
3 | import com.wediscussmovies.project.model.Genre;
|
---|
4 | import com.wediscussmovies.project.querymodels.GenreLikesQM;
|
---|
5 | import org.springframework.stereotype.Service;
|
---|
6 |
|
---|
7 | import java.util.List;
|
---|
8 |
|
---|
9 | @Service
|
---|
10 | public interface GenreService {
|
---|
11 | List<Genre> findAll();
|
---|
12 | Genre findById(Integer id);
|
---|
13 | List<Genre> findAllByType(String genre);
|
---|
14 | Genre save(String genreName);
|
---|
15 | List<GenreLikesQM> findAllWithLikes();
|
---|
16 | void likeGenre(Integer genreId,Integer userId);
|
---|
17 | void unlikeGenre(Integer genreId,Integer userId);
|
---|
18 |
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.