This commit is contained in:
2026-07-18 10:52:32 +08:00
parent 2dcafae465
commit b5ef58f434
61 changed files with 1274 additions and 2142 deletions

View File

@@ -102,6 +102,11 @@ func (e *LocalEngine) GetURL(storageKey string) string {
return "/storage/" + storageKey
}
// GetFullPath 获取文件在磁盘上的完整路径
func (e *LocalEngine) GetFullPath(storageKey string) string {
return filepath.Join(e.BasePath, storageKey)
}
// GenerateStorageKey 生成存储路径
func GenerateStorageKey(md5, extension string) string {
now := time.Now()