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

Method SetGroupID

ent/user_create.go:172–175  ·  view source on GitHub ↗

SetGroupID sets the "group" edge to the Group entity by ID.

(id int)

Source from the content-addressed store, hash-verified

170
171// SetGroupID sets the "group" edge to the Group entity by ID.
172func (uc *UserCreate) SetGroupID(id int) *UserCreate {
173 uc.mutation.SetGroupID(id)
174 return uc
175}
176
177// SetGroup sets the "group" edge to the Group entity.
178func (uc *UserCreate) SetGroup(g *Group) *UserCreate {

Callers 1

SetGroupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected