added apis and optimized table structures

This commit is contained in:
2025-02-22 23:38:36 +08:00
parent db4c59f6f6
commit 737a367677
49 changed files with 1753 additions and 1377 deletions

View File

@@ -131,9 +131,11 @@ func (a *AliOSS) GetBucketStat(ctx context.Context, bucketName string) (*BucketS
return nil, fmt.Errorf("failed to get bucket stat, error: %v", err)
}
return &BucketStat{
Storage: result.Storage,
ObjectCount: result.ObjectCount,
LastModified: result.LastModifiedTime,
Storage: result.Storage,
ObjectCount: result.ObjectCount,
LastModified: result.LastModifiedTime,
StandardStorage: result.StandardStorage,
StandardObjectCount: result.StandardObjectCount,
}, nil
}

View File

@@ -19,9 +19,11 @@ type BucketProperties struct {
// 通用存储桶统计信息
type BucketStat struct {
Storage int64
ObjectCount int64
LastModified int64
Storage int64
ObjectCount int64
LastModified int64
StandardStorage int64
StandardObjectCount int64
}
// 通用存储桶信息