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

Method AddWeight

ent/node_create.go:543–546  ·  view source on GitHub ↗

AddWeight adds v to the "weight" field.

(v int)

Source from the content-addressed store, hash-verified

541
542// AddWeight adds v to the "weight" field.
543func (u *NodeUpsert) AddWeight(v int) *NodeUpsert {
544 u.Add(node.FieldWeight, v)
545 return u
546}
547
548// UpdateNewValues updates the mutable fields using the new values that were set on create.
549// Using this option is equivalent to using:

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected