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

Method SetFile

ent/share_update.go:594–596  ·  view source on GitHub ↗

SetFile sets the "file" edge to the File entity.

(f *File)

Source from the content-addressed store, hash-verified

592
593// SetFile sets the "file" edge to the File entity.
594func (suo *ShareUpdateOne) SetFile(f *File) *ShareUpdateOne {
595 return suo.SetFileID(f.ID)
596}
597
598// Mutation returns the ShareMutation object of the builder.
599func (suo *ShareUpdateOne) Mutation() *ShareMutation {

Callers

nothing calls this directly

Calls 1

SetFileIDMethod · 0.95

Tested by

no test coverage detected