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

Method AddPasskey

ent/user_create.go:234–240  ·  view source on GitHub ↗

AddPasskey adds the "passkey" edges to the Passkey entity.

(p ...*Passkey)

Source from the content-addressed store, hash-verified

232
233// AddPasskey adds the "passkey" edges to the Passkey entity.
234func (uc *UserCreate) AddPasskey(p ...*Passkey) *UserCreate {
235 ids := make([]int, len(p))
236 for i := range p {
237 ids[i] = p[i].ID
238 }
239 return uc.AddPasskeyIDs(ids...)
240}
241
242// AddTaskIDs adds the "tasks" edge to the Task entity by IDs.
243func (uc *UserCreate) AddTaskIDs(ids ...int) *UserCreate {

Callers

nothing calls this directly

Calls 1

AddPasskeyIDsMethod · 0.95

Tested by

no test coverage detected