MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / FileIDs

Method FileIDs

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

12065// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use
12066// FileID instead. It exists only for internal usage by the builders.
12067func (m *ShareMutation) FileIDs() (ids []int) {
12068 if id := m.file; id != nil {
12069 ids = append(ids, *id)
12070 }
12071 return
12072}
12073
12074// ResetFile resets all changes to the "file" edge.
12075func (m *ShareMutation) ResetFile() {

Callers 12

sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
createSpecMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
createSpecMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
createSpecMethod · 0.45
createSpecMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected