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

Method AddStoragePolicyIDs

ent/node_update.go:549–552  ·  view source on GitHub ↗

AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by IDs.

(ids ...int)

Source from the content-addressed store, hash-verified

547
548// AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by IDs.
549func (nuo *NodeUpdateOne) AddStoragePolicyIDs(ids ...int) *NodeUpdateOne {
550 nuo.mutation.AddStoragePolicyIDs(ids...)
551 return nuo
552}
553
554// AddStoragePolicy adds the "storage_policy" edges to the StoragePolicy entity.
555func (nuo *NodeUpdateOne) AddStoragePolicy(s ...*StoragePolicy) *NodeUpdateOne {

Callers 1

AddStoragePolicyMethod · 0.95

Calls 1

AddStoragePolicyIDsMethod · 0.45

Tested by

no test coverage detected