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

Method SetUserID

ent/share_create.go:147–150  ·  view source on GitHub ↗

SetUserID sets the "user" edge to the User entity by ID.

(id int)

Source from the content-addressed store, hash-verified

145
146// SetUserID sets the "user" edge to the User entity by ID.
147func (sc *ShareCreate) SetUserID(id int) *ShareCreate {
148 sc.mutation.SetUserID(id)
149 return sc
150}
151
152// SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.
153func (sc *ShareCreate) SetNillableUserID(id *int) *ShareCreate {

Callers 2

SetNillableUserIDMethod · 0.95
SetUserMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected