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

Method AddDirectLinkIDs

ent/file_create.go:258–261  ·  view source on GitHub ↗

AddDirectLinkIDs adds the "direct_links" edge to the DirectLink entity by IDs.

(ids ...int)

Source from the content-addressed store, hash-verified

256
257// AddDirectLinkIDs adds the "direct_links" edge to the DirectLink entity by IDs.
258func (fc *FileCreate) AddDirectLinkIDs(ids ...int) *FileCreate {
259 fc.mutation.AddDirectLinkIDs(ids...)
260 return fc
261}
262
263// AddDirectLinks adds the "direct_links" edges to the DirectLink entity.
264func (fc *FileCreate) AddDirectLinks(d ...*DirectLink) *FileCreate {

Callers 1

AddDirectLinksMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected