feat(189pc): add family transfer upload (#6288)

* feat(189pc): add family transfer upload

* fix(189):family transfer file delete
This commit is contained in:
foxxorcat
2024-04-02 16:51:02 +08:00
committed by GitHub
parent 2880ed70ce
commit d8e190406a
6 changed files with 406 additions and 138 deletions

View File

@ -192,3 +192,19 @@ func partSize(size int64) int64 {
}
return DEFAULT
}
func isBool(bs ...bool) bool {
for _, b := range bs {
if b {
return true
}
}
return false
}
func IF[V any](o bool, t V, f V) V {
if o {
return t
}
return f
}