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

Method FileIDs

ent/mutation.go:1359–1364  ·  view source on GitHub ↗

FileIDs returns the "file" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use FileID instead. It exists only for internal usage by the builders.

()

Source from the content-addressed store, hash-verified

1357// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use
1358// FileID instead. It exists only for internal usage by the builders.
1359func (m *DirectLinkMutation) FileIDs() (ids []int) {
1360 if id := m.file; id != nil {
1361 ids = append(ids, *id)
1362 }
1363 return
1364}
1365
1366// ResetFile resets all changes to the "file" edge.
1367func (m *DirectLinkMutation) ResetFile() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected