MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / AddFiles

Method AddFiles

ent/user_update.go:1253–1259  ·  view source on GitHub ↗

AddFiles adds the "files" edges to the File entity.

(f ...*File)

Source from the content-addressed store, hash-verified

1251
1252// AddFiles adds the "files" edges to the File entity.
1253func (uuo *UserUpdateOne) AddFiles(f ...*File) *UserUpdateOne {
1254 ids := make([]int, len(f))
1255 for i := range f {
1256 ids[i] = f[i].ID
1257 }
1258 return uuo.AddFileIDs(ids...)
1259}
1260
1261// AddDavAccountIDs adds the "dav_accounts" edge to the DavAccount entity by IDs.
1262func (uuo *UserUpdateOne) AddDavAccountIDs(ids ...int) *UserUpdateOne {

Callers

nothing calls this directly

Calls 1

AddFileIDsMethod · 0.95

Tested by

no test coverage detected