Pārlūkot izejas kodu

更新 StoreServiceWrapper 接口

reghao 1 gadu atpakaļ
vecāks
revīzija
37a1f25735

+ 2 - 0
oss-api/src/main/java/cn/reghao/oss/api/iface/StoreServiceWrapper.java

@@ -15,6 +15,8 @@ import cn.reghao.oss.api.dto.media.VideoInfo;
  * @date 2024-04-23 15:14:06
  */
 public interface StoreServiceWrapper {
+    int getChannelScope(int channelId);
+
     void createChannel(int channelId, String channelPrefix);
     StoreInfo getStoreInfo(int channelId);
 

+ 6 - 1
oss-console/src/main/java/cn/reghao/oss/console/store/rpc/StoreServiceWrapperImpl.java

@@ -28,7 +28,12 @@ public class StoreServiceWrapperImpl implements StoreServiceWrapper {
     public StoreServiceWrapperImpl(UploadChannelService uploadChannelService) {
         this.uploadChannelService = uploadChannelService;
     }
-    
+
+    @Override
+    public int getChannelScope(int channelId) {
+        return -1;
+    }
+
     private StoreService getStoreService(int channelId) throws Exception {
         int loginUser = 1;
         StoreNode storeNode = uploadChannelService.getStoreNodeByChannelId(loginUser, channelId);