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

Method AddedIDs

ent/mutation.go:12433–12445  ·  view source on GitHub ↗

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

(name string)

Source from the content-addressed store, hash-verified

12431// AddedIDs returns all IDs (to other nodes) that were added for the given edge
12432// name in this mutation.
12433func (m *ShareMutation) AddedIDs(name string) []ent.Value {
12434 switch name {
12435 case share.EdgeUser:
12436 if id := m.user; id != nil {
12437 return []ent.Value{*id}
12438 }
12439 case share.EdgeFile:
12440 if id := m.file; id != nil {
12441 return []ent.Value{*id}
12442 }
12443 }
12444 return nil
12445}
12446
12447// RemovedEdges returns all edge names that were removed in this mutation.
12448func (m *ShareMutation) RemovedEdges() []string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected