feat(sis):

- 图像库图片改为通过ossId获取
- SisPersonLibImg 字段 imgUrl 更改为 imgOssId,类型同步更改
- 移除SisDeviceManage 中的 accessControlId 字段
This commit is contained in:
2025-07-01 17:10:04 +08:00
parent d2638de4e4
commit 9a1a87800f
16 changed files with 116 additions and 30 deletions

View File

@@ -1,8 +1,10 @@
package org.dromara.resource.api;
import jakarta.servlet.http.HttpServletResponse;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.resource.api.domain.RemoteFile;
import java.io.IOException;
import java.util.List;
/**
@@ -35,4 +37,12 @@ public interface RemoteFileService {
* @return 列表
*/
List<RemoteFile> selectByIds(String ossIds);
/**
* 文件下载方法,支持一次性下载完整文件
*
* @param ossId OSS对象ID
* @return byte[] 返回下载的字节数组
*/
byte[] downloadToByteArray(Long ossId) throws IOException;
}

View File

@@ -1,9 +1,11 @@
package org.dromara.resource.api;
import jakarta.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.resource.api.domain.RemoteFile;
import java.io.IOException;
import java.util.List;
/**
@@ -50,4 +52,14 @@ public class RemoteFileServiceMock implements RemoteFileService {
return List.of();
}
/**
* 文件下载方法,支持一次性下载完整文件
*
* @param ossId OSS对象ID
* @return byte[] 返回下载的字节数组
*/
public byte[] downloadToByteArray(Long ossId) throws IOException {
log.warn("服务调用异常 -> 降级处理");
return new byte[0];
}
}