Changeset e0ef1b1 in Git for src/main/java/com/wediscussmovies/project/service/ReplyService.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/ReplyService.java
r3ded84d re0ef1b1 1 1 package com.wediscussmovies.project.service; 2 2 3 import com.wediscussmovies.project.model.Discussion; 3 4 import com.wediscussmovies.project.model.Reply; 5 import com.wediscussmovies.project.model.User; 6 import com.wediscussmovies.project.model.primarykeys.ReplyPK; 4 7 5 import java.util. Optional;8 import java.util.List; 6 9 7 10 public interface ReplyService { 8 public Reply save(Reply r); 9 public void delete(Reply r); 10 Optional<Reply> findById(Long id); 11 Reply edit(Integer replyId, Integer discussionId, String text); 12 void delete(Integer discussionId,Integer replyId); 13 Reply findById(Integer discussionId, Integer replyId); 14 void save(Integer discussionId, String text, User user); 15 void likeReply(Integer replyId,Integer userId); 16 void unlikeReply(Integer replyId,Integer userId); 17 List<Reply> findAllByDiscussion(Discussion discussion); 18 19 11 20 12 21 }
Note:
See TracChangeset
for help on using the changeset viewer.