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

Method AddShares

ent/user_update.go:1283–1289  ·  view source on GitHub ↗

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

(s ...*Share)

Source from the content-addressed store, hash-verified

1281
1282// AddShares adds the "shares" edges to the Share entity.
1283func (uuo *UserUpdateOne) AddShares(s ...*Share) *UserUpdateOne {
1284 ids := make([]int, len(s))
1285 for i := range s {
1286 ids[i] = s[i].ID
1287 }
1288 return uuo.AddShareIDs(ids...)
1289}
1290
1291// AddPasskeyIDs adds the "passkey" edge to the Passkey entity by IDs.
1292func (uuo *UserUpdateOne) AddPasskeyIDs(ids ...int) *UserUpdateOne {

Callers

nothing calls this directly

Calls 1

AddShareIDsMethod · 0.95

Tested by

no test coverage detected