소스 검색

将 UploadChannelService#getStoreNode 方法名字修改为 getStoreNodeByChannelId

reghao 2 년 전
부모
커밋
0d0ceb6afe

+ 1 - 1
oss-console/src/main/java/cn/reghao/oss/console/app/rpc/ImageService.java

@@ -36,7 +36,7 @@ public class ImageService {
     }
 
     private ImageFileService getImageFileService(int channelId) throws Exception {
-        StoreNode storeNode = uploadChannelService.getStoreNode(channelId);
+        StoreNode storeNode = uploadChannelService.getStoreNodeByChannelId(channelId);
         if (storeNode == null) {
             String errMsg = String.format("channel_id %s not associate with any store_node", channelId);
             throw new Exception(errMsg);

+ 1 - 1
oss-console/src/main/java/cn/reghao/oss/console/app/rpc/OssObjectService.java

@@ -63,7 +63,7 @@ public class OssObjectService {
     }
 
     private ObjectService getObjectService(int channelId) throws Exception {
-        StoreNode storeNode = uploadChannelService.getStoreNode(channelId);
+        StoreNode storeNode = uploadChannelService.getStoreNodeByChannelId(channelId);
         if (storeNode == null) {
             String errMsg = String.format("channel_id %s not associate with any store_node", channelId);
             throw new Exception(errMsg);

+ 1 - 1
oss-console/src/main/java/cn/reghao/oss/console/app/rpc/OssService.java

@@ -32,7 +32,7 @@ public class OssService {
         String ossUrl = String.format("https://%s", domain);
         long maxSize = uploadChannel.getMaxSize();
 
-        StoreNode storeNode = uploadChannelService.getStoreNode(channelId);
+        StoreNode storeNode = uploadChannelService.getStoreNodeByChannelId(channelId);
         if (storeNode == null) {
             String errMsg = String.format("channel_id %s not associate with any store_node", channelId);
             throw new Exception(errMsg);

+ 1 - 1
oss-console/src/main/java/cn/reghao/oss/console/app/rpc/VideoService.java

@@ -54,7 +54,7 @@ public class VideoService {
     }
 
     private VideoFileService getVideoFileService(int channelId) throws Exception {
-        StoreNode storeNode = uploadChannelService.getStoreNode(channelId);
+        StoreNode storeNode = uploadChannelService.getStoreNodeByChannelId(channelId);
         if (storeNode == null) {
             String errMsg = String.format("channel_id %s not associate with any store_node", channelId);
             throw new Exception(errMsg);

+ 1 - 1
oss-console/src/main/java/cn/reghao/oss/console/app/service/UploadChannelService.java

@@ -122,7 +122,7 @@ public class UploadChannelService {
         return uploadChannelRepository.findByChannelIdAndCreateBy(channelId, createBy);
     }
 
-    public StoreNode getStoreNode(int channelId) throws Exception {
+    public StoreNode getStoreNodeByChannelId(int channelId) throws Exception {
         int userId = AuthKeyContext.getUser();
         UploadChannel uploadChannel = uploadChannelRepository.findByChannelIdAndCreateBy(channelId, userId);
         if (uploadChannel == null) {