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

Method SetWeight

ent/node_update.go:161–165  ·  view source on GitHub ↗

SetWeight sets the "weight" field.

(i int)

Source from the content-addressed store, hash-verified

159
160// SetWeight sets the "weight" field.
161func (nu *NodeUpdate) SetWeight(i int) *NodeUpdate {
162 nu.mutation.ResetWeight()
163 nu.mutation.SetWeight(i)
164 return nu
165}
166
167// SetNillableWeight sets the "weight" field if the given value is not nil.
168func (nu *NodeUpdate) SetNillableWeight(i *int) *NodeUpdate {

Callers 2

SetNillableWeightMethod · 0.95
SetWeightMethod · 0.45

Calls 1

ResetWeightMethod · 0.80

Tested by

no test coverage detected