-
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.
* fix:소셜로그인 에러 확인 * fix:oAuth error * fix:dockefile error * fix:docker file error * fix:dockerfile error * fix:conflict * feat:장소별 동행컨텐츠 조회 * fix:pr 리뷰 받고 수정
- Loading branch information
1 parent
e4dd13b
commit c3982ae
Showing
36 changed files
with
328 additions
and
151 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
2 changes: 1 addition & 1 deletion
2
src/main/java/com/onna/onnaback/domain/apply/application/port/out/SaveApplyPort.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
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
Empty file.
4 changes: 0 additions & 4 deletions
4
src/main/java/com/onna/onnaback/domain/apply/spark/adapter/in/web/SparkController.java
This file was deleted.
Oops, something went wrong.
50 changes: 0 additions & 50 deletions
50
...com/onna/onnaback/domain/apply/spark/adapter/out/persistence/SparkPersistenceAdapter.java
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...in/java/com/onna/onnaback/domain/apply/spark/adapter/out/persistence/SparkRepository.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
src/main/java/com/onna/onnaback/domain/apply/spark/adater/in/web/SparkController.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
src/main/java/com/onna/onnaback/domain/apply/spark/application/port/in/SparkUseCase.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/main/java/com/onna/onnaback/domain/apply/spark/application/port/out/LoadSparkPort.java
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
src/main/java/com/onna/onnaback/domain/apply/spark/domain/SparkType.java
This file was deleted.
Oops, something went wrong.
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
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
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
32 changes: 32 additions & 0 deletions
32
src/main/java/com/onna/onnaback/domain/spark/adapter/in/web/SparkController.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,32 @@ | ||
package com.onna.onnaback.domain.spark.adapter.in.web; | ||
|
||
import com.onna.onnaback.domain.spark.adapter.in.web.response.SparkResponse; | ||
import com.onna.onnaback.domain.spark.application.port.in.SparkUseCase; | ||
import io.swagger.annotations.ApiResponse; | ||
import io.swagger.annotations.ApiResponses; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
@RestController | ||
@RequestMapping("/api/spark") | ||
@RequiredArgsConstructor | ||
public class SparkController { | ||
|
||
private final SparkUseCase sparkUseCase; | ||
|
||
@Operation(description = "장소별 동행컨텐츠 조회") | ||
@GetMapping("/{placeId}") | ||
public ResponseEntity<List<SparkResponse>> getSparkList(@PathVariable("placeId") Long placeId, | ||
@RequestParam(value="page",required = false,defaultValue = "1")int page, | ||
@RequestParam(value="size",required = false,defaultValue = "5")int size){ | ||
|
||
return ResponseEntity.ok().body( | ||
this.sparkUseCase.getSparkListByPlaceId(page,size,placeId) | ||
); | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
...ain/java/com/onna/onnaback/domain/spark/adapter/in/web/response/ParticipateMemberDto.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.onna.onnaback.domain.spark.adapter.in.web.response; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Data | ||
@Builder | ||
// todo : Record로 바꿔보기 | ||
public class ParticipateMemberDto { | ||
|
||
private Long memberId; | ||
|
||
private String profileImg; | ||
} |
51 changes: 51 additions & 0 deletions
51
src/main/java/com/onna/onnaback/domain/spark/adapter/in/web/response/SparkResponse.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,51 @@ | ||
package com.onna.onnaback.domain.spark.adapter.in.web.response; | ||
|
||
import com.onna.onnaback.domain.spark.domain.DurationHour; | ||
import com.onna.onnaback.domain.spark.domain.RecruitType; | ||
import com.onna.onnaback.domain.spark.domain.SparkType; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
|
||
@Data | ||
@Builder | ||
public class SparkResponse { | ||
|
||
private long sparkId; | ||
|
||
private String title; | ||
|
||
private SparkType sparkType; | ||
|
||
private LocalDateTime sparkDate; | ||
|
||
private DurationHour durationHour; | ||
|
||
private Long capacity; | ||
|
||
private Long memberCount; | ||
|
||
private RecruitType recruitType; | ||
|
||
private Long price; | ||
|
||
private String hostName; | ||
|
||
private String hostImg; | ||
|
||
private String hostDetail; | ||
|
||
private String description; | ||
|
||
private List<ParticipateMemberDto> participateMember; | ||
|
||
private String detailAddress; | ||
|
||
private Double lng; | ||
|
||
private Double lat; | ||
|
||
} |
Oops, something went wrong.