Add fingerprint resolver (#4287)

* Refactor into internal/api/models.go
* Add file fingerprint resolver
This commit is contained in:
DingDongSoLong4
2023-11-20 04:09:12 +02:00
committed by GitHub
parent a0f33e3dab
commit 049a1b15c3
8 changed files with 118 additions and 38 deletions

View File

@@ -133,10 +133,6 @@ type BaseFile struct {
UpdatedAt time.Time `json:"updated_at"`
}
func (f *BaseFile) FingerprintSlice() []Fingerprint {
return f.Fingerprints
}
// SetFingerprints sets the fingerprints of the file.
// If a fingerprint of the same type already exists, it is overwritten.
func (f *BaseFile) SetFingerprints(fp Fingerprints) {