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())
|
||||
.reviewCount(store.getReviewCount())
|
||||
.status("운영중")
|
||||
.imageUrl(store.getImageUrl())
|
||||
.operatingHours(store.getOperatingHours())
|
||||
.build())
|
||||
.collect(Collectors.toList());
|
||||
@ -129,7 +130,7 @@ public class StoreService implements StoreUseCase {
|
||||
.orElseThrow(() -> new BusinessException("STORE_ACCESS_DENIED", "매장에 대한 권한이 없습니다."));
|
||||
|
||||
store.updateInfo(request.getStoreName(), request.getAddress(), request.getDescription(),
|
||||
request.getPhone(), request.getOperatingHours());
|
||||
request.getPhone(), request.getOperatingHours(), request.getImageUrl());
|
||||
|
||||
storeJpaRepository.save(store);
|
||||
|
||||
|
||||
@ -39,4 +39,6 @@ public class MyStoreListResponse {
|
||||
|
||||
@Schema(description = "운영시간", example = "월-금 09:00-21:00")
|
||||
private String operatingHours;
|
||||
@Schema(description = "매장 이미지")
|
||||
private String imageUrl;
|
||||
}
|
||||
@ -38,4 +38,7 @@ public class StoreUpdateRequest {
|
||||
|
||||
@Schema(description = "매장 태그 목록", example = "[\"맛집\", \"혼밥\", \"가성비\"]")
|
||||
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,
|
||||
String phone, String operatingHours) {
|
||||
String phone, String operatingHours, String imageUrl) {
|
||||
this.storeName = storeName;
|
||||
this.address = address;
|
||||
this.description = description;
|
||||
this.phone = phone;
|
||||
this.operatingHours = operatingHours;
|
||||
this.updatedAt = LocalDateTime.now();
|
||||
this.imageUrl = imageUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user