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

Method SetUser

ent/share_update.go:575–577  ·  view source on GitHub ↗

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

(u *User)

Source from the content-addressed store, hash-verified

573
574// SetUser sets the "user" edge to the User entity.
575func (suo *ShareUpdateOne) SetUser(u *User) *ShareUpdateOne {
576 return suo.SetUserID(u.ID)
577}
578
579// SetFileID sets the "file" edge to the File entity by ID.
580func (suo *ShareUpdateOne) SetFileID(id int) *ShareUpdateOne {

Callers

nothing calls this directly

Calls 1

SetUserIDMethod · 0.95

Tested by

no test coverage detected