-
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
18d3163
commit 93a23fc
Showing
38 changed files
with
99 additions
and
0 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
+2.91 KB
(120%)
...er/build/classes/java/main/com/example/hackathon/content/application/ContentService.class
Binary file not shown.
Binary file added
BIN
+2.1 KB
.../classes/java/main/com/example/hackathon/content/controller/ContentDetailController.class
Binary file not shown.
Binary file added
BIN
+3.4 KB
...om/example/hackathon/content/dto/ContentDetailResponse$ContentDetailResponseBuilder.class
Binary file not shown.
Binary file added
BIN
+3.35 KB
server/build/classes/java/main/com/example/hackathon/content/dto/ContentDetailResponse.class
Binary file not shown.
Binary file added
BIN
+2.33 KB
.../build/classes/java/main/com/example/hackathon/content/dto/PlaceDto$PlaceDtoBuilder.class
Binary file not shown.
Binary file added
BIN
+2.46 KB
server/build/classes/java/main/com/example/hackathon/content/dto/PlaceDto.class
Binary file not shown.
Binary file modified
BIN
+209 Bytes
(110%)
server/build/classes/java/main/com/example/hackathon/dataset/domain/Data.class
Binary file not shown.
Binary file modified
BIN
+250 Bytes
(130%)
server/build/classes/java/main/com/example/hackathon/dataset/repository/DataRepository.class
Binary file not shown.
Binary file renamed
BIN
+4.55 KB
...ash-dir/ContentController.class.uniqueId9 → ...ash-dir/ContentController.class.uniqueId1
Binary file not shown.
Binary file added
BIN
+2.1 KB
...uild/tmp/compileJava/compileTransaction/stash-dir/ContentDetailController.class.uniqueId2
Binary file not shown.
Binary file added
BIN
+3.23 KB
...eTransaction/stash-dir/ContentDetailResponse$ContentDetailResponseBuilder.class.uniqueId3
Binary file not shown.
Binary file added
BIN
+3.17 KB
.../build/tmp/compileJava/compileTransaction/stash-dir/ContentDetailResponse.class.uniqueId0
Binary file not shown.
Binary file removed
BIN
-12.8 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/ContentService.class.uniqueId11
Binary file not shown.
Binary file added
BIN
+17.3 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/ContentService.class.uniqueId4
Binary file not shown.
Binary file removed
BIN
-5.78 KB
...ild/tmp/compileJava/compileTransaction/stash-dir/CustomOAuth2UserService.class.uniqueId10
Binary file not shown.
Binary file removed
BIN
-3.5 KB
...ild/tmp/compileJava/compileTransaction/stash-dir/CustomUserDetailsService.class.uniqueId1
Binary file not shown.
Binary file removed
BIN
-1.59 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/DataFieldUser.class.uniqueId6
Binary file not shown.
Binary file removed
BIN
-1.91 KB
...uild/tmp/compileJava/compileTransaction/stash-dir/DataFieldUserRepository.class.uniqueId2
Binary file not shown.
Binary file removed
BIN
-9.97 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/SecurityConfig.class.uniqueId3
Binary file not shown.
Binary file removed
BIN
-3.92 KB
...ld/tmp/compileJava/compileTransaction/stash-dir/TokenAuthenticationFilter.class.uniqueId7
Binary file not shown.
Binary file removed
BIN
-4.12 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/TokenProvider.class.uniqueId4
Binary file not shown.
Binary file removed
BIN
-3.07 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/User.class.uniqueId5
Binary file not shown.
Binary file removed
BIN
-2.51 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/UserController.class.uniqueId0
Binary file not shown.
Binary file removed
BIN
-3.66 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/UserPrincipal.class.uniqueId12
Binary file not shown.
Binary file removed
BIN
-719 Bytes
server/build/tmp/compileJava/compileTransaction/stash-dir/UserRepository.class.uniqueId8
Binary file not shown.
Binary file modified
BIN
+363 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
26 changes: 26 additions & 0 deletions
26
server/src/main/java/com/example/hackathon/content/controller/ContentDetailController.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,26 @@ | ||
package com.example.hackathon.content.controller; | ||
|
||
import com.example.hackathon.content.application.ContentService; | ||
import com.example.hackathon.content.dto.ContentDetailResponse; | ||
import com.example.hackathon.content.dto.InterestContentResponse; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import lombok.AllArgsConstructor; | ||
import org.springframework.http.HttpStatus; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
@AllArgsConstructor | ||
@RequestMapping("/api/detail") | ||
public class ContentDetailController { | ||
private final ContentService contentService; | ||
@GetMapping("/content") | ||
@Operation(summary = "내가 관심 있어 하는 장르의 작품 리스트 + 간편 주소를 가져옵니다. " ,description = "userId와 가져올 컨텐츠 갯수를 파라미터로 넣어주세요") | ||
public ResponseEntity<ContentDetailResponse> getInterestContentResponse(@RequestParam Long userId, @RequestParam Long contentId) { | ||
ContentDetailResponse contentDetailResponse = contentService.getContentDetailResponse(userId, contentId); | ||
return new ResponseEntity<>(contentDetailResponse, HttpStatus.OK); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
server/src/main/java/com/example/hackathon/content/dto/ContentDetailResponse.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.content.dto; | ||
|
||
import lombok.Builder; | ||
|
||
import java.util.List; | ||
|
||
@Builder | ||
public record ContentDetailResponse( | ||
Long contentId, | ||
String contentTitle, | ||
String contentImage, | ||
String contentType, | ||
Boolean isScraped, | ||
List<String> addressTag, | ||
List<PlaceDto> placeDtos | ||
) { | ||
} |
14 changes: 14 additions & 0 deletions
14
server/src/main/java/com/example/hackathon/content/dto/PlaceDto.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,14 @@ | ||
package com.example.hackathon.content.dto; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public record PlaceDto( | ||
Long placeId, | ||
String placeName, | ||
String placeOverview, | ||
String placeImage, | ||
String placeAddress, | ||
String openTime | ||
) { | ||
} |
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