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

Method RemoveFileIDs

ent/mutation.go:15780–15788  ·  view source on GitHub ↗

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

(ids ...int)

Source from the content-addressed store, hash-verified

15778
15779// RemoveFileIDs removes the "files" edge to the File entity by IDs.
15780func (m *UserMutation) RemoveFileIDs(ids ...int) {
15781 if m.removedfiles == nil {
15782 m.removedfiles = make(map[int]struct{})
15783 }
15784 for i := range ids {
15785 delete(m.files, ids[i])
15786 m.removedfiles[ids[i]] = struct{}{}
15787 }
15788}
15789
15790// RemovedFiles returns the removed IDs of the "files" edge to the File entity.
15791func (m *UserMutation) RemovedFilesIDs() (ids []int) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected