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

Method AddFile

ent/entity_update.go:691–697  ·  view source on GitHub ↗

AddFile adds the "file" edges to the File entity.

(f ...*File)

Source from the content-addressed store, hash-verified

689
690// AddFile adds the "file" edges to the File entity.
691func (euo *EntityUpdateOne) AddFile(f ...*File) *EntityUpdateOne {
692 ids := make([]int, len(f))
693 for i := range f {
694 ids[i] = f[i].ID
695 }
696 return euo.AddFileIDs(ids...)
697}
698
699// SetUserID sets the "user" edge to the User entity by ID.
700func (euo *EntityUpdateOne) SetUserID(id int) *EntityUpdateOne {

Callers

nothing calls this directly

Calls 1

AddFileIDsMethod · 0.95

Tested by

no test coverage detected