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.dto.StoreCreateRequest; import com.oying.modules.pc.store.domain.dto.StoreQueryCriteria; import com.oying.modules.pc.store.domain.dto.StoreUpdateRequest; 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 { PageResult queryByPage(StoreQueryCriteria criteria); List queryAll(StoreQueryCriteria criteria); Store getMerchantStore(Long merchantId); List queryUserStores(Long userId); Store create(StoreCreateRequest request); boolean update(StoreUpdateRequest request); boolean updateLogo(Long storeId, String logo, Long version); boolean updateName(Long storeId, String storeName, Long version); boolean updateDescription(Long storeId, String description, Long version); boolean updateContactPhone(Long storeId, String contactPhone, Long version); boolean updateAddress(Long storeId, String address, Long version); boolean updateLocation(Long storeId, Double longitude, Double latitude, Long version); boolean updateRadius(Long storeId, Integer radius, Long version); boolean updatePlatformCategory(Long storeId, Long platformCategory, Long version); boolean updateBusinessHours(Long storeId, LocalTime openTime, LocalTime endTime, Long version); 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); boolean existsStoreName(String storeName); }