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

Method SetWeight

ent/node_create.go:129–132  ·  view source on GitHub ↗

SetWeight sets the "weight" field.

(i int)

Source from the content-addressed store, hash-verified

127
128// SetWeight sets the "weight" field.
129func (nc *NodeCreate) SetWeight(i int) *NodeCreate {
130 nc.mutation.SetWeight(i)
131 return nc
132}
133
134// SetNillableWeight sets the "weight" field if the given value is not nil.
135func (nc *NodeCreate) SetNillableWeight(i *int) *NodeCreate {

Callers 2

SetNillableWeightMethod · 0.95
defaultsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected