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

Method SetGroup

ent/user_update.go:1242–1244  ·  view source on GitHub ↗

SetGroup sets the "group" edge to the Group entity.

(g *Group)

Source from the content-addressed store, hash-verified

1240
1241// SetGroup sets the "group" edge to the Group entity.
1242func (uuo *UserUpdateOne) SetGroup(g *Group) *UserUpdateOne {
1243 return uuo.SetGroupID(g.ID)
1244}
1245
1246// AddFileIDs adds the "files" edge to the File entity by IDs.
1247func (uuo *UserUpdateOne) AddFileIDs(ids ...int) *UserUpdateOne {

Callers

nothing calls this directly

Calls 1

SetGroupIDMethod · 0.95

Tested by

no test coverage detected