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

Method AddGroupIDs

ent/mutation.go:13352–13359  ·  view source on GitHub ↗

AddGroupIDs adds the "groups" edge to the Group entity by ids.

(ids ...int)

Source from the content-addressed store, hash-verified

13350
13351// AddGroupIDs adds the "groups" edge to the Group entity by ids.
13352func (m *StoragePolicyMutation) AddGroupIDs(ids ...int) {
13353 if m.groups == nil {
13354 m.groups = make(map[int]struct{})
13355 }
13356 for i := range ids {
13357 m.groups[ids[i]] = struct{}{}
13358 }
13359}
13360
13361// ClearGroups clears the "groups" edge to the Group entity.
13362func (m *StoragePolicyMutation) ClearGroups() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected