source: Git/Sources/src/main/java/com/wediscussmovies/project/service/GenreService.java

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 
1package com.wediscussmovies.project.service;
2
3import com.wediscussmovies.project.model.Genre;
4import com.wediscussmovies.project.querymodels.GenreLikesQM;
5import org.springframework.stereotype.Service;
6
7import java.util.List;
8
9@Service
10public 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.