forked from HamaHama-Dev/pupmory
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Add MemorialV2Service (#2)
Co-authored-by: hyojeongchoi <[email protected]> Co-authored-by: nusuy <[email protected]> Co-authored-by: Queue-ri <[email protected]>
- Loading branch information
1 parent
3c8b121
commit 24c1fad
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
backend/src/main/java/com/hamahama/pupmory/service/MemorialV2Service.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.hamahama.pupmory.service; | ||
|
||
import com.hamahama.pupmory.domain.memorial.Post; | ||
import com.hamahama.pupmory.domain.memorial.PostRepository; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Service; | ||
import org.springframework.transaction.annotation.Transactional; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author Queue-ri | ||
* @author becky | ||
* @author hyojeongchoi | ||
* @author nusuy | ||
* @since 2023/11/23 | ||
*/ | ||
|
||
@Slf4j | ||
@RequiredArgsConstructor | ||
@Service | ||
public class MemorialV2Service { | ||
private final PostRepository postRepo; | ||
|
||
@Transactional | ||
public List<Post> getAllPost() { | ||
return postRepo.findAll(); | ||
} | ||
} |