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

Method SetUserID

ent/mutation.go:12003–12005  ·  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

12001
12002// SetUserID sets the "user" edge to the User entity by id.
12003func (m *ShareMutation) SetUserID(id int) {
12004 m.user = &id
12005}
12006
12007// ClearUser clears the "user" edge to the User entity.
12008func (m *ShareMutation) ClearUser() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected