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

Method RemoveFileIDs

ent/mutation.go:2373–2381  ·  view source on GitHub ↗

RemoveFileIDs removes the "file" edge to the File entity by IDs.

(ids ...int)

Source from the content-addressed store, hash-verified

2371
2372// RemoveFileIDs removes the "file" edge to the File entity by IDs.
2373func (m *EntityMutation) RemoveFileIDs(ids ...int) {
2374 if m.removedfile == nil {
2375 m.removedfile = make(map[int]struct{})
2376 }
2377 for i := range ids {
2378 delete(m.file, ids[i])
2379 m.removedfile[ids[i]] = struct{}{}
2380 }
2381}
2382
2383// RemovedFile returns the removed IDs of the "file" edge to the File entity.
2384func (m *EntityMutation) RemovedFileIDs() (ids []int) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected