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

Method RemoveDavAccountIDs

ent/mutation.go:15834–15842  ·  view source on GitHub ↗

RemoveDavAccountIDs removes the "dav_accounts" edge to the DavAccount entity by IDs.

(ids ...int)

Source from the content-addressed store, hash-verified

15832
15833// RemoveDavAccountIDs removes the "dav_accounts" edge to the DavAccount entity by IDs.
15834func (m *UserMutation) RemoveDavAccountIDs(ids ...int) {
15835 if m.removeddav_accounts == nil {
15836 m.removeddav_accounts = make(map[int]struct{})
15837 }
15838 for i := range ids {
15839 delete(m.dav_accounts, ids[i])
15840 m.removeddav_accounts[ids[i]] = struct{}{}
15841 }
15842}
15843
15844// RemovedDavAccounts returns the removed IDs of the "dav_accounts" edge to the DavAccount entity.
15845func (m *UserMutation) RemovedDavAccountsIDs() (ids []int) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected