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

Method RemoveStoragePolicyIDs

ent/mutation.go:7739–7747  ·  view source on GitHub ↗

RemoveStoragePolicyIDs removes the "storage_policy" edge to the StoragePolicy entity by IDs.

(ids ...int)

Source from the content-addressed store, hash-verified

7737
7738// RemoveStoragePolicyIDs removes the "storage_policy" edge to the StoragePolicy entity by IDs.
7739func (m *NodeMutation) RemoveStoragePolicyIDs(ids ...int) {
7740 if m.removedstorage_policy == nil {
7741 m.removedstorage_policy = make(map[int]struct{})
7742 }
7743 for i := range ids {
7744 delete(m.storage_policy, ids[i])
7745 m.removedstorage_policy[ids[i]] = struct{}{}
7746 }
7747}
7748
7749// RemovedStoragePolicy returns the removed IDs of the "storage_policy" edge to the StoragePolicy entity.
7750func (m *NodeMutation) RemovedStoragePolicyIDs() (ids []int) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected