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

Method SetUser

ent/share_update.go:196–198  ·  view source on GitHub ↗

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

(u *User)

Source from the content-addressed store, hash-verified

194
195// SetUser sets the "user" edge to the User entity.
196func (su *ShareUpdate) SetUser(u *User) *ShareUpdate {
197 return su.SetUserID(u.ID)
198}
199
200// SetFileID sets the "file" edge to the File entity by ID.
201func (su *ShareUpdate) SetFileID(id int) *ShareUpdate {

Callers

nothing calls this directly

Calls 1

SetUserIDMethod · 0.95

Tested by

no test coverage detected