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

Method AddUsers

ent/group_create.go:138–144  ·  view source on GitHub ↗

AddUsers adds the "users" edges to the User entity.

(u ...*User)

Source from the content-addressed store, hash-verified

136
137// AddUsers adds the "users" edges to the User entity.
138func (gc *GroupCreate) AddUsers(u ...*User) *GroupCreate {
139 ids := make([]int, len(u))
140 for i := range u {
141 ids[i] = u[i].ID
142 }
143 return gc.AddUserIDs(ids...)
144}
145
146// SetStoragePoliciesID sets the "storage_policies" edge to the StoragePolicy entity by ID.
147func (gc *GroupCreate) SetStoragePoliciesID(id int) *GroupCreate {

Callers

nothing calls this directly

Calls 1

AddUserIDsMethod · 0.95

Tested by

no test coverage detected