| | |
| | | |
| | | 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.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; |
| | | import java.util.Set; |
| | | |
| | | /** |
| | | * 店铺基础信息Service接口 |
| | |
| | | |
| | | List<Store> queryAll(StoreQueryCriteria criteria); |
| | | |
| | | List<Long> queryStoreIds(StoreQueryCriteria criteria); |
| | | |
| | | Store getMerchantStore(Long merchantId); |
| | | |
| | | boolean create(Store store); |
| | | List<Store> getStoresByIds(Set<Long> ids); |
| | | |
| | | boolean updateLogo(Long storeId, String logo); |
| | | List<Store> getUserStores(Long userId); |
| | | |
| | | boolean updateName(Long storeId, String storeName); |
| | | Store getOrThrow(Long storeId, Long version); |
| | | |
| | | boolean updateDescription(Long storeId, String description); |
| | | void create(Store resources); |
| | | |
| | | boolean updateContactPhone(Long storeId, String contactPhone); |
| | | Store create(StoreCreateRequest request); |
| | | |
| | | boolean updateAddress(Long storeId, String address); |
| | | boolean update(Store resources, boolean isDirectUpdate); |
| | | |
| | | boolean updateLocation(Long storeId, Double longitude, Double latitude); |
| | | boolean update(StoreUpdateRequest request); |
| | | |
| | | boolean updateRadius(Long storeId, Integer radius); |
| | | boolean updateLogo(Long storeId, Long logoImageId, Long version); |
| | | |
| | | boolean updatePlatformCategory(Long storeId, Long platformCategory); |
| | | boolean updateName(Long storeId, String storeName, Long version); |
| | | |
| | | boolean updateBusinessHours(Long storeId, LocalTime openTime, LocalTime endTime); |
| | | boolean updateDescription(Long storeId, String description, Long version); |
| | | |
| | | boolean updateDeliveryMinimum(Long storeId, BigDecimal deliveryMinimum); |
| | | boolean updateContactPhone(Long storeId, String contactPhone, Long version); |
| | | |
| | | boolean updateDeliveryFee(Long storeId, BigDecimal deliveryFee); |
| | | boolean updateAddress(Long storeId, String address, Long version); |
| | | |
| | | boolean updateStatus(Long storeId, Integer status); |
| | | 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); |
| | | |
| | | boolean bindUser(Long store); |
| | | } |