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

Method SetWeight

ent/node_create.go:748–752  ·  view source on GitHub ↗

SetWeight sets the "weight" field.

(v int)

Source from the content-addressed store, hash-verified

746
747// SetWeight sets the "weight" field.
748func (u *NodeUpsertOne) SetWeight(v int) *NodeUpsertOne {
749 return u.Update(func(s *NodeUpsert) {
750 s.SetWeight(v)
751 })
752}
753
754// AddWeight adds v to the "weight" field.
755func (u *NodeUpsertOne) AddWeight(v int) *NodeUpsertOne {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected