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

Method AddShares

ent/user_create.go:219–225  ·  view source on GitHub ↗

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

(s ...*Share)

Source from the content-addressed store, hash-verified

217
218// AddShares adds the "shares" edges to the Share entity.
219func (uc *UserCreate) AddShares(s ...*Share) *UserCreate {
220 ids := make([]int, len(s))
221 for i := range s {
222 ids[i] = s[i].ID
223 }
224 return uc.AddShareIDs(ids...)
225}
226
227// AddPasskeyIDs adds the "passkey" edge to the Passkey entity by IDs.
228func (uc *UserCreate) AddPasskeyIDs(ids ...int) *UserCreate {

Callers

nothing calls this directly

Calls 1

AddShareIDsMethod · 0.95

Tested by

no test coverage detected