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

Method SetUser

ent/share.go:281–284  ·  view source on GitHub ↗

SetUser manually set the edge as loaded state.

(v *User)

Source from the content-addressed store, hash-verified

279
280// SetUser manually set the edge as loaded state.
281func (e *Share) SetUser(v *User) {
282 e.Edges.User = v
283 e.Edges.loadedTypes[0] = true
284}
285
286// SetFile manually set the edge as loaded state.
287func (e *Share) SetFile(v *File) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected