feat(google_drive): add hash_info, ctime, thumbnail (#5334)

This commit is contained in:
foxxorcat
2023-10-06 16:04:39 +08:00
committed by GitHub
parent a008f54f4d
commit 1a283bb272
3 changed files with 22 additions and 3 deletions

View File

@ -184,6 +184,10 @@ type HashInfo struct {
h map[*HashType]string `json:"hashInfo"`
}
func NewHashInfoByMap(h map[*HashType]string) HashInfo {
return HashInfo{h}
}
func NewHashInfo(ht *HashType, str string) HashInfo {
m := make(map[*HashType]string)
if ht != nil {