Changeset e0ef1b1 in Git for src/main/java/com/wediscussmovies/project/service/DiscussionService.java
- Timestamp:
- 02/04/22 23:22:13 (3 years ago)
- Branches:
- main
- Children:
- 5b447b0
- Parents:
- 3ded84d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/service/DiscussionService.java
r3ded84d re0ef1b1 1 1 package com.wediscussmovies.project.service; 2 2 3 import com.wediscussmovies.project.model.*; 3 import com.wediscussmovies.project.model.Discussion; 4 import com.wediscussmovies.project.model.User; 4 5 5 6 import java.util.List; 6 import java.util.Optional;7 7 8 8 public interface DiscussionService { 9 9 List<Discussion> listAll(); 10 10 List<Discussion> listAllByTitle(String title); 11 Optional<Discussion> findById(Integer id); 12 void save(Discussion discussion); 11 Discussion findById(Integer id); 12 void save(Character type,Integer id, String title, String text, User user); 13 void edit(Integer discussionId,Character type,Integer id, String title, String text); 14 void deleteById(Integer discussionId); 15 void likeDiscussion(Integer discussionId,Integer userId); 16 void unlikeDiscussion(Integer discussionId,Integer userId); 17 List<Discussion> findAllForPersonOrMovie(Integer id,Character type); 13 18 }
Note:
See TracChangeset
for help on using the changeset viewer.