MCPcopy
hub / github.com/cloudreve/cloudreve / SetFileID

Method SetFileID

ent/mutation.go:12042–12044  ·  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

12040
12041// SetFileID sets the "file" edge to the File entity by id.
12042func (m *ShareMutation) SetFileID(id int) {
12043 m.file = &id
12044}
12045
12046// ClearFile clears the "file" edge to the File entity.
12047func (m *ShareMutation) ClearFile() {

Callers 4

migrateShareMethod · 0.45
migrateDirectLinkMethod · 0.45
CreateDirectLinkMethod · 0.45
UpsertMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected