From b394df082b875856884d6d02cce2a43c49ad6704 Mon Sep 17 00:00:00 2001 From: xin <1099200748@qq.com> Date: Fri, 30 May 2025 16:44:46 +0800 Subject: [PATCH] Merge branch 'feature/pc-base' into xin --- oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 56 insertions(+), 0 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 new file mode 100644 index 0000000..8bdcc52 --- /dev/null +++ b/oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java @@ -0,0 +1,56 @@ +package com.oying.modules.pc.store.service; + +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.utils.PageResult; + +import java.math.BigDecimal; +import java.time.LocalTime; +import java.util.List; + +/** + * 店铺基础信息Service接口 + * + * @author lzp + * @date 2025-04-22 + */ +public interface StoreService extends IService<Store> { + + PageResult<Store> queryByPage(StoreQueryCriteria criteria); + + List<Store> queryAll(StoreQueryCriteria criteria); + + Store getMerchantStore(Long merchantId); + + boolean create(Store store); + + boolean updateLogo(Long storeId, String logo); + + boolean updateName(Long storeId, String storeName); + + boolean updateDescription(Long storeId, String description); + + boolean updateContactPhone(Long storeId, String contactPhone); + + boolean updateAddress(Long storeId, String address); + + boolean updateLocation(Long storeId, Double longitude, Double latitude); + + boolean updateRadius(Long storeId, Integer radius); + + boolean updatePlatformCategory(Long storeId, Long platformCategory); + + boolean updateBusinessHours(Long storeId, LocalTime openTime, LocalTime endTime); + + boolean updateDeliveryMinimum(Long storeId, BigDecimal deliveryMinimum); + + boolean updateDeliveryFee(Long storeId, BigDecimal deliveryFee); + + boolean updateStatus(Long storeId, Integer status); + + boolean existsByIdAndMerchantId(Long storeId, Long merchantId); +} -- Gitblit v1.9.3