From a6f4dda63df5a7f468a6ec429d67e9c4095ce9f0 Mon Sep 17 00:00:00 2001 From: zepengdev <lzpsmith@outlook.com> Date: Fri, 13 Jun 2025 16:45:33 +0800 Subject: [PATCH] feat(product): 优化商品图片功能 refactor(store): 重构店铺-商户关联 fix(api): 标准化接口字段 --- oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java | 34 ++++++++++++++++++---------------- 1 files changed, 18 insertions(+), 16 deletions(-) diff --git a/oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java b/oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java index 8bdcc52..d56cbfc 100644 --- a/oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java +++ b/oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java @@ -3,9 +3,7 @@ import com.baomidou.mybatisplus.extension.service.IService; import com.oying.modules.pc.store.domain.Store; import com.oying.modules.pc.store.domain.StoreCategory; -import com.oying.modules.pc.store.domain.dto.StoreBusinessHoursRequest; -import com.oying.modules.pc.store.domain.dto.StoreLocationUpdateRequest; -import com.oying.modules.pc.store.domain.dto.StoreQueryCriteria; +import com.oying.modules.pc.store.domain.dto.*; import com.oying.utils.PageResult; import java.math.BigDecimal; @@ -26,31 +24,35 @@ Store getMerchantStore(Long merchantId); - boolean create(Store store); + List<Store> queryUserStores(Long userId); - boolean updateLogo(Long storeId, String logo); + boolean create(StoreCreateRequest request); - boolean updateName(Long storeId, String storeName); + boolean update(StoreUpdateRequest request); - boolean updateDescription(Long storeId, String description); + boolean updateLogo(Long storeId, String logo, Long version); - boolean updateContactPhone(Long storeId, String contactPhone); + boolean updateName(Long storeId, String storeName, Long version); - boolean updateAddress(Long storeId, String address); + boolean updateDescription(Long storeId, String description, Long version); - boolean updateLocation(Long storeId, Double longitude, Double latitude); + boolean updateContactPhone(Long storeId, String contactPhone, Long version); - boolean updateRadius(Long storeId, Integer radius); + boolean updateAddress(Long storeId, String address, Long version); - boolean updatePlatformCategory(Long storeId, Long platformCategory); + boolean updateLocation(Long storeId, Double longitude, Double latitude, Long version); - boolean updateBusinessHours(Long storeId, LocalTime openTime, LocalTime endTime); + boolean updateRadius(Long storeId, Integer radius, Long version); - boolean updateDeliveryMinimum(Long storeId, BigDecimal deliveryMinimum); + boolean updatePlatformCategory(Long storeId, Long platformCategory, Long version); - boolean updateDeliveryFee(Long storeId, BigDecimal deliveryFee); + boolean updateBusinessHours(Long storeId, LocalTime openTime, LocalTime endTime, Long version); - boolean updateStatus(Long storeId, Integer status); + boolean updateDeliveryMinimum(Long storeId, BigDecimal deliveryMinimum, Long version); + + boolean updateDeliveryFee(Long storeId, BigDecimal deliveryFee, Long version); + + boolean updateStatus(Long storeId, Integer status, Long version); boolean existsByIdAndMerchantId(Long storeId, Long merchantId); } -- Gitblit v1.9.3