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

Method SetWeight

ent/node_update.go:528–532  ·  view source on GitHub ↗

SetWeight sets the "weight" field.

(i int)

Source from the content-addressed store, hash-verified

526
527// SetWeight sets the "weight" field.
528func (nuo *NodeUpdateOne) SetWeight(i int) *NodeUpdateOne {
529 nuo.mutation.ResetWeight()
530 nuo.mutation.SetWeight(i)
531 return nuo
532}
533
534// SetNillableWeight sets the "weight" field if the given value is not nil.
535func (nuo *NodeUpdateOne) SetNillableWeight(i *int) *NodeUpdateOne {

Callers 1

SetNillableWeightMethod · 0.95

Calls 2

ResetWeightMethod · 0.80
SetWeightMethod · 0.45

Tested by

no test coverage detected