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

Method AddStoragePolicyIDs

ent/node_create.go:143–146  ·  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

141
142// AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by IDs.
143func (nc *NodeCreate) AddStoragePolicyIDs(ids ...int) *NodeCreate {
144 nc.mutation.AddStoragePolicyIDs(ids...)
145 return nc
146}
147
148// AddStoragePolicy adds the "storage_policy" edges to the StoragePolicy entity.
149func (nc *NodeCreate) AddStoragePolicy(s ...*StoragePolicy) *NodeCreate {

Callers 1

AddStoragePolicyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected