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

Method SetUser

ent/share_create.go:161–163  ·  view source on GitHub ↗

SetUser sets the "user" edge to the User entity.

(u *User)

Source from the content-addressed store, hash-verified

159
160// SetUser sets the "user" edge to the User entity.
161func (sc *ShareCreate) SetUser(u *User) *ShareCreate {
162 return sc.SetUserID(u.ID)
163}
164
165// SetFileID sets the "file" edge to the File entity by ID.
166func (sc *ShareCreate) SetFileID(id int) *ShareCreate {

Callers

nothing calls this directly

Calls 1

SetUserIDMethod · 0.95

Tested by

no test coverage detected