-
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.
Merge pull request #41 from SOPT-all/feat/37
[FEAT] 게시물 조회 로직 수정- isSpoon추가,response에서 카테고리 관련 부분 수정
- Loading branch information
Showing
5 changed files
with
30 additions
and
13 deletions.
There are no files selected for viewing
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
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
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
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
6 changes: 5 additions & 1 deletion
6
src/main/java/com/spoony/spoony_server/domain/spoon/repository/ScoopPostRepository.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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
package com.spoony.spoony_server.domain.spoon.repository; | ||
|
||
import com.spoony.spoony_server.domain.post.entity.PostEntity; | ||
import com.spoony.spoony_server.domain.post.entity.ScoopPostEntity; | ||
import com.spoony.spoony_server.domain.user.entity.UserEntity; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface ScoopPostRepository extends JpaRepository<ScoopPostEntity, Long> { | ||
//oolean existsByUser_userId(Long userId); | ||
boolean existsByUserAndPost(UserEntity userEntity, PostEntity postEntity); // user_id의 존재 여부 확인 | ||
} | ||
|
||
|
||
} |