From 0b37408e5f92f2c7f1dee8f4eb121db92a4edaa4 Mon Sep 17 00:00:00 2001
From: zepengdev <lzpsmith@outlook.com>
Date: Wed, 17 Sep 2025 19:39:30 +0800
Subject: [PATCH] fix: 调整店铺用户角色

---
 oying-system/src/main/java/com/oying/modules/pc/store/service/StoreService.java |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 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 f1c3e56..901a842 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
@@ -10,6 +10,7 @@
 import java.math.BigDecimal;
 import java.time.LocalTime;
 import java.util.List;
+import java.util.Set;
 
 /**
  * 店铺基础信息Service接口
@@ -23,15 +24,25 @@
 
     List<Store> queryAll(StoreQueryCriteria criteria);
 
+    List<Long> queryStoreIds(StoreQueryCriteria criteria);
+
     Store getMerchantStore(Long merchantId);
 
-    List<Store> queryUserStores(Long userId);
+    List<Store> getStoresByIds(Set<Long> ids);
+
+    List<Store> getUserStores(Long userId);
+
+    Store getOrThrow(Long storeId, Long version);
+
+    void create(Store resources);
 
     Store create(StoreCreateRequest request);
 
+    boolean update(Store resources, boolean isDirectUpdate);
+
     boolean update(StoreUpdateRequest request);
 
-    boolean updateLogo(Long storeId, String logo, Long version);
+    boolean updateLogo(Long storeId, Long logoImageId, Long version);
 
     boolean updateName(Long storeId, String storeName, Long version);
 
@@ -39,7 +50,7 @@
 
     boolean updateContactPhone(Long storeId, String contactPhone, Long version);
 
-    boolean updateAddress(Long storeId, String address, Long version);
+    boolean updateAddress(Long storeId, String address, Double longitude, Double latitude, Long version);
 
     boolean updateLocation(Long storeId, Double longitude, Double latitude, Long version);
 
@@ -53,9 +64,13 @@
 
     boolean updateDeliveryFee(Long storeId, BigDecimal deliveryFee, Long version);
 
+    boolean updatePackagingFee(Long storeId, BigDecimal packagingFee, Long version);
+
     boolean updateStatus(Long storeId, Integer status, Long version);
 
     boolean existsByIdAndMerchantId(Long storeId, Long merchantId);
 
     boolean existsStoreName(String storeName);
+
+    boolean bindUser(Long store);
 }

--
Gitblit v1.9.3