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

Method AddFiles

ent/user_update.go:234–240  ·  view source on GitHub ↗

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

(f ...*File)

Source from the content-addressed store, hash-verified

232
233// AddFiles adds the "files" edges to the File entity.
234func (uu *UserUpdate) AddFiles(f ...*File) *UserUpdate {
235 ids := make([]int, len(f))
236 for i := range f {
237 ids[i] = f[i].ID
238 }
239 return uu.AddFileIDs(ids...)
240}
241
242// AddDavAccountIDs adds the "dav_accounts" edge to the DavAccount entity by IDs.
243func (uu *UserUpdate) AddDavAccountIDs(ids ...int) *UserUpdate {

Callers

nothing calls this directly

Calls 1

AddFileIDsMethod · 0.95

Tested by

no test coverage detected