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

Method AddWeight

ent/node_create.go:755–759  ·  view source on GitHub ↗

AddWeight adds v to the "weight" field.

(v int)

Source from the content-addressed store, hash-verified

753
754// AddWeight adds v to the "weight" field.
755func (u *NodeUpsertOne) AddWeight(v int) *NodeUpsertOne {
756 return u.Update(func(s *NodeUpsert) {
757 s.AddWeight(v)
758 })
759}
760
761// UpdateWeight sets the "weight" field to the value that was provided on create.
762func (u *NodeUpsertOne) UpdateWeight() *NodeUpsertOne {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected