Skip to content

Commit

Permalink
refactor: Add MemorialV2Service (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: hyojeongchoi <[email protected]>
Co-authored-by: nusuy <[email protected]>
Co-authored-by: Queue-ri <[email protected]>
  • Loading branch information
4 people committed Nov 26, 2023
1 parent 3c8b121 commit 24c1fad
Showing 1 changed file with 30 additions and 0 deletions.
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();
}
}

0 comments on commit 24c1fad

Please sign in to comment.