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

Method AddPasskey

ent/user_update.go:1298–1304  ·  view source on GitHub ↗

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

(p ...*Passkey)

Source from the content-addressed store, hash-verified

1296
1297// AddPasskey adds the "passkey" edges to the Passkey entity.
1298func (uuo *UserUpdateOne) AddPasskey(p ...*Passkey) *UserUpdateOne {
1299 ids := make([]int, len(p))
1300 for i := range p {
1301 ids[i] = p[i].ID
1302 }
1303 return uuo.AddPasskeyIDs(ids...)
1304}
1305
1306// AddTaskIDs adds the "tasks" edge to the Task entity by IDs.
1307func (uuo *UserUpdateOne) AddTaskIDs(ids ...int) *UserUpdateOne {

Callers

nothing calls this directly

Calls 1

AddPasskeyIDsMethod · 0.95

Tested by

no test coverage detected