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

Method AddShares

ent/file_create.go:249–255  ·  view source on GitHub ↗

AddShares adds the "shares" edges to the Share entity.

(s ...*Share)

Source from the content-addressed store, hash-verified

247
248// AddShares adds the "shares" edges to the Share entity.
249func (fc *FileCreate) AddShares(s ...*Share) *FileCreate {
250 ids := make([]int, len(s))
251 for i := range s {
252 ids[i] = s[i].ID
253 }
254 return fc.AddShareIDs(ids...)
255}
256
257// AddDirectLinkIDs adds the "direct_links" edge to the DirectLink entity by IDs.
258func (fc *FileCreate) AddDirectLinkIDs(ids ...int) *FileCreate {

Callers

nothing calls this directly

Calls 1

AddShareIDsMethod · 0.95

Tested by

no test coverage detected