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

Method AddShares

ent/user_update.go:264–270  ·  view source on GitHub ↗

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

(s ...*Share)

Source from the content-addressed store, hash-verified

262
263// AddShares adds the "shares" edges to the Share entity.
264func (uu *UserUpdate) AddShares(s ...*Share) *UserUpdate {
265 ids := make([]int, len(s))
266 for i := range s {
267 ids[i] = s[i].ID
268 }
269 return uu.AddShareIDs(ids...)
270}
271
272// AddPasskeyIDs adds the "passkey" edge to the Passkey entity by IDs.
273func (uu *UserUpdate) AddPasskeyIDs(ids ...int) *UserUpdate {

Callers

nothing calls this directly

Calls 1

AddShareIDsMethod · 0.95

Tested by

no test coverage detected