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

Method SetGroup

ent/user_create.go:178–180  ·  view source on GitHub ↗

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

(g *Group)

Source from the content-addressed store, hash-verified

176
177// SetGroup sets the "group" edge to the Group entity.
178func (uc *UserCreate) SetGroup(g *Group) *UserCreate {
179 return uc.SetGroupID(g.ID)
180}
181
182// AddFileIDs adds the "files" edge to the File entity by IDs.
183func (uc *UserCreate) AddFileIDs(ids ...int) *UserCreate {

Callers

nothing calls this directly

Calls 1

SetGroupIDMethod · 0.95

Tested by

no test coverage detected