Skip to content

Commit

Permalink
commit modify post gateway post repo
Browse files Browse the repository at this point in the history
  • Loading branch information
josephpcsywm committed Jul 20, 2023
1 parent c81e339 commit 179a057
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/gateway/PostGateway.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package gateway;

public interface PostGateway {
import questionentities.Post;

public interface PostGateway {
void savePost(Post post);
Post getPost(int postId);
}
12 changes: 12 additions & 0 deletions src/main/java/gateway/PostRepo.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
package gateway;

import questionentities.Post;

public class PostRepo implements PostGateway{
DatabaseConnection databaseConnection;

@Override
public void savePost(Post post) {

}

@Override
public Post getPost(int postId) {
return null;
}
}

0 comments on commit 179a057

Please sign in to comment.