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

Method SetFileID

ent/share_update.go:580–583  ·  view source on GitHub ↗

SetFileID sets the "file" edge to the File entity by ID.

(id int)

Source from the content-addressed store, hash-verified

578
579// SetFileID sets the "file" edge to the File entity by ID.
580func (suo *ShareUpdateOne) SetFileID(id int) *ShareUpdateOne {
581 suo.mutation.SetFileID(id)
582 return suo
583}
584
585// SetNillableFileID sets the "file" edge to the File entity by ID if the given value is not nil.
586func (suo *ShareUpdateOne) SetNillableFileID(id *int) *ShareUpdateOne {

Callers 2

SetNillableFileIDMethod · 0.95
SetFileMethod · 0.95

Calls 1

SetFileIDMethod · 0.45

Tested by

no test coverage detected