Skip to content

Commit

Permalink
[fix]:#142 파일추가
Browse files Browse the repository at this point in the history
  • Loading branch information
beakgugong committed Nov 14, 2024
1 parent 0edd807 commit e8dad12
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package ussum.homepage.domain.post.service;

import jakarta.transaction.Transactional;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import ussum.homepage.domain.post.Post;
import ussum.homepage.domain.post.RightsDetail;
import ussum.homepage.domain.post.RightsDetailRepository;

@Service
@RequiredArgsConstructor
public class PostAdditionalReader {
private final RightsDetailRepository rightsDetailRepository;

@Transactional
public List<RightsDetail> getRightsDetailByPostId(Long postId) {
List<RightsDetail> rightsDetails = rightsDetailRepository.findAllByPostId(postId);
return rightsDetails;
}
}

0 comments on commit e8dad12

Please sign in to comment.