From 61a8ed515ff363aaa5fa223ccf70a08be5991849 Mon Sep 17 00:00:00 2001 From: KirCute <951206789@qq.com> Date: Sun, 14 Sep 2025 21:36:54 +0800 Subject: [PATCH] fix(123): add get and list hash info (#1278) --- drivers/123/types.go | 2 +- drivers/123_share/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/123/types.go b/drivers/123/types.go index 15e05a15..7e5967d8 100644 --- a/drivers/123/types.go +++ b/drivers/123/types.go @@ -28,7 +28,7 @@ func (f File) CreateTime() time.Time { } func (f File) GetHash() utils.HashInfo { - return utils.HashInfo{} + return utils.NewHashInfo(utils.MD5, f.Etag) } func (f File) GetPath() string { diff --git a/drivers/123_share/types.go b/drivers/123_share/types.go index 6062e846..3919c5fa 100644 --- a/drivers/123_share/types.go +++ b/drivers/123_share/types.go @@ -24,7 +24,7 @@ type File struct { } func (f File) GetHash() utils.HashInfo { - return utils.HashInfo{} + return utils.NewHashInfo(utils.MD5, f.Etag) } func (f File) GetPath() string {