-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
5 changed files
with
104 additions
and
10 deletions.
There are no files selected for viewing
9 changes: 8 additions & 1 deletion
9
src/main/java/com/mpnp/baechelin/store/controller/StoreController.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,16 +1,23 @@ | ||
package com.mpnp.baechelin.store.controller; | ||
|
||
import com.mpnp.baechelin.store.dto.StoreResponseDto; | ||
import com.mpnp.baechelin.store.service.StoreService; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import java.util.List; | ||
|
||
@RestController | ||
@RequiredArgsConstructor | ||
@RequestMapping("/store") | ||
public class StoreController { | ||
|
||
private final StoreService storeService; | ||
|
||
|
||
@GetMapping | ||
public List<StoreResponseDto> getStoreList() { | ||
return null; | ||
} | ||
} |
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
12 changes: 12 additions & 0 deletions
12
src/main/java/com/mpnp/baechelin/store/dto/StoreImgResponseDto.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,12 @@ | ||
package com.mpnp.baechelin.store.dto; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class StoreImgResponseDto { | ||
private String storeImageUrl; | ||
|
||
public StoreImgResponseDto(String storeImageUrl) { | ||
this.storeImageUrl = storeImageUrl; | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
src/main/java/com/mpnp/baechelin/store/dto/StoreResponseDto.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,64 @@ | ||
package com.mpnp.baechelin.store.dto; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class StoreResponseDto { | ||
private int storeId; | ||
private String category; | ||
private String name; | ||
private String latitude; | ||
private String longitude; | ||
private String address; | ||
private String elevator; | ||
private String toilet; | ||
private String parking; | ||
private String phoneNumber; | ||
private String heightDifferent; | ||
private String approach; | ||
private List<StoreImgResponseDto> storeImgList; | ||
private LocalDateTime storeModifiedAt; | ||
private double pointAvg; | ||
// private List<ReviewResDTO> reviewList; | ||
|
||
@Builder | ||
public StoreResponseDto( | ||
int storeId, | ||
String category, | ||
String name, | ||
String latitude, | ||
String longitude, | ||
String address, | ||
String elevator, | ||
String toilet, | ||
String parking, | ||
String phoneNumber, | ||
String heightDifferent, | ||
String approach, | ||
List<StoreImgResponseDto> storeImgList, | ||
LocalDateTime storeModifiedAt, | ||
double pointAvg) { | ||
|
||
this.storeId = storeId; | ||
this.category = category; | ||
this.name = name; | ||
this.latitude = latitude; | ||
this.longitude = longitude; | ||
this.address = address; | ||
this.elevator = elevator; | ||
this.toilet = toilet; | ||
this.parking = parking; | ||
this.phoneNumber = phoneNumber; | ||
this.heightDifferent = heightDifferent; | ||
this.approach = approach; | ||
this.storeImgList = storeImgList; | ||
this.storeModifiedAt = storeModifiedAt; | ||
this.pointAvg = pointAvg; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/mpnp/baechelin/store/service/StoreService.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,7 +1,19 @@ | ||
package com.mpnp.baechelin.store.service; | ||
|
||
import com.mpnp.baechelin.store.dto.StoreResponseDto; | ||
import com.mpnp.baechelin.store.repository.StoreRepository; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
|
||
import java.util.List; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class StoreService { | ||
|
||
private final StoreRepository storeRepository; | ||
|
||
public List<StoreResponseDto> getStoreList() { | ||
return null; | ||
} | ||
} |