store update
This commit is contained in:
parent
569404a73d
commit
96bbc3d83c
@ -130,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);
|
||||
|
||||
|
||||
@ -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