Merge branch 'main' of https://github.com/dg04-hi/hi-backend
# Conflicts: # review/src/main/java/com/ktds/hi/review/infra/gateway/ExternalReviewEventHubAdapter.java
This commit is contained in:
commit
3a59c0f279
@ -87,6 +87,7 @@ public class StoreService implements StoreUseCase {
|
|||||||
.rating(store.getRating())
|
.rating(store.getRating())
|
||||||
.reviewCount(store.getReviewCount())
|
.reviewCount(store.getReviewCount())
|
||||||
.status("운영중")
|
.status("운영중")
|
||||||
|
.imageUrl(store.getImageUrl())
|
||||||
.operatingHours(store.getOperatingHours())
|
.operatingHours(store.getOperatingHours())
|
||||||
.build())
|
.build())
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
@ -129,7 +130,7 @@ public class StoreService implements StoreUseCase {
|
|||||||
.orElseThrow(() -> new BusinessException("STORE_ACCESS_DENIED", "매장에 대한 권한이 없습니다."));
|
.orElseThrow(() -> new BusinessException("STORE_ACCESS_DENIED", "매장에 대한 권한이 없습니다."));
|
||||||
|
|
||||||
store.updateInfo(request.getStoreName(), request.getAddress(), request.getDescription(),
|
store.updateInfo(request.getStoreName(), request.getAddress(), request.getDescription(),
|
||||||
request.getPhone(), request.getOperatingHours());
|
request.getPhone(), request.getOperatingHours(), request.getImageUrl());
|
||||||
|
|
||||||
storeJpaRepository.save(store);
|
storeJpaRepository.save(store);
|
||||||
|
|
||||||
|
|||||||
@ -39,4 +39,6 @@ public class MyStoreListResponse {
|
|||||||
|
|
||||||
@Schema(description = "운영시간", example = "월-금 09:00-21:00")
|
@Schema(description = "운영시간", example = "월-금 09:00-21:00")
|
||||||
private String operatingHours;
|
private String operatingHours;
|
||||||
|
@Schema(description = "매장 이미지")
|
||||||
|
private String imageUrl;
|
||||||
}
|
}
|
||||||
@ -38,4 +38,7 @@ public class StoreUpdateRequest {
|
|||||||
|
|
||||||
@Schema(description = "매장 태그 목록", example = "[\"맛집\", \"혼밥\", \"가성비\"]")
|
@Schema(description = "매장 태그 목록", example = "[\"맛집\", \"혼밥\", \"가성비\"]")
|
||||||
private List<String> tags;
|
private List<String> tags;
|
||||||
|
|
||||||
|
@Schema(description = "매장 이미지")
|
||||||
|
private String imageUrl;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -132,13 +132,14 @@ public class StoreEntity {
|
|||||||
* 매장 기본 정보 업데이트
|
* 매장 기본 정보 업데이트
|
||||||
*/
|
*/
|
||||||
public void updateInfo(String storeName, String address, String description,
|
public void updateInfo(String storeName, String address, String description,
|
||||||
String phone, String operatingHours) {
|
String phone, String operatingHours, String imageUrl) {
|
||||||
this.storeName = storeName;
|
this.storeName = storeName;
|
||||||
this.address = address;
|
this.address = address;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.phone = phone;
|
this.phone = phone;
|
||||||
this.operatingHours = operatingHours;
|
this.operatingHours = operatingHours;
|
||||||
this.updatedAt = LocalDateTime.now();
|
this.updatedAt = LocalDateTime.now();
|
||||||
|
this.imageUrl = imageUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user