26 lines
784 B
TypeScript
26 lines
784 B
TypeScript
/**
|
||
* 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管理后台不使用外部存储服务。如需此功能,请配置自建存储服务。"
|
||
);
|
||
}
|