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

Method AddFiles

ent/user_create.go:189–195  ·  view source on GitHub ↗

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

(f ...*File)

Source from the content-addressed store, hash-verified

187
188// AddFiles adds the "files" edges to the File entity.
189func (uc *UserCreate) AddFiles(f ...*File) *UserCreate {
190 ids := make([]int, len(f))
191 for i := range f {
192 ids[i] = f[i].ID
193 }
194 return uc.AddFileIDs(ids...)
195}
196
197// AddDavAccountIDs adds the "dav_accounts" edge to the DavAccount entity by IDs.
198func (uc *UserCreate) AddDavAccountIDs(ids ...int) *UserCreate {

Callers

nothing calls this directly

Calls 1

AddFileIDsMethod · 0.95

Tested by

no test coverage detected