|
|
@@ -2,11 +2,14 @@ package cn.reghao.dfs.store.rpc;
|
|
|
|
|
|
import cn.reghao.dfs.store.db.mapper.ImageFileMapper;
|
|
|
import cn.reghao.dfs.store.db.mapper.VideoFileMapper;
|
|
|
+import cn.reghao.oss.api.dto.ImageUrl;
|
|
|
import cn.reghao.oss.api.dto.VideoInfo;
|
|
|
import cn.reghao.oss.api.iface.MediaService;
|
|
|
import org.apache.dubbo.config.annotation.DubboService;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* @author reghao
|
|
|
* @date 2023-06-10 16:33:09
|
|
|
@@ -26,4 +29,9 @@ public class MediaServiceImpl implements MediaService {
|
|
|
public VideoInfo getVideoInfo(String videoFileId) {
|
|
|
return videoFileMapper.findVideoInfo(videoFileId);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<ImageUrl> getImageUrls(List<String> imageFileIds) {
|
|
|
+ return imageFileMapper.findImageUrls(imageFileIds);
|
|
|
+ }
|
|
|
}
|