NAC_Blockchain/services/nac-admin/server/storage.ts

26 lines
784 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* NAC文件存储模块
*
* NAC管理后台不使用外部云存储服务。
* 此模块保留接口定义以维持代码兼容性,
* 如需存储功能,请配置 NAC_STORAGE_URL 环境变量指向自建存储服务。
*/
export async function storagePut(
_relKey: string,
_data: Buffer | Uint8Array | string,
_contentType = "application/octet-stream"
): Promise<{ key: string; url: string }> {
throw new Error(
"[Storage] NAC管理后台不使用外部存储服务。如需此功能请配置自建存储服务。"
);
}
export async function storageGet(
_relKey: string
): Promise<{ key: string; url: string }> {
throw new Error(
"[Storage] NAC管理后台不使用外部存储服务。如需此功能请配置自建存储服务。"
);
}