-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3614f06
commit 09fb44d
Showing
58 changed files
with
172 additions
and
21 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+4.68 KB
(150%)
...er/build/classes/java/main/com/example/hackathon/content/application/ContentService.class
Binary file not shown.
Binary file modified
BIN
+2.53 KB
(190%)
.../build/classes/java/main/com/example/hackathon/content/controller/ContentController.class
Binary file not shown.
Binary file added
BIN
+1.76 KB
...om/example/hackathon/content/dto/RecentKeywordResponse$RecentKeywordResponseBuilder.class
Binary file not shown.
Binary file added
BIN
+2.02 KB
server/build/classes/java/main/com/example/hackathon/content/dto/RecentKeywordResponse.class
Binary file not shown.
Binary file added
BIN
+1.94 KB
...ava/main/com/example/hackathon/content/dto/SearchContentDto$SearchContentDtoBuilder.class
Binary file not shown.
Binary file added
BIN
+2.1 KB
server/build/classes/java/main/com/example/hackathon/content/dto/SearchContentDto.class
Binary file not shown.
Binary file added
BIN
+2.15 KB
...om/example/hackathon/content/dto/SearchContentResponse$SearchContentResponseBuilder.class
Binary file not shown.
Binary file added
BIN
+2.36 KB
server/build/classes/java/main/com/example/hackathon/content/dto/SearchContentResponse.class
Binary file not shown.
Binary file modified
BIN
+3 Bytes
(100%)
server/build/classes/java/main/com/example/hackathon/dataset/domain/DataFieldUser.class
Binary file not shown.
Binary file modified
BIN
+967 Bytes
(170%)
...uild/classes/java/main/com/example/hackathon/dataset/repository/DataFieldRepository.class
Binary file not shown.
Binary file modified
BIN
+382 Bytes
(120%)
.../classes/java/main/com/example/hackathon/dataset/repository/DataFieldUserRepository.class
Binary file not shown.
Binary file modified
BIN
+3 Bytes
(100%)
...ild/classes/java/main/com/example/hackathon/oauth/security/CustomUserDetailsService.class
Binary file not shown.
Binary file modified
BIN
+5 Bytes
(100%)
server/build/classes/java/main/com/example/hackathon/oauth/security/UserPrincipal.class
Binary file not shown.
Binary file modified
BIN
+7 Bytes
(100%)
...asses/java/main/com/example/hackathon/oauth/security/oauth2/CustomOAuth2UserService.class
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
server/build/classes/java/main/com/example/hackathon/user/controller/UserController.class
Binary file not shown.
Binary file added
BIN
+3.07 KB
server/build/classes/java/main/com/example/hackathon/user/domain/User.class
Binary file not shown.
Binary file added
BIN
+1.5 KB
server/build/classes/java/main/com/example/hackathon/user/domain/UserSearch.class
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
server/build/classes/java/main/com/example/hackathon/user/repository/UserRepository.class
Binary file not shown.
Binary file added
BIN
+1005 Bytes
.../build/classes/java/main/com/example/hackathon/user/repository/UserSearchRepository.class
Binary file not shown.
Binary file removed
BIN
-2.08 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/ContentController.class.uniqueId0
Binary file not shown.
Binary file added
BIN
+4.55 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/ContentController.class.uniqueId9
Binary file not shown.
Binary file added
BIN
+12.8 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/ContentService.class.uniqueId11
Binary file not shown.
Binary file removed
BIN
-7.7 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/ContentService.class.uniqueId2
Binary file not shown.
Binary file added
BIN
+5.78 KB
...ild/tmp/compileJava/compileTransaction/stash-dir/CustomOAuth2UserService.class.uniqueId10
Binary file not shown.
Binary file added
BIN
+3.5 KB
...ild/tmp/compileJava/compileTransaction/stash-dir/CustomUserDetailsService.class.uniqueId1
Binary file not shown.
Binary file added
BIN
+1.59 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/DataFieldUser.class.uniqueId6
Binary file not shown.
Binary file removed
BIN
-1.28 KB
...uild/tmp/compileJava/compileTransaction/stash-dir/DataFieldUserRepository.class.uniqueId1
Binary file not shown.
Binary file added
BIN
+1.91 KB
...uild/tmp/compileJava/compileTransaction/stash-dir/DataFieldUserRepository.class.uniqueId2
Binary file not shown.
Binary file added
BIN
+9.97 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/SecurityConfig.class.uniqueId3
Binary file not shown.
Binary file added
BIN
+3.92 KB
...ld/tmp/compileJava/compileTransaction/stash-dir/TokenAuthenticationFilter.class.uniqueId7
Binary file not shown.
Binary file added
BIN
+4.12 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/TokenProvider.class.uniqueId4
Binary file not shown.
File renamed without changes.
Binary file added
BIN
+2.51 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/UserController.class.uniqueId0
Binary file not shown.
Binary file added
BIN
+3.66 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/UserPrincipal.class.uniqueId12
Binary file not shown.
Binary file added
BIN
+719 Bytes
server/build/tmp/compileJava/compileTransaction/stash-dir/UserRepository.class.uniqueId8
Binary file not shown.
Binary file modified
BIN
+558 Bytes
(100%)
server/build/tmp/compileJava/previous-compilation-data.bin
Binary file not shown.
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
10 changes: 10 additions & 0 deletions
10
server/src/main/java/com/example/hackathon/content/dto/RecentKeywordResponse.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,10 @@ | ||
package com.example.hackathon.content.dto; | ||
|
||
import lombok.Builder; | ||
|
||
import java.util.List; | ||
@Builder | ||
public record RecentKeywordResponse( | ||
List<String> keywords | ||
) { | ||
} |
10 changes: 10 additions & 0 deletions
10
server/src/main/java/com/example/hackathon/content/dto/SearchContentDto.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,10 @@ | ||
package com.example.hackathon.content.dto; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public record SearchContentDto( | ||
Long contentId, | ||
String contentTitle, | ||
String contentImage) { | ||
} |
11 changes: 11 additions & 0 deletions
11
server/src/main/java/com/example/hackathon/content/dto/SearchContentResponse.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,11 @@ | ||
package com.example.hackathon.content.dto; | ||
|
||
import lombok.Builder; | ||
|
||
import java.util.List; | ||
@Builder | ||
public record SearchContentResponse( | ||
Boolean hasNextPage, | ||
List<SearchContentDto> searchContentDtos | ||
) { | ||
} |
5 changes: 1 addition & 4 deletions
5
server/src/main/java/com/example/hackathon/dataset/domain/DataFieldUser.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
6 changes: 6 additions & 0 deletions
6
server/src/main/java/com/example/hackathon/dataset/repository/DataFieldRepository.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,18 +1,24 @@ | ||
package com.example.hackathon.dataset.repository; | ||
|
||
import com.example.hackathon.dataset.domain.DataField; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.query.Param; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
@Repository | ||
public interface DataFieldRepository extends JpaRepository<DataField, Long> { | ||
@Query("SELECT df FROM DataField df ORDER BY RAND()") | ||
List<DataField> findDataFieldRandom(Pageable pageable); | ||
@Query("SELECT df FROM DataField df WHERE df.genre LIKE %:genre% ORDER BY RAND()") | ||
List<DataField> findDataFieldByGenre(@Param("genre")String genre , Pageable pageable); | ||
|
||
@Query("SELECT df FROM DataField df WHERE df.titleName LIKE %:keyword% AND df.mediaType=:searchType") | ||
Page<DataField> findByKewordAndSearch(@Param("keyword")String keyword, @Param("searchType")String searchType , Pageable pageable); | ||
Optional<DataField> findById(Long contentId); | ||
} |
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
2 changes: 1 addition & 1 deletion
2
server/src/main/java/com/example/hackathon/oauth/security/CustomUserDetailsService.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
2 changes: 1 addition & 1 deletion
2
server/src/main/java/com/example/hackathon/oauth/security/UserPrincipal.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
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
2 changes: 1 addition & 1 deletion
2
server/src/main/java/com/example/hackathon/user/controller/UserController.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
2 changes: 1 addition & 1 deletion
2
...om/example/hackathon/user/model/User.java → ...m/example/hackathon/user/domain/User.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
17 changes: 17 additions & 0 deletions
17
server/src/main/java/com/example/hackathon/user/domain/UserSearch.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,17 @@ | ||
package com.example.hackathon.user.domain; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@Entity | ||
public class UserSearch { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id; | ||
@ManyToOne(fetch = FetchType.LAZY) | ||
private User user; | ||
private String recentSearchKeyword; | ||
} |
2 changes: 1 addition & 1 deletion
2
server/src/main/java/com/example/hackathon/user/repository/UserRepository.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
16 changes: 16 additions & 0 deletions
16
server/src/main/java/com/example/hackathon/user/repository/UserSearchRepository.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,16 @@ | ||
package com.example.hackathon.user.repository; | ||
|
||
import com.example.hackathon.user.domain.UserSearch; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.query.Param; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
|
||
@Repository | ||
public interface UserSearchRepository extends JpaRepository<UserSearch, Long> { | ||
@Query("SELECT us FROM UserSearch us WHERE us.user.id=:userId ") | ||
List<UserSearch> findByRecentKeyword(@Param("userId")Long userId, Pageable pageable); | ||
} |