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

Method RemoveGroupIDs

ent/mutation.go:13372–13380  ·  view source on GitHub ↗

RemoveGroupIDs removes the "groups" edge to the Group entity by IDs.

(ids ...int)

Source from the content-addressed store, hash-verified

13370
13371// RemoveGroupIDs removes the "groups" edge to the Group entity by IDs.
13372func (m *StoragePolicyMutation) RemoveGroupIDs(ids ...int) {
13373 if m.removedgroups == nil {
13374 m.removedgroups = make(map[int]struct{})
13375 }
13376 for i := range ids {
13377 delete(m.groups, ids[i])
13378 m.removedgroups[ids[i]] = struct{}{}
13379 }
13380}
13381
13382// RemovedGroups returns the removed IDs of the "groups" edge to the Group entity.
13383func (m *StoragePolicyMutation) RemovedGroupsIDs() (ids []int) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected