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

Method SetFileID

ent/share_create.go:166–169  ·  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

164
165// SetFileID sets the "file" edge to the File entity by ID.
166func (sc *ShareCreate) SetFileID(id int) *ShareCreate {
167 sc.mutation.SetFileID(id)
168 return sc
169}
170
171// SetNillableFileID sets the "file" edge to the File entity by ID if the given value is not nil.
172func (sc *ShareCreate) SetNillableFileID(id *int) *ShareCreate {

Callers 2

SetNillableFileIDMethod · 0.95
SetFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected