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

Method AddPasskeyIDs

ent/mutation.go:15922–15929  ·  view source on GitHub ↗

AddPasskeyIDs adds the "passkey" edge to the Passkey entity by ids.

(ids ...int)

Source from the content-addressed store, hash-verified

15920
15921// AddPasskeyIDs adds the "passkey" edge to the Passkey entity by ids.
15922func (m *UserMutation) AddPasskeyIDs(ids ...int) {
15923 if m.passkey == nil {
15924 m.passkey = make(map[int]struct{})
15925 }
15926 for i := range ids {
15927 m.passkey[ids[i]] = struct{}{}
15928 }
15929}
15930
15931// ClearPasskey clears the "passkey" edge to the Passkey entity.
15932func (m *UserMutation) ClearPasskey() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected