We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 957b49b commit a636f08Copy full SHA for a636f08
src/s3/config.ts
@@ -9,14 +9,6 @@ export interface FileConfig {
9
bucket: string; // 存储桶名称
10
}
11
12
-/**
13
- * 计算文件保留时间(毫秒)- 仅用于返回预计过期时间
14
- * 实际过期时间由 MinIO 存储桶生命周期策略自动管理
15
- */
16
-export function getRetentionMilliseconds(retentionDays: number): number {
17
- return retentionDays * 24 * 60 * 60 * 1000;
18
-}
19
-
20
// 默认配置(动态从环境变量读取)
21
export const defaultFileConfig: FileConfig = {
22
maxFileSize: process.env.MAX_FILE_SIZE ? parseInt(process.env.MAX_FILE_SIZE) : 20 * 1024 * 1024, // 默认 20MB
@@ -35,6 +27,5 @@ export interface FileMetadata {
35
27
contentType: string;
36
28
size: number;
37
29
uploadTime: Date;
38
- expiresAt: Date; // 预计过期时间(实际过期由 MinIO 生命周期策略管理)
39
30
accessUrl: string;
40
31
0 commit comments