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

Method AddWeight

ent/node_update.go:176–179  ·  view source on GitHub ↗

AddWeight adds i to the "weight" field.

(i int)

Source from the content-addressed store, hash-verified

174
175// AddWeight adds i to the "weight" field.
176func (nu *NodeUpdate) AddWeight(i int) *NodeUpdate {
177 nu.mutation.AddWeight(i)
178 return nu
179}
180
181// AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by IDs.
182func (nu *NodeUpdate) AddStoragePolicyIDs(ids ...int) *NodeUpdate {

Callers 1

AddWeightMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected