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

Method AddWeight

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

AddWeight adds i to the "weight" field.

(i int)

Source from the content-addressed store, hash-verified

541
542// AddWeight adds i to the "weight" field.
543func (nuo *NodeUpdateOne) AddWeight(i int) *NodeUpdateOne {
544 nuo.mutation.AddWeight(i)
545 return nuo
546}
547
548// AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by IDs.
549func (nuo *NodeUpdateOne) AddStoragePolicyIDs(ids ...int) *NodeUpdateOne {

Callers

nothing calls this directly

Calls 1

AddWeightMethod · 0.45

Tested by

no test coverage detected